aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-02-01 22:43:49 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-02-01 22:43:49 +0000
commita773090651a1d7b61974fbd637826668e7061449 (patch)
tree47dca5ab2df8982ea929c902216bca6bf9c31f44 /tests
parentdeaca5da3373819de42ee9204f93fa8cfa3f48a5 (diff)
downloadbusybox-w32-a773090651a1d7b61974fbd637826668e7061449.tar.gz
busybox-w32-a773090651a1d7b61974fbd637826668e7061449.tar.bz2
busybox-w32-a773090651a1d7b61974fbd637826668e7061449.zip
Apply a patch from Larry Doolittle to add "-all" and "-none" switches
to multibuild.pl. I did a little formatting adjustments to make it _very_ obvious when things stop working. I also removed the USE_PROCFS config option -- just do the right thing when USE_DEVPS_PATCH is enabled. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1739 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'tests')
-rwxr-xr-xtests/busybox.REGRESS.shbin4071 -> 0 bytes
-rwxr-xr-xtests/multibuild.pl24
2 files changed, 22 insertions, 2 deletions
diff --git a/tests/busybox.REGRESS.sh b/tests/busybox.REGRESS.sh
deleted file mode 100755
index c3106419b..000000000
--- a/tests/busybox.REGRESS.sh
+++ /dev/null
Binary files differ
diff --git a/tests/multibuild.pl b/tests/multibuild.pl
index fb9cdd494..858da360f 100755
--- a/tests/multibuild.pl
+++ b/tests/multibuild.pl
@@ -5,9 +5,18 @@
5# properly on its own. The most likely problems this will 5# properly on its own. The most likely problems this will
6# flush out are those involving preprocessor instructions in 6# flush out are those involving preprocessor instructions in
7# utility.c. 7# utility.c.
8#
9# TODO: some time it might be nice to list absolute and
10# differential object sizes for each option...
11#
8 12
9$logfile = "multibuild.log"; 13$logfile = "multibuild.log";
10 14
15# How to handle all the BB_FEATURE_FOO lines
16if ($ARGV[0] eq "-all" ) { shift(@ARGV); $choice="all"; }
17if ($ARGV[0] eq "-none") { shift(@ARGV); $choice="none"; }
18# neither means, leave that part of Config.h alone
19
11# Support building from pristine source 20# Support building from pristine source
12$make_opt = "-f $ARGV[0]/Makefile BB_SRC_DIR=$ARGV[0]" if ($ARGV[0] ne ""); 21$make_opt = "-f $ARGV[0]/Makefile BB_SRC_DIR=$ARGV[0]" if ($ARGV[0] ne "");
13 22
@@ -21,6 +30,11 @@ unlink($logfile);
21open(C,"<Config.h.orig") || die; 30open(C,"<Config.h.orig") || die;
22while (<C>) { 31while (<C>) {
23 if ($in_trailer) { 32 if ($in_trailer) {
33 if (!$in_olympus) {
34 s/^\/\/#/#/ if ($choice eq "all" && !/USE_DEVPS_PATCH/);
35 s/^#/\/\/#/ if ($choice eq "none");
36 }
37 $in_olympus=1 if /End of Features List/;
24 $trailer .= $_; 38 $trailer .= $_;
25 } else { 39 } else {
26 $in_trailer=1 if /End of Applications List/; 40 $in_trailer=1 if /End of Applications List/;
@@ -32,6 +46,7 @@ while (<C>) {
32close C; 46close C;
33 47
34# Do the real work ... 48# Do the real work ...
49$failed_tests=0;
35for $a (@apps) { 50for $a (@apps) {
36 # print "Testing build of applet $a ...\n"; 51 # print "Testing build of applet $a ...\n";
37 open (O, ">Config.h") || die; 52 open (O, ">Config.h") || die;
@@ -40,12 +55,17 @@ for $a (@apps) {
40 system("echo -e '\n***\n$a\n***' >>$logfile"); 55 system("echo -e '\n***\n$a\n***' >>$logfile");
41 # todo: figure out why the "rm -f *.o" is needed 56 # todo: figure out why the "rm -f *.o" is needed
42 $result{$a} = system("rm -f *.o; make $make_opt busybox >>$logfile 2>&1"); 57 $result{$a} = system("rm -f *.o; make $make_opt busybox >>$logfile 2>&1");
43 $flag = $result{$a} ? "FAIL" : "OK"; 58 $flag = $result{$a} ? "FAILED!!!" : "ok";
44 print "Applet $a: $flag\n"; 59 printf("Applet %-20s: %s\n", $a, $flag);
60 $total_tests++;
61 $failed_tests++ if $flag eq "FAILED!!!";
62 # pause long enough to let user stop us with a ^C
63 select(undef, undef, undef, 0.05);
45} 64}
46 65
47# Clean up our mess 66# Clean up our mess
48system("mv -f Config.h.orig Config.h"); 67system("mv -f Config.h.orig Config.h");
49 68
69print "$total_tests applets tested, $failed_tests failures\n";
50print "See $logfile for details.\n"; 70print "See $logfile for details.\n";
51 71