aboutsummaryrefslogtreecommitdiff
path: root/tests/multibuild.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/multibuild.pl')
-rwxr-xr-xtests/multibuild.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/multibuild.pl b/tests/multibuild.pl
index 94930bd95..a3e49a625 100755
--- a/tests/multibuild.pl
+++ b/tests/multibuild.pl
@@ -12,13 +12,13 @@
12 12
13$logfile = "multibuild.log"; 13$logfile = "multibuild.log";
14 14
15# How to handle all the BB_FEATURE_FOO lines 15# How to handle all the CONFIG_FEATURE_FOO lines
16if ($ARGV[0] eq "-all" ) { shift(@ARGV); $choice="all"; } 16if ($ARGV[0] eq "-all" ) { shift(@ARGV); $choice="all"; }
17if ($ARGV[0] eq "-none") { shift(@ARGV); $choice="none"; } 17if ($ARGV[0] eq "-none") { shift(@ARGV); $choice="none"; }
18# neither means, leave that part of Config.h alone 18# neither means, leave that part of Config.h alone
19 19
20# Support building from pristine source 20# Support building from pristine source
21$make_opt = "-f $ARGV[0]/Makefile BB_SRC_DIR=$ARGV[0]" if ($ARGV[0] ne ""); 21$make_opt = "-f $ARGV[0]/Makefile CONFIG_SRC_DIR=$ARGV[0]" if ($ARGV[0] ne "");
22 22
23# Move the config file to a safe place 23# Move the config file to a safe place
24-e "Config.h.orig" || 0==system("mv -f Config.h Config.h.orig") || die; 24-e "Config.h.orig" || 0==system("mv -f Config.h Config.h.orig") || die;
@@ -38,7 +38,7 @@ while (<C>) {
38 $trailer .= $_; 38 $trailer .= $_;
39 } else { 39 } else {
40 $in_trailer=1 if /End of Applications List/; 40 $in_trailer=1 if /End of Applications List/;
41 if (/^\/*#define BB_([A-Z0-9_]*)/) { 41 if (/^\/*#define CONFIG_([A-Z0-9_]*)/) {
42 push @apps, $1; 42 push @apps, $1;
43 } 43 }
44 } 44 }
@@ -50,7 +50,7 @@ $failed_tests=0;
50for $a (@apps) { 50for $a (@apps) {
51 # print "Testing build of applet $a ...\n"; 51 # print "Testing build of applet $a ...\n";
52 open (O, ">Config.h") || die; 52 open (O, ">Config.h") || die;
53 print O "#define BB_$a\n", $trailer; 53 print O "#define CONFIG_$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 # With a fast computer and 1-second resolution on file timestamps, this 56 # With a fast computer and 1-second resolution on file timestamps, this