aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-05-05 07:22:22 +0900
committernsfisis <nsfisis@gmail.com>2025-05-05 07:22:22 +0900
commit2a560433a7fedcb6ea6fded1623bd72053e3244b (patch)
treea5ae4fa1dd13168dd26dc25d7b35f2f583ffd794
parente9b45881d901caab4a4930643a6635fb4a5227c3 (diff)
downloadP4Dcc-2a560433a7fedcb6ea6fded1623bd72053e3244b.tar.gz
P4Dcc-2a560433a7fedcb6ea6fded1623bd72053e3244b.tar.zst
P4Dcc-2a560433a7fedcb6ea6fded1623bd72053e3244b.zip
p4dcc is now self-hosted!
-rw-r--r--justfile24
1 files changed, 21 insertions, 3 deletions
diff --git a/justfile b/justfile
index a71d444..e4acc13 100644
--- a/justfile
+++ b/justfile
@@ -11,9 +11,27 @@ build N="1":
gcc -s -Wl,-z,noexecstack -o p4dcc{{N}} main{{N}}.s
fi
-build N: build
- ./p4dcc < main.c > main{{N}}.s
- gcc -Wl,-z,noexecstack -o p4dcc{{N}} main{{N}}.s
+build-upto-10:
+ just build 1
+ just build 2
+ just build 3
+ just build 4
+ just build 5
+ just build 6
+ just build 7
+ just build 8
+ just build 9
+ just build 10
+
+test-self-hosted:
+ diff -u ./p4dcc2 ./p4dcc3
+ diff -u ./p4dcc3 ./p4dcc4
+ diff -u ./p4dcc4 ./p4dcc5
+ diff -u ./p4dcc5 ./p4dcc6
+ diff -u ./p4dcc6 ./p4dcc7
+ diff -u ./p4dcc7 ./p4dcc8
+ diff -u ./p4dcc8 ./p4dcc9
+ diff -u ./p4dcc9 ./p4dcc10
test TESTCASE="all" $BIN="p4dcc": build
#!/usr/bin/env bash