Last active
December 16, 2015 05:19
-
-
Save shlevy/5383241 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ make check | |
| cc -c -o tests/register-action.o tests/register-action.c | |
| cc -o tests/register-action.o.out tests/register-action.o | |
| echo -n Running test tests/register-action... | |
| Running test tests/register-action... Pass | |
| rm tests/register-action.o |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .POSIX: | |
| TESTS = tests/register-action.test | |
| .PHONY: all | |
| all: | |
| .PHONY: check | |
| check: $(TESTS) | |
| .SUFFIXES: .test | |
| .o.test: | |
| $(CC) $(LDFLAGS) -o $<.out $< | |
| echo -n Running test $*... | |
| @($<.out && echo " Pass") || (echo " Fail"; false) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment