- #1250 Support out-of-tree test runs (thanks to Jakub Wilk).
This commit is contained in:
Paul Beckingham 2013-04-13 15:02:50 -04:00
parent 5cfd7b0cc6
commit 09f577536a
9 changed files with 43 additions and 15 deletions

View file

@ -41,10 +41,13 @@ if (open my $fh, '>', 'bug.rc')
ok (-r 'bug.rc', 'Created bug.rc');
}
my $source_dir = $0;
$source_dir =~ s{[^/]+$}{..};
# Copy task.sh and make substitutions & additions needed for testing.
if (open my $target, '>', 'task.sh')
{
if (open my $source, '<', '../scripts/bash/task.sh')
if (open my $source, '<', "$source_dir/scripts/bash/task.sh")
{
while (<$source>)
{