d7e5edb2c7
This script runs a subset of all the available test. This is aimed at first time users which might be surprised by the warnings and time the full test suite takes. This runs all the tests which in case of success only print "ok" and don't take too much time to run, independently of the network connectivity. Change-Id: Id54b7656a98f9ec81880f91cb63ca888a175f20f
42 lines
1 KiB
Bash
42 lines
1 KiB
Bash
#!/bin/sh
|
|
|
|
# Run a partial test suite for a quick check of most of the system
|
|
# functionnality.
|
|
|
|
RUN="/usr/tests/minix-posix/run"
|
|
|
|
# Tests to run:
|
|
TESTS=" 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 \
|
|
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 \
|
|
41 42 43 44 45 46 47 49 50 51 52 53 54 55 56 57 58 59 \
|
|
61 62 63 64 66 67 68 69 70 71 72 73 74 75 76 77 78 79 \
|
|
sh1 interp mfs isofs "
|
|
|
|
if [ ! -f ${RUN} ]
|
|
then
|
|
echo "Test runner script not found: ${RUN}\n"
|
|
exit 1;
|
|
fi
|
|
|
|
cat <<EOT
|
|
This tool will run the most common tests. This will skip some very lengthy
|
|
ones, as well as some which are expected to generate some warnings.
|
|
|
|
To run the full test suite, you can execute the following:
|
|
|
|
# ./run
|
|
|
|
Be advised that the full test suite might take up to several hours to complete
|
|
depending on your hardware.
|
|
|
|
The following tests will be run:
|
|
${TESTS}
|
|
|
|
EOT
|
|
|
|
echo -n "Do you want to start [Y/n]? "
|
|
read ok
|
|
|
|
if [ "${ok}" = "" -o "${ok}" = "y" -o "${ok}" = "Y" ]; then
|
|
sh ${RUN} -t "${TESTS}"
|
|
fi
|