summaryrefslogtreecommitdiff
path: root/cli-tests/sort-text/run.sh
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-03-17 09:23:35 +0300
committerGrail Finder <wohilas@gmail.com>2026-03-17 09:23:35 +0300
commit451e6f0381afe37c59f12703f8750407c27ba94a (patch)
treed4a76d7011f2da98bac2ee718afa587952c8ba4f /cli-tests/sort-text/run.sh
parent47b3d37a9714e3e68e56f009ea1faee5223edeb4 (diff)
parent326a1a4d094c6349e0403d479384347c52964537 (diff)
Merge branch 'master' into feat/agent-flow
Diffstat (limited to 'cli-tests/sort-text/run.sh')
-rwxr-xr-xcli-tests/sort-text/run.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/cli-tests/sort-text/run.sh b/cli-tests/sort-text/run.sh
new file mode 100755
index 0000000..5cd5d3e
--- /dev/null
+++ b/cli-tests/sort-text/run.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+set -e
+
+SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
+TIMESTAMP=$(date +%Y%m%d_%H%M%S)
+LOG_FILE="$SCRIPT_DIR/${TIMESTAMP}_run.log"
+
+exec > "$LOG_FILE" 2>&1
+
+echo "=== Running teardown ==="
+"$SCRIPT_DIR/teardown.sh"
+
+echo ""
+echo "=== Running setup ==="
+"$SCRIPT_DIR/setup.sh"
+
+echo ""
+echo "=== Running task ==="
+TASK=$(cat "$SCRIPT_DIR/task.txt")
+cd /home/grail/projects/plays/goplays/gf-lt
+go run . -cli -msg "$TASK"
+
+echo ""
+echo "=== Done ==="
+echo "Log file: $LOG_FILE"