From ef07eff322a31ce0164283b531606e2827a64ded Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 3 May 2025 11:22:25 +0900 Subject: add tests --- justfile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'justfile') diff --git a/justfile b/justfile index 52cf61c..c10a978 100644 --- a/justfile +++ b/justfile @@ -3,7 +3,16 @@ CFLAGS := "-Wno-builtin-declaration-mismatch" all: build build: - gcc main.c {{CFLAGS}} + gcc -o p4dcc main.c {{CFLAGS}} + +test TESTCASE="all": build + #!/usr/bin/env bash + if [[ {{TESTCASE}} = all ]]; then + bash tests/all.sh + else + bash tests/run.sh {{TESTCASE}} + fi clean: - rm a.out + rm p4dcc + rm -rf tests/tmp -- cgit v1.2.3-70-g09d2