aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Whitley <markw@lineo.com>2001-03-15 22:14:26 +0000
committerMark Whitley <markw@lineo.com>2001-03-15 22:14:26 +0000
commit056960d8dc3c849e055ddeac87316a234f18da7d (patch)
tree4eb2efd0d902a54cdffa8d669e204d118b7d30a2
parent0d5051def02e35f5db228d8003b3102382610d59 (diff)
downloadbusybox-w32-056960d8dc3c849e055ddeac87316a234f18da7d.tar.gz
busybox-w32-056960d8dc3c849e055ddeac87316a234f18da7d.tar.bz2
busybox-w32-056960d8dc3c849e055ddeac87316a234f18da7d.zip
Applied patch from Larry Doolittle to fix problem where multibuild.pl would
build the wrong files. Made the same changes to multifeat.pl.
-rwxr-xr-xtests/multibuild.pl8
-rwxr-xr-xtests/multifeat.pl8
2 files changed, 10 insertions, 6 deletions
diff --git a/tests/multibuild.pl b/tests/multibuild.pl
index 858da360f..94930bd95 100755
--- a/tests/multibuild.pl
+++ b/tests/multibuild.pl
@@ -53,14 +53,16 @@ for $a (@apps) {
53 print O "#define BB_$a\n", $trailer; 53 print O "#define BB_$a\n", $trailer;
54 close O; 54 close O;
55 system("echo -e '\n***\n$a\n***' >>$logfile"); 55 system("echo -e '\n***\n$a\n***' >>$logfile");
56 # todo: figure out why the "rm -f *.o" is needed 56 # With a fast computer and 1-second resolution on file timestamps, this
57 $result{$a} = system("rm -f *.o; make $make_opt busybox >>$logfile 2>&1"); 57 # process pushes beyond the limits of what unix make can understand.
58 # That's why need to weed out obsolete files before restarting make.
59 $result{$a} = system("rm -f *.o applet_source_list; make $make_opt busybox >>$logfile 2>&1");
58 $flag = $result{$a} ? "FAILED!!!" : "ok"; 60 $flag = $result{$a} ? "FAILED!!!" : "ok";
59 printf("Applet %-20s: %s\n", $a, $flag); 61 printf("Applet %-20s: %s\n", $a, $flag);
60 $total_tests++; 62 $total_tests++;
61 $failed_tests++ if $flag eq "FAILED!!!"; 63 $failed_tests++ if $flag eq "FAILED!!!";
62 # pause long enough to let user stop us with a ^C 64 # pause long enough to let user stop us with a ^C
63 select(undef, undef, undef, 0.05); 65 select(undef, undef, undef, 0.03);
64} 66}
65 67
66# Clean up our mess 68# Clean up our mess
diff --git a/tests/multifeat.pl b/tests/multifeat.pl
index 1169a3daf..adcb30bbd 100755
--- a/tests/multifeat.pl
+++ b/tests/multifeat.pl
@@ -63,14 +63,16 @@ for $f (@features) {
63 print O $header, "#define BB_FEATURE_$f\n", $trailer; 63 print O $header, "#define BB_FEATURE_$f\n", $trailer;
64 close O; 64 close O;
65 system("echo -e '\n***\n$f\n***' >>$logfile"); 65 system("echo -e '\n***\n$f\n***' >>$logfile");
66 # todo: figure out why the "rm -f *.o" is needed 66 # With a fast computer and 1-second resolution on file timestamps, this
67 $result{$f} = system("rm -f *.o; make $make_opt busybox >>$logfile 2>&1"); 67 # process pushes beyond the limits of what unix make can understand.
68 # That's why need to weed out obsolete files before restarting make.
69 $result{$f} = system("rm -f *.o applet_source_list; make $make_opt busybox >>$logfile 2>&1");
68 $flag = $result{$f} ? "FAILED!!!" : "ok"; 70 $flag = $result{$f} ? "FAILED!!!" : "ok";
69 printf("Feature %-20s: %s\n", $f, $flag); 71 printf("Feature %-20s: %s\n", $f, $flag);
70 $total_tests++; 72 $total_tests++;
71 $failed_tests++ if $flag eq "FAILED!!!"; 73 $failed_tests++ if $flag eq "FAILED!!!";
72 # pause long enough to let user stop us with a ^C 74 # pause long enough to let user stop us with a ^C
73 select(undef, undef, undef, 0.05); 75 select(undef, undef, undef, 0.03);
74} 76}
75 77
76# Clean up our mess 78# Clean up our mess