From b9b27ab2552b5a236b4b422ad686388d8b31c54b Mon Sep 17 00:00:00 2001
From: Ton Voon <tonvoon@users.sourceforge.net>
Date: Wed, 25 Apr 2007 22:21:35 +0000
Subject: Test installs into temporary directories

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1701 f882894a-f735-0410-b71e-b25c423dba1c

diff --git a/tools/tinderbox_build b/tools/tinderbox_build
index 44e3dfe..1ace2b0 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
-- 
cgit v0.10-9-g596f

