5 test -d "$1" || { echo "'$1' is not a directory"; exit 1; }
6 test -x "$1/scripts/randomtest" || { echo "No scripts/randomtest in '$1'"; exit 1; }
9 export CROSS_COMPILER_PREFIX="i686-"
15 echo "Passes: $cnt Failures: $fail"
17 while test -e "$dir" -o -e "failed.$dir"; do
20 echo "Running randconfig test in $dir..."
21 if ! "$1/scripts/randomtest" "$1" "$dir" >/dev/null; then
22 mv -- "$dir" "failed.$dir"
23 echo "Failed build in: failed.$dir"
24 exit 1 # you may comment this out...
28 if $run_testsuite; then
30 cd -- "$dir/testsuite" || exit 1
31 echo "Running testsuite in $dir..."
32 SKIP_KNOWN_BUGS=1 SKIP_INTERNET_TESTS=1 ./runtest -v >runtest.log 2>&1
35 echo "Failed runtest in $dir"
36 exit 1 # you may comment this out...
40 tail -n10 -- "$dir/testsuite/runtest.log"