From 91b150ba08a6a674cee87b331b649b3b54b650c5 Mon Sep 17 00:00:00 2001 From: Kari Pihkala Date: Mon, 15 Apr 2024 13:05:35 +0300 Subject: [PATCH] Fix test.sh for x86_64-unknown-linux-gnu --- tools/test.sh | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/tools/test.sh b/tools/test.sh index 189e078..007a013 100755 --- a/tools/test.sh +++ b/tools/test.sh @@ -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 @@ -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."