Test installs into temporary directories

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1701 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
Ton Voon 2007-04-25 22:21:35 +00:00
parent d47be7a9e4
commit b9b27ab255

View file

@ -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