aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-07-03 21:31:16 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-07-18 19:20:58 +0200
commit442d522f0bc6f29c14a3e54a0af3aac68bb891a1 (patch)
treeaa36853bf59cf4b3d4808d391ab31a714c3fc28c /scripts
parentceaffde51163394c47fec34dac8663ae8152a699 (diff)
downloadbusybox-w32-442d522f0bc6f29c14a3e54a0af3aac68bb891a1.tar.gz
busybox-w32-442d522f0bc6f29c14a3e54a0af3aac68bb891a1.tar.bz2
busybox-w32-442d522f0bc6f29c14a3e54a0af3aac68bb891a1.zip
fixes for bugs found by make_single_applets.sh
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/randomtest.loop26
1 files changed, 26 insertions, 0 deletions
diff --git a/scripts/randomtest.loop b/scripts/randomtest.loop
index 710f5fd05..4d14b652f 100755
--- a/scripts/randomtest.loop
+++ b/scripts/randomtest.loop
@@ -1,7 +1,11 @@
1#!/bin/sh 1#!/bin/sh
2 2
3run_testsuite=false
3run_testsuite=true 4run_testsuite=true
4 5
6run_single_test=false
7run_single_test=true
8
5test -d "$1" || { echo "'$1' is not a directory"; exit 1; } 9test -d "$1" || { echo "'$1' is not a directory"; exit 1; }
6test -x "$1/scripts/randomtest" || { echo "No scripts/randomtest in '$1'"; exit 1; } 10test -x "$1/scripts/randomtest" || { echo "No scripts/randomtest in '$1'"; exit 1; }
7 11
@@ -40,6 +44,28 @@ while sleep 1; do
40 fi 44 fi
41 tail -n10 -- "$dir/testsuite/runtest.log" 45 tail -n10 -- "$dir/testsuite/runtest.log"
42 fi 46 fi
47 if $run_single_test; then
48 (
49 cd -- "$dir" || exit 1
50 echo "Running make_single_applets.sh in $dir..."
51
52 if grep -q '# CONFIG_FEATURE_TFTP_GET is not set' .config \
53 && grep -q '# CONFIG_FEATURE_TFTP_PUT is not set' .config \
54 ; then
55 # If both off, tftp[d] is ifdefed out and test fails.
56 # Enable one:
57 sed 's/# CONFIG_FEATURE_TFTP_GET is not set/CONFIG_FEATURE_TFTP_GET=y/' -i .config
58 fi
59
60 ./make_single_applets.sh
61 )
62 if test $? != 0; then
63 echo "Failed make_single_applets.sh in $dir"
64 exit 1 # you may comment this out...
65 let fail++
66 continue
67 fi
68 fi
43 rm -rf -- "$dir" 69 rm -rf -- "$dir"
44 let cnt++ 70 let cnt++
45done 71done