summaryrefslogtreecommitdiff
path: root/test/bbackupd/testfiles
diff options
context:
space:
mode:
Diffstat (limited to 'test/bbackupd/testfiles')
-rwxr-xr-xtest/bbackupd/testfiles/extcheck1.pl.in5
-rwxr-xr-xtest/bbackupd/testfiles/extcheck2.pl.in5
2 files changed, 8 insertions, 2 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 |")
diff --git a/test/bbackupd/testfiles/extcheck2.pl.in b/test/bbackupd/testfiles/extcheck2.pl.in
index 3671ad93..02c258f8 100755
--- a/test/bbackupd/testfiles/extcheck2.pl.in
+++ b/test/bbackupd/testfiles/extcheck2.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 |")