diff options
Diffstat (limited to 'test/bbackupd/testfiles/extcheck1.pl.in')
-rwxr-xr-x | test/bbackupd/testfiles/extcheck1.pl.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/bbackupd/testfiles/extcheck1.pl.in b/test/bbackupd/testfiles/extcheck1.pl.in index 5b70c677..c80ddc66 100755 --- a/test/bbackupd/testfiles/extcheck1.pl.in +++ b/test/bbackupd/testfiles/extcheck1.pl.in @@ -1,9 +1,12 @@ #!@PERL@ use strict; +use File::Spec; + my $flags = $ARGV[0] or ""; +my $bbackupquery = File::Spec->catfile('..', '..', 'bin', 'bbackupquery', 'bbackupquery'); -unless(open IN,"../../bin/bbackupquery/bbackupquery -Wwarning " . +unless(open IN, "$bbackupquery -Wwarning " . "-c testfiles/bbackupd.conf " . "-l testfiles/query4.log " . "\"compare -ac$flags\" quit 2>&1 |") |