Unit Tests

- Modified testing to accomodate new split between stdout/stderr.
This commit is contained in:
Paul Beckingham 2012-07-03 15:43:19 -04:00
parent 75822eed47
commit da575c4043
185 changed files with 1591 additions and 1591 deletions

View file

@ -39,15 +39,15 @@ if (open my $fh, '>', 'enp.rc')
}
# Test the en passant feature.
qx{../src/task rc:enp.rc add foo};
qx{../src/task rc:enp.rc add foo bar};
qx{../src/task rc:enp.rc 1,2 do /foo/FOO/ pri:H +tag};
my $output = qx{../src/task rc:enp.rc info 1};
qx{../src/task rc:enp.rc add foo 2>&1};
qx{../src/task rc:enp.rc add foo bar 2>&1};
qx{../src/task rc:enp.rc 1,2 do /foo/FOO/ pri:H +tag 2>&1};
my $output = qx{../src/task rc:enp.rc info 1 2>&1};
like ($output, qr/Status\s+Completed/, 'en passant 1 status change');
like ($output, qr/Description\s+FOO/, 'en passant 1 description change');
like ($output, qr/Priority\s+H/, 'en passant 1 description change');
like ($output, qr/Tags\s+tag/, 'en passant 1 description change');
$output = qx{../src/task rc:enp.rc info 2};
$output = qx{../src/task rc:enp.rc info 2 2>&1};
like ($output, qr/Status\s+Completed/, 'en passant 2 status change');
like ($output, qr/Description\s+FOO bar/, 'en passant 2 description change');
like ($output, qr/Priority\s+H/, 'en passant 2 description change');