9 test -d "$1" || { echo "'$1' is not a directory"; exit 1; }
10 test -x "$1/scripts/randomtest" || { echo "No scripts/randomtest in '$1'"; exit 1; }
13 export CROSS_COMPILER_PREFIX="i686-"
19 echo "Passes: $cnt Failures: $fail"
21 while test -e "$dir" -o -e "failed.$dir"; do
24 echo "Running randconfig test in $dir..."
25 if ! "$1/scripts/randomtest" "$1" "$dir" >/dev/null; then
26 mv -- "$dir" "failed.$dir"
27 echo "Failed build in: failed.$dir"
28 exit 1 # you may comment this out...
32 if $run_testsuite; then
34 cd -- "$dir/testsuite" || exit 1
35 echo "Running testsuite in $dir..."
36 SKIP_KNOWN_BUGS=1 SKIP_INTERNET_TESTS=1 ./runtest -v >runtest.log 2>&1
39 echo "Failed runtest in $dir"
40 grep ^FAIL -- "$dir/testsuite/runtest.log"
41 exit 1 # you may comment this out...
45 tail -n10 -- "$dir/testsuite/runtest.log"
47 if $run_single_test; then
49 cd -- "$dir" || exit 1
50 echo "Running make_single_applets.sh in $dir..."
52 if grep -q '# CONFIG_FEATURE_TFTP_GET is not set' .config \
53 && grep -q '# CONFIG_FEATURE_TFTP_PUT is not set' .config \
55 # If both off, tftp[d] is ifdefed out and test fails.
57 sed 's/# CONFIG_FEATURE_TFTP_GET is not set/CONFIG_FEATURE_TFTP_GET=y/' -i .config
60 ./make_single_applets.sh
63 echo "Failed make_single_applets.sh in $dir"
64 exit 1 # you may comment this out...