aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2007-04-25 22:21:35 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2007-04-25 22:21:35 +0000
commitb9b27ab2552b5a236b4b422ad686388d8b31c54b (patch)
tree8484564e5117e9c441ea25a6b19aa0dd5237903a
parentd47be7a9e48242a25e356e2509f6fb774ae0be10 (diff)
downloadmonitoring-plugins-b9b27ab2552b5a236b4b422ad686388d8b31c54b.tar.gz
Test installs into temporary directories
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1701 f882894a-f735-0410-b71e-b25c423dba1c
-rwxr-xr-xtools/tinderbox_build6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/tinderbox_build b/tools/tinderbox_build
index 44e3dfe6..1ace2b03 100755
--- a/tools/tinderbox_build
+++ b/tools/tinderbox_build
@@ -266,13 +266,15 @@ sub make {
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