summaryrefslogtreecommitdiff
path: root/run.zsh
diff options
context:
space:
mode:
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