lua-54: updated to 5.4.7
[oi-userland.git] / components / runtime / smalltalk / stack-spur / test / testrunner.sh
bloba4bd9450d30064caddfa4a99bbb622847bdcdfce
1 #!/bin/sh
3 BITS=$1
4 COMPONENT_DIR=$2
5 BUILD_DIR=$3
6 TEST_TARGET=$4
8 LOGFILE=testrunner-log.$BITS
10 # the tests could be ran after pkg install as:
11 # inisqueak -n;squeak squeak.image testrunner.st
12 # or interactively simply by opening a Squeak image and going to TestRunner
14 # however here we want to do this on the newly built VM
15 # so we start squeak from the BUILD_DIR directory
17 # make sure that the newly built VM loads plugins fro the build dir
18 # SQUEAK_PLUGINS=$PLUGIN_DIR
19 # export SQUEAK_PLUGINS
21 # download squeak.image to current directory
22 # since december 2023 we no longer test/include 32bit binaries
23 case $BITS in
24 # 32) $COMPONENT_DIR/inisqueak5 -32 -n > $LOGFILE 2>&1 ;;
25 32) ;;
26 64) $COMPONENT_DIR/inisqueak5 -n > $LOGFILE 2>&1 ;;
27 *) echo "Unknown BITS $BITS";exit 1;;
28 esac
30 # start squeak binary from the build dir
31 $BUILD_DIR/squeak squeak.image $COMPONENT_DIR/test/testrunner.st > $LOGFILE 2>&1
33 # testrunner.st saves output in a file , dump that file as output
34 cat results.vm