Basic test framework in place

This commit is contained in:
2023-07-12 16:09:17 -03:00
parent 62040d023e
commit 06a65cab7a
4 changed files with 23 additions and 20 deletions

View File

@ -1,6 +1,13 @@
CC=tcc
all: tests
run: shortcodes
./shortcodes
shortcodes.c: shortcodes.rl
ragel -G2 shortcodes.rl -o shortcodes.c
shortcodes: shortcodes.c
tcc shortcodes.c -lbg -g -o shortcodes
$(CC) shortcodes.c -lbg -g -o shortcodes
tests: shortcodes.c shortcodes.h tests.c
$(CC) tests.c shortcodes.c -lbg -lcgreen -g -o tests
./tests
clean:
rm -f shortcodes shortcodes.c