[Nagiosplug-checkins] nagiosplug/tools tinderbox_build,1.3,1.4
Ton Voon
tonvoon at users.sourceforge.net
Thu Apr 26 00:21:38 CEST 2007
Update of /cvsroot/nagiosplug/nagiosplug/tools
In directory sc8-pr-cvs16:/tmp/cvs-serv24882
Modified Files:
tinderbox_build
Log Message:
Test installs into temporary directories
Index: tinderbox_build
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/tools/tinderbox_build,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- tinderbox_build 3 Aug 2006 08:14:09 -0000 1.3
+++ tinderbox_build 25 Apr 2007 22:21:35 -0000 1.4
@@ -266,13 +266,15 @@
sub maketest {
# Tests
print LOG "LANG=C make test 2>&1\n";
- open( MAKE, "LANG=C make test 2>&1 |");
+ open( MAKE, "LANG=C make test && make install DESTDIR=/tmp/tinderbox_build.$$ && make install-strip DESTDIR=/tmp/tinderbox_build2.$$ 2>&1 |");
while ( <MAKE> ) {
print $_;
print LOG $_;
}
close( MAKE);
- return ! $?;
+ my $rc = $?;
+ system("rm -fr /tmp/tinderbox_build.$$ /tmp/tinderbox_build2.$$");
+ return ! $rc;
}
# Main function
More information about the Commits
mailing list