Skip to content

Commit

Permalink
Fix test.sh for x86_64-unknown-linux-gnu
Browse files Browse the repository at this point in the history
  • Loading branch information
karip committed Apr 15, 2024
1 parent 0c71958 commit 91b150b
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions tools/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ cargo doc
# run all tests
cargo test --tests

echo "---t1"
ls -la
echo "---t2"
ls -la toisto-au-test-suite
echo "---t3"

# build the toisto tester
cargo build --example ausnd-aureader-toisto

Expand All @@ -24,15 +18,24 @@ echo
echo 'Toisto AU test suite results:'
cd toisto-au-test-suite

echo "---t13"
ls -la ../target
echo "---t14"
ls -la ../target/debug
echo "---t15"
ls -la ../target/debug/examples
echo "---t16"
echo "---t1"
ls -laR ../target
echo "---t2"

# target/debug for normal testing,
# x86_64-unknown-linux-gnu and powerpc-unknown-linux-gnu for GitHub Actions
if [ -e ../target/x86_64-unknown-linux-gnu/examples/ausnd-aureader-toisto ]
then
echo "TARGET: x86_64-unknown-linux-gnu"
python3 toisto-runner.py -c -v --override-list ../toisto-ausnd-override-list.json ../target/x86_64-unknown-linux-gnu/examples/ausnd-aureader-toisto
elif [ -e ../target/powerpc-unknown-linux-gnu/examples/ausnd-aureader-toisto ]
then
echo "TARGET: powerpc-unknown-linux-gnu"
python3 toisto-runner.py -c -v --override-list ../toisto-ausnd-override-list.json ../target/powerpc-unknown-linux-gnu/examples/ausnd-aureader-toisto
else
python3 toisto-runner.py -c --override-list ../toisto-ausnd-override-list.json ../target/debug/examples/ausnd-aureader-toisto
fi

python3 toisto-runner.py -c -v --override-list ../toisto-ausnd-override-list.json ../target/debug/examples/ausnd-aureader-toisto

echo
echo "--- All tests OK."

0 comments on commit 91b150b

Please sign in to comment.