aboutsummaryrefslogtreecommitdiffhomepage
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to 'justfile')
-rw-r--r--justfile13
1 files changed, 11 insertions, 2 deletions
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