Skip to content

Commit

Permalink
Merge pull request #2 from jakwings/test
Browse files Browse the repository at this point in the history
Fix Makefile for testing examples/hello
  • Loading branch information
61315 committed Feb 23, 2022
2 parents 6457457 + cb16897 commit 1f6cda5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,16 @@ fuzz: $(EXAMPLE_DIR)/ppm

test: $(EXAMPLE_DIR)/hello
@echo "\033[1;92mTesting...\033[0m"
ifeq ($(shell examples/hello), IMAGE_SYNTH_SUCCESS)
@echo "\033[1;92mTest Passed!\033[0m"
else
@echo "\033[1;91mTest Failed!\033[0m"
endif
@if ./examples/hello; then \
echo "\033[1;92mTest Passed!\033[0m"; \
else \
echo "\033[1;91mTest Failed!\033[0m"; \
fi

.PHONY: clean test all

clean:
$(RM) -r $(BUILD_DIR) $(LIB_DIR) $(EXAMPLES)

# Include resynthesizer headers from the `-MMD` and `-MP` flags.
-include $(DEPS)
-include $(DEPS)

0 comments on commit 1f6cda5

Please sign in to comment.