updated android_ndk_defconfig
[oweals/busybox.git] / scripts / randomtest.loop
index 311536df85464dee4aa24d10cefc7e3dce186db0..758a8e86290d96e49429db29e3620a42aa9b75a7 100755 (executable)
@@ -1,10 +1,12 @@
 #!/bin/sh
 
+run_testsuite=true
+
 test -d "$1" || { echo "'$1' is not a directory"; exit 1; }
 test -x "$1/scripts/randomtest" || { echo "No scripts/randomtest in '$1'"; exit 1; }
 
 export LIBC="uclibc"
-export CROSS_COMPILER_PREFIX="i486-linux-uclibc-"
+export CROSS_COMPILER_PREFIX="i686-"
 export MAKEOPTS="-j9"
 
 cnt=0
@@ -21,7 +23,9 @@ while sleep 1; do
                echo "Failed build in: failed.$dir"
                exit 1 # you may comment this out...
                let fail++
-       else
+               continue
+       fi
+       if $run_testsuite; then
                (
                        cd -- "$dir/testsuite" || exit 1
                        echo "Running testsuite in $dir..."
@@ -29,10 +33,12 @@ while sleep 1; do
                )
                if test $? != 0; then
                        echo "Failed runtest in $dir"
-                       exit 1
+                       exit 1 # you may comment this out...
+                       let fail++
+                       continue
                fi
                tail -n10 -- "$dir/testsuite/runtest.log"
-               rm -rf -- "$dir"
        fi
+       rm -rf -- "$dir"
        let cnt++
 done