Feature #1250
- #1250 Support out-of-tree test runs (thanks to Jakub Wilk).
This commit is contained in:
@@ -30,6 +30,9 @@ use strict;
|
||||
use warnings;
|
||||
use Test::More tests => 26;
|
||||
|
||||
my $source_dir = $0;
|
||||
$source_dir =~ s{[^/]+$}{..};
|
||||
|
||||
# Create the rc file.
|
||||
if (open my $fh, '>', 'import.rc')
|
||||
{
|
||||
@@ -64,7 +67,7 @@ if (open my $fh, '>', 'import.txt')
|
||||
}
|
||||
|
||||
# Convert todo.sh --> task JSON.
|
||||
qx{../scripts/add-ons/import-todo.sh.pl <import.txt >import.json 2>&1};
|
||||
qx{$source_dir/scripts/add-ons/import-todo.sh.pl <import.txt >import.json 2>&1};
|
||||
|
||||
# Import the JSON.
|
||||
my $output = qx{../src/task rc:import.rc import import.json 2>&1};
|
||||
|
||||
Reference in New Issue
Block a user