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 02:11:45 +0300
committerChristopher Haster <chaster@utexas.edu>2017-03-26 03:23:30 +0300
commita711675607496eb6271c22de9239f334639980e3 (patch)
tree31d841affb695dbf46b82f46dae8225b87c8c23e /Makefile
parentafa4ad82544048581913e0a273745acb3886dc84 (diff)
Added dir tests, test fixes, config
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index bb449ca..bdb7194 100644
--- a/Makefile
+++ b/Makefile
@@ -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)