Skip to content

Commit afa4ad8

Browse files
committed
Added a rudimentary test framework
Tests can be found in 'tests/test_blah.sh' Tests can be run with 'make test'
1 parent 84a5764 commit afa4ad8

File tree

12 files changed

+260
-294
lines changed

12 files changed

+260
-294
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ OBJ := $(SRC:.c=.o)
99
DEP := $(SRC:.c=.d)
1010
ASM := $(SRC:.c=.s)
1111

12+
TEST := $(wildcard tests/test_*)
13+
1214
ifdef DEBUG
1315
CFLAGS += -O0 -g3
1416
else
@@ -28,6 +30,9 @@ asm: $(ASM)
2830
size: $(OBJ)
2931
$(SIZE) -t $^
3032

33+
test:
34+
for t in $(TEST) ; do ./$$t ; done
35+
3136
-include $(DEP)
3237

3338
$(TARGET): $(OBJ)

emubd/lfs_cfg.c

Lines changed: 0 additions & 197 deletions
This file was deleted.

emubd/lfs_cfg.h

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)