testing stripts: allow to skip "awk gsub erroneous word start match" test
No binary (build failed)
gcc -Wp,-MD,applets/.usage.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -Iinclude -Iinclude -o applets/usage applets/usage.c
(log yok)
| @@ -6,7 +6,7 @@ | |
| # All other options which chose general bbox config, applet features, etc, | |
| # are not modified for the builds. | |
| - | makeopts="-j9" |
| + | test "$MAKEOPS" || export MAKEOPTS="-j`nproc`" |
| # The list of all applet config symbols | |
| test -f include/applets.h || { echo "No include/applets.h file"; exit 1; } | |
| @@ -62,7 +62,7 @@ for app; do | |
| fail=$((fail+1)) | |
| echo "Config error for ${app}" | |
| mv .config busybox_config_${app} | |
| - | elif ! make $makeopts >>busybox_make_${app}.log 2>&1; then |
| + | elif ! make $MAKEOPTS >>busybox_make_${app}.log 2>&1; then |
| fail=$((fail+1)) | |
| grep -i -e error: -e warning: busybox_make_${app}.log | |
| echo "Build error for ${app}" | |
| @@ -4,6 +4,7 @@ run_testsuite=false | |
| run_testsuite=true | |
| # See testsuite/README: | |
| export SKIP_KNOWN_BUGS=1 | |
| + | #export SKIP_KNOWN_BUG_AWK_WORDMATCH=1 |
| #export SKIP_INTERNET_TESTS=1 | |
| # See testsuite/mount.tests: | |
| export SKIP_MOUNT_MAND_TESTS=1 | |
| @@ -11,6 +12,9 @@ export SKIP_MOUNT_MAND_TESTS=1 | |
| run_single_test=false | |
| run_single_test=true | |
| + | stop_on_failure=false |
| + | stop_on_failure=true |
| + | |
| export LIBC="uclibc" | |
| export CROSS_COMPILER_PREFIX="i686-" | |
| export MAKEOPTS="-j9" | |
| @@ -35,7 +39,7 @@ while sleep 1; do | |
| if ! "$1/scripts/randomtest" "$1" "$dir" >/dev/null; then | |
| mv -- "$dir" "failed.$dir" | |
| echo "Failed build in: failed.$dir" | |
| - | exit 1 # you may comment this out... |
| + | $stop_on_failure && exit 1 |
| let fail++ | |
| continue | |
| fi | |
| @@ -48,7 +52,7 @@ while sleep 1; do | |
| if test $? != 0; then | |
| echo "Failed runtest in $dir" | |
| grep ^FAIL -- "$dir/testsuite/runtest.log" | |
| - | exit 1 # you may comment this out... |
| + | $stop_on_failure && exit 1 |
| let fail++ | |
| continue | |
| fi | |
| @@ -71,7 +75,7 @@ while sleep 1; do | |
| ) | |
| if test $? != 0; then | |
| echo "Failed make_single_applets.sh in $dir" | |
| - | exit 1 # you may comment this out... |
| + | $stop_on_failure && exit 1 |
| let fail++ | |
| continue | |
| fi | |
| @@ -612,7 +612,8 @@ b | |
| # Currently we use REG_STARTEND ("This flag is a BSD extension, not present in POSIX") | |
| # to implement the code to handle this correctly, but if your libc has no REG_STARTEND, | |
| # the alternative code mishandles this case. | |
| - | testing 'awk gsub erroneous word start match' \ |
| + | test x"$SKIP_KNOWN_BUG_AWK_WORDMATCH" = x"" \ |
| + | && testing 'awk gsub erroneous word start match' \ |
| "awk 'BEGIN { a=\"abc\"; gsub(/\<b*/,\"\",a); print a }'" \ | |
| 'abc\n' \ | |
| '' '' | |