aboutsummaryrefslogtreecommitdiff
path: root/test/justfile
diff options
context:
space:
mode:
Diffstat (limited to 'test/justfile')
-rw-r--r--test/justfile13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/justfile b/test/justfile
new file mode 100644
index 0000000..626e094
--- /dev/null
+++ b/test/justfile
@@ -0,0 +1,13 @@
+OUTDIR := "../out"
+TSRCS := "../src/display.c ../src/rtc.c ../src/button.c ../src/mode.c ./stubbed/testindex.c"
+
+TCFLAGS := f"-g -std=gnu99 -DSTUBBED=1 -I../src -I./stubbed/ -Wall -Wno-unused-variable {{TSRCS}}"
+
+main:
+ gcc {{TCFLAGS}} ../src/main.c -o {{OUTDIR}}/test_main
+ {{OUTDIR}}/test_main
+
+button:
+ gcc {{TCFLAGS}} ./button_test.c -o {{OUTDIR}}/test_button
+ {{OUTDIR}}/test_button
+