4
0
Эх сурвалжийг харах

Test installs into temporary directories

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1701 f882894a-f735-0410-b71e-b25c423dba1c
Ton Voon 19 жил өмнө
parent
commit
b9b27ab255
1 өөрчлөгдсөн 4 нэмэгдсэн , 2 устгасан
  1. 4 2
      tools/tinderbox_build

+ 4 - 2
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