summaryrefslogtreecommitdiff
path: root/run.zsh
diff options
context:
space:
mode:
authorromir kulshrestha <romir.kulshrestha@gmail.com> 2026-03-05 14:47:01 +0100
committerromir kulshrestha <romir.kulshrestha@gmail.com> 2026-03-06 12:21:18 +0100
commit8b7956b965147407274f062799200db54eb50d3b (patch)
tree4eb60b9434ed504e3eef0650cb6b90ffcbdc1b8c /run.zsh
parent6826cf0be1816a8320835ab315d46063dc746aac (diff)
run script
Diffstat (limited to 'run.zsh')
-rwxr-xr-xrun.zsh21
1 files changed, 21 insertions, 0 deletions
diff --git a/run.zsh b/run.zsh
new file mode 100755
index 0000000..be3704c
--- /dev/null
+++ b/run.zsh
@@ -0,0 +1,21 @@
+#!/usr/bin/env bash
+set -uo pipefail
+
+BINARY=./target/debug/oryx
+COUNT=${COUNT:-100}
+
+success=0
+fail=0
+
+for ((i=1; i<=COUNT; i++)); do
+ printf '%3d: ' "$i"
+ if "$BINARY" "$@"; then
+ echo success
+ ((success++))
+ else
+ echo fail
+ ((fail++))
+ fi
+done
+
+echo "Done: $success succeeded, $fail failed" \ No newline at end of file