mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-09 00:32:05 -04:00
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:
parent
d47be7a9e4
commit
b9b27ab255
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue