diff options
author | Christopher Haster <chaster@utexas.edu> | 2017-03-26 01:02:16 +0300 |
---|---|---|
committer | Christopher Haster <chaster@utexas.edu> | 2017-03-26 03:23:30 +0300 |
commit | afa4ad82544048581913e0a273745acb3886dc84 (patch) | |
tree | d4222c078fd9c90e18e9d0d1b801f7846262de54 /Makefile | |
parent | 84a57642e53616e1b9f8050e58dd21eecf168184 (diff) |
Added a rudimentary test framework
Tests can be found in 'tests/test_blah.sh'
Tests can be run with 'make test'
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -9,6 +9,8 @@ OBJ := $(SRC:.c=.o) DEP := $(SRC:.c=.d) ASM := $(SRC:.c=.s) +TEST := $(wildcard tests/test_*) + ifdef DEBUG CFLAGS += -O0 -g3 else @@ -28,6 +30,9 @@ asm: $(ASM) size: $(OBJ) $(SIZE) -t $^ +test: + for t in $(TEST) ; do ./$$t ; done + -include $(DEP) $(TARGET): $(OBJ) |