From bd3c5256b6e51b0e33b13e6c7b4582aba1b39f13 Mon Sep 17 00:00:00 2001 From: "Nahuel J. Sacchetti" Date: Sat, 21 Sep 2024 14:58:54 -0500 Subject: [PATCH] fix: change on skc exec for test runner --- .github/workflows/ci.yml | 1 - test.sh | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 23e38a6..d33648d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,5 +10,4 @@ jobs: sudo apt-get update sudo apt-get install -qq make make - alias skc="./bin/skc" bash ./test.sh diff --git a/test.sh b/test.sh index a07f6a2..d5cf359 100755 --- a/test.sh +++ b/test.sh @@ -3,6 +3,7 @@ # If save is provided, (like `./test.sh save`) the test runner will automatically save the results # into a .txt file and make sure the tests runs. This helps to make sure I have updated tests when needed. +SKC_EXEC="./bin/skc" FAIL=0 SUCCESS=0 TOTAL=0 @@ -52,10 +53,10 @@ for FILE in tests/*.sk; do TEST_NAME="${TEST_SRC##*/}" if [ "$1" == "save" ]; then - skc run ${TEST_SRC}.sk > ${TEST_SRC}.txt + ${SKC_EXEC} run ${TEST_SRC}.sk > ${TEST_SRC}.txt fi - skc run ${TEST_SRC}.sk > result.txt + ${SKC_EXEC} run ${TEST_SRC}.sk > result.txt RESULT=$(diff ${TEST_SRC}.txt result.txt) echo -en $RED'┃'