Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/littlefs-project/littlefs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Haster <chaster@utexas.edu>2017-03-26 01:02:16 +0300
committerChristopher Haster <chaster@utexas.edu>2017-03-26 03:23:30 +0300
commitafa4ad82544048581913e0a273745acb3886dc84 (patch)
treed4222c078fd9c90e18e9d0d1b801f7846262de54 /Makefile
parent84a57642e53616e1b9f8050e58dd21eecf168184 (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--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ed1afb5..bb449ca 100644
--- a/Makefile
+++ b/Makefile
@@ -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)