Code

Test installs into temporary directories
authorTon Voon <tonvoon@users.sourceforge.net>
Wed, 25 Apr 2007 22:21:35 +0000 (22:21 +0000)
committerTon Voon <tonvoon@users.sourceforge.net>
Wed, 25 Apr 2007 22:21:35 +0000 (22:21 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1701 f882894a-f735-0410-b71e-b25c423dba1c

tools/tinderbox_build

index 44e3dfe6a9efdcc4d8a934023d2a5c8cd5e71294..1ace2b030dfaa8a028bae30ae1dd3eaa47847921 100755 (executable)
@@ -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