Skip to content

Commit

Permalink
fix: change on skc exec for test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
nawetimebomb committed Sep 21, 2024
1 parent 63688ec commit b88e250
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ jobs:
- name: run tests
run: |
sudo apt-get update
sudo apt-get install -qq make
sudo apt-get install -qq make yasm
make
alias skc="./bin/skc"
bash ./test.sh
5 changes: 3 additions & 2 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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''
Expand Down

0 comments on commit b88e250

Please sign in to comment.