diff options
author | Denys Vlasenko | 2017-07-03 21:31:16 +0200 |
---|---|---|
committer | Denys Vlasenko | 2017-07-03 21:31:16 +0200 |
commit | d4e4fdb5ce5ccc067b3d35d877f7a7d978869517 (patch) | |
tree | bac3e4a55fa72db0c67d377b90869b4d63e8c3c9 /scripts | |
parent | 2e989ef232e35750df573898077dd356003705b2 (diff) | |
download | busybox-d4e4fdb5ce5ccc067b3d35d877f7a7d978869517.zip busybox-d4e4fdb5ce5ccc067b3d35d877f7a7d978869517.tar.gz |
fixes for bugs found by make_single_applets.sh
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/randomtest.loop | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/scripts/randomtest.loop b/scripts/randomtest.loop index 710f5fd..4d14b65 100755 --- a/scripts/randomtest.loop +++ b/scripts/randomtest.loop @@ -1,7 +1,11 @@ #!/bin/sh +run_testsuite=false run_testsuite=true +run_single_test=false +run_single_test=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; } @@ -40,6 +44,28 @@ while sleep 1; do fi tail -n10 -- "$dir/testsuite/runtest.log" fi + if $run_single_test; then + ( + cd -- "$dir" || exit 1 + echo "Running make_single_applets.sh in $dir..." + + if grep -q '# CONFIG_FEATURE_TFTP_GET is not set' .config \ + && grep -q '# CONFIG_FEATURE_TFTP_PUT is not set' .config \ + ; then + # If both off, tftp[d] is ifdefed out and test fails. + # Enable one: + sed 's/# CONFIG_FEATURE_TFTP_GET is not set/CONFIG_FEATURE_TFTP_GET=y/' -i .config + fi + + ./make_single_applets.sh + ) + if test $? != 0; then + echo "Failed make_single_applets.sh in $dir" + exit 1 # you may comment this out... + let fail++ + continue + fi + fi rm -rf -- "$dir" let cnt++ done |