mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-20 22:33:08 +02:00
Feature #1250
- #1250 Support out-of-tree test runs (thanks to Jakub Wilk).
This commit is contained in:
parent
5cfd7b0cc6
commit
09f577536a
9 changed files with 43 additions and 15 deletions
|
@ -30,6 +30,9 @@ use strict;
|
|||
use warnings;
|
||||
use Test::More tests => 16;
|
||||
|
||||
my $source_dir = $0;
|
||||
$source_dir =~ s{[^/]+$}{..};
|
||||
|
||||
# Create the rc file.
|
||||
if (open my $fh, '>', 'import.rc')
|
||||
{
|
||||
|
@ -71,7 +74,7 @@ EOF
|
|||
}
|
||||
|
||||
# Convert YAML --> task JSON.
|
||||
qx{../scripts/add-ons/import-yaml.pl <import.txt >import.json 2>&1};
|
||||
qx{$source_dir/scripts/add-ons/import-yaml.pl <import.txt >import.json 2>&1};
|
||||
|
||||
# Import the JSON.
|
||||
my $output = qx{../src/task rc:import.rc import import.json 2>&1 >/dev/null};
|
||||
|
@ -123,7 +126,7 @@ EOF
|
|||
}
|
||||
|
||||
# Convert YAML --> task JSON.
|
||||
qx{../scripts/add-ons/import-yaml.pl <import.txt >import.json 2>&1};
|
||||
qx{$source_dir/scripts/add-ons/import-yaml.pl <import.txt >import.json 2>&1};
|
||||
|
||||
# Import the JSON.
|
||||
$output = qx{../src/task rc:import.rc import import.json 2>&1 >/dev/null};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue