diff options
author | Christopher Haster <chaster@utexas.edu> | 2017-03-26 02:11:45 +0300 |
---|---|---|
committer | Christopher Haster <chaster@utexas.edu> | 2017-03-26 03:23:30 +0300 |
commit | a711675607496eb6271c22de9239f334639980e3 (patch) | |
tree | 31d841affb695dbf46b82f46dae8225b87c8c23e /Makefile | |
parent | afa4ad82544048581913e0a273745acb3886dc84 (diff) |
Added dir tests, test fixes, config
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -9,7 +9,7 @@ OBJ := $(SRC:.c=.o) DEP := $(SRC:.c=.d) ASM := $(SRC:.c=.s) -TEST := $(wildcard tests/test_*) +TEST := $(patsubst tests/%.sh,%,$(wildcard tests/test_*)) ifdef DEBUG CFLAGS += -O0 -g3 @@ -30,8 +30,10 @@ asm: $(ASM) size: $(OBJ) $(SIZE) -t $^ -test: - for t in $(TEST) ; do ./$$t ; done +.SUFFIXES: +test: $(TEST) +test_%: tests/test_%.sh + ./$< -include $(DEP) |