diff options
| author | 0scar <qgt268@alumni.ku.dk> | 2022-08-30 14:36:40 +0000 |
|---|---|---|
| committer | 0scar <qgt268@alumni.ku.dk> | 2022-08-30 14:36:40 +0000 |
| commit | 856e859c5c6ec9e6033adc733fda902824c6d675 (patch) | |
| tree | c1b039268febee151130e106834f007d4b6c9a04 /tests/Makefile | |
| parent | 577b4bd33c81abed97878779e5fc7a7f32754a01 (diff) | |
Add testing framework
Diffstat (limited to 'tests/Makefile')
| -rw-r--r-- | tests/Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile new file mode 100644 index 0000000..19881a2 --- /dev/null +++ b/tests/Makefile @@ -0,0 +1,17 @@ +CASES := $(wildcard test_*.c) +CASES_OBJ := $(CASES:.c=.o) + +.PHONY: run + +run: test + +test: test.o $(CASES_OBJ) test.h + @echo Case sources: $(CASES) + @echo Objects: $(CASES_OBJ) + $(CC) -o $@ $^ + +test%.o: test%.c + $(CC) -I../src -c -o $@ $< + +clean: + rm *.o test |
