aboutsummaryrefslogtreecommitdiff
path: root/test/justfile
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2026-02-28 17:37:19 +0530
committerAkshay Nair <phenax5@gmail.com>2026-02-28 17:37:19 +0530
commit18268280dc6c0bd44035b53655ae43e9c88245bd (patch)
treec17b1703d8a3deb4cd67a6e6466d024f02a49bb7 /test/justfile
parent02c12bfedcf669df81491ea49502a982e980bcda (diff)
downloaddaft-watch-18268280dc6c0bd44035b53655ae43e9c88245bd.tar.gz
daft-watch-18268280dc6c0bd44035b53655ae43e9c88245bd.zip
Add set time mode + test for button
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
+