From 3d44686a517f65c6f5a985cfa864240b996fdb99 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Mon, 16 Mar 2026 09:44:28 +0300 Subject: Feat (cli): test run and teardown --- cli-tests/sort-text/run.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 cli-tests/sort-text/run.sh (limited to 'cli-tests/sort-text/run.sh') 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" -- cgit v1.2.3