aboutsummaryrefslogtreecommitdiff
path: root/test/justfile
blob: 5ec173336cf3501a24017d68d280e43a79b65bb2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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: (test "button")

mode: (test "mode")

test source:
  gcc {{TCFLAGS}} ./{{source}}_test.c -o {{OUTDIR}}/test_{{source}}
  {{OUTDIR}}/test_{{source}}