aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to 'justfile')
-rw-r--r--justfile29
1 files changed, 29 insertions, 0 deletions
diff --git a/justfile b/justfile
new file mode 100644
index 00000000..3700b040
--- /dev/null
+++ b/justfile
@@ -0,0 +1,29 @@
+# herdr task runner
+
+# Run unit tests
+test:
+ cargo test
+
+# Run integration tests (LLM-based, requires pi + tmux)
+test-integration:
+ ./tests/integration/run_all.sh
+
+# Run all tests
+test-all: test test-integration
+
+# Build release binary
+build:
+ cargo build --release
+
+# Kill any leftover test tmux sessions and clean results
+clean-tests:
+ @for sock in ${TMPDIR:-/tmp}/herdr-test-sockets/*/tmux.sock; do \
+ [ -S "$$sock" ] && tmux -S "$$sock" kill-server 2>/dev/null || true; \
+ done
+ @rm -rf ${TMPDIR:-/tmp}/herdr-test-sockets 2>/dev/null || true
+ @rm -f tests/integration/results/*.json tests/integration/results/*.txt 2>/dev/null || true
+ @echo "cleaned"
+
+# Print default config
+default-config:
+ cargo run --release -- --default-config