From 18268280dc6c0bd44035b53655ae43e9c88245bd Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 28 Feb 2026 17:37:19 +0530 Subject: Add set time mode + test for button --- justfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'justfile') diff --git a/justfile b/justfile index e08c5fb..67ac3f0 100644 --- a/justfile +++ b/justfile @@ -1,6 +1,8 @@ set export set unstable +mod test + default: just --choose || true @@ -8,7 +10,7 @@ AVR_LIBC := env("AVR_LIBC", "/usr/lib/avr") F_CPU := "32768" MCU := "attiny84a" MCU_PART := "attiny84" -SRCS := "src/main.c src/display.c src/rtc.c src/button.c" +SRCS := "src/main.c src/display.c src/rtc.c src/button.c src/mode.c" OUTDIR := "./out" PROGRAMMER := "arduino" UPLOAD_SPEED := "19200" @@ -40,10 +42,6 @@ write-fuses: check-hexfile-exists read-fuses: {{AVRDUDE}} -U lfuse:r:-:h -U hfuse:r:-:h -U efuse:r:-:h -test: - gcc -g -std=gnu99 -DSTUBBED=1 -I./src -I./test/stubbed/ -Wall -Wno-unused-variable {{SRCS}} -o {{OUTDIR}}/test - {{OUTDIR}}/test - clean: rm -rf {{OUTDIR}} -- cgit v1.3.1