diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-05-03 11:22:25 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-05-03 11:22:25 +0900 |
| commit | ef07eff322a31ce0164283b531606e2827a64ded (patch) | |
| tree | 3a5120716daa8843f626a1ecc4c849e3dd503cc1 /justfile | |
| parent | 441a78966e5fa230290dec0f96651fe88f45c36b (diff) | |
| download | P4Dcc-ef07eff322a31ce0164283b531606e2827a64ded.tar.gz P4Dcc-ef07eff322a31ce0164283b531606e2827a64ded.tar.zst P4Dcc-ef07eff322a31ce0164283b531606e2827a64ded.zip | |
add tests
Diffstat (limited to 'justfile')
| -rw-r--r-- | justfile | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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 |
