From 4428c0635690f31fab30655c3e9d39914262d93e Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Sun, 12 Apr 2026 19:04:43 +0300 Subject: [PATCH] Enha (cli-tests): use relative path --- cli-tests/sort-img/run.sh | 5 +++-- cli-tests/sort-img/setup.sh | 8 +++++--- cli-tests/sort-text/run.sh | 5 +++-- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/cli-tests/sort-img/run.sh b/cli-tests/sort-img/run.sh index efb6fee..982bc2f 100755 --- a/cli-tests/sort-img/run.sh +++ b/cli-tests/sort-img/run.sh @@ -17,8 +17,9 @@ echo "=== Running setup ===" echo "" echo "=== Running task ===" TASK=$(cat "$SCRIPT_DIR/task.txt") -cd /home/grail/projects/plays/goplays/gf-lt -go run . -cli -msg "$TASK" +LMODEL=${LMODEL:-Qwen3.5-9B-Q6_K} +cd ../../ +go run . -cli -msg "$TASK" -model "$LMODEL" echo "" echo "=== Done ===" diff --git a/cli-tests/sort-img/setup.sh b/cli-tests/sort-img/setup.sh index 6b89be8..f7a594e 100755 --- a/cli-tests/sort-img/setup.sh +++ b/cli-tests/sort-img/setup.sh @@ -2,8 +2,10 @@ set -e +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" + mkdir -p /tmp/sort-img -cp ../../../assets/ex01.png /tmp/sort-img/file1.png -cp ../../../assets/helppage.png /tmp/sort-img/file2.png -cp ../../../assets/yt_thumb.jpg /tmp/sort-img/file3.jpg +cp "$SCRIPT_DIR/../../assets/ex01.png" /tmp/sort-img/file1.png +cp "$SCRIPT_DIR/../../assets/helppage.png" /tmp/sort-img/file2.png +cp "$SCRIPT_DIR/../../assets/yt_thumb.jpg" /tmp/sort-img/file3.jpg diff --git a/cli-tests/sort-text/run.sh b/cli-tests/sort-text/run.sh index 3bd5cb9..bfd077a 100755 --- a/cli-tests/sort-text/run.sh +++ b/cli-tests/sort-text/run.sh @@ -17,8 +17,9 @@ echo "=== Running setup ===" echo "" echo "=== Running task ===" TASK=$(cat "$SCRIPT_DIR/task.txt") -LMODEL=${LMODEL:-gemma-4-31B-it-Q4_K_M} -cd /home/grail/projects/plays/goplays/gf-lt +# LMODEL=${LMODEL:-gemma-4-31B-it-Q4_K_M} +LMODEL=${LMODEL:-Qwen3.5-9B-Q6_K} +cd ../../ go run . -cli -msg "$TASK" -model "$LMODEL" echo ""