mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-24 18:06:42 +02:00
Cmake:
- adapted makefile and unit tests to new place of test dir
This commit is contained in:
parent
17ef077e27
commit
5d775fdc3e
176 changed files with 1288 additions and 1287 deletions
|
@ -40,25 +40,25 @@ if (open my $fh, '>', 'pro.rc')
|
|||
}
|
||||
|
||||
# Test the project status numbers.
|
||||
my $output = qx{../task rc:pro.rc add one pro:foo};
|
||||
my $output = qx{../src/task rc:pro.rc add one pro:foo};
|
||||
like ($output, qr/The project 'foo' has changed\. Project 'foo' is 0% complete \(1 of 1 tasks remaining\)\./, 'add one');
|
||||
|
||||
$output = qx{../task rc:pro.rc add two pro:'foo'};
|
||||
$output = qx{../src/task rc:pro.rc add two pro:'foo'};
|
||||
like ($output, qr/The project 'foo' has changed\. Project 'foo' is 0% complete \(2 of 2 tasks remaining\)\./, 'add two');
|
||||
|
||||
$output = qx{../task rc:pro.rc add three pro:'foo'};
|
||||
$output = qx{../src/task rc:pro.rc add three pro:'foo'};
|
||||
like ($output, qr/The project 'foo' has changed\. Project 'foo' is 0% complete \(3 of 3 tasks remaining\)\./, 'add three');
|
||||
|
||||
$output = qx{../task rc:pro.rc add four pro:'foo'};
|
||||
$output = qx{../src/task rc:pro.rc add four pro:'foo'};
|
||||
like ($output, qr/The project 'foo' has changed\. Project 'foo' is 0% complete \(4 of 4 tasks remaining\)\./, 'add four');
|
||||
|
||||
$output = qx{../task rc:pro.rc 1 done};
|
||||
$output = qx{../src/task rc:pro.rc 1 done};
|
||||
like ($output, qr/Project 'foo' is 25% complete \(3 of 4 tasks remaining\)\./, 'done one');
|
||||
|
||||
$output = qx{../task rc:pro.rc 2 delete};
|
||||
$output = qx{../src/task rc:pro.rc 2 delete};
|
||||
like ($output, qr/The project 'foo' has changed\. Project 'foo' is 33% complete \(2 of 3 tasks remaining\)\./, 'delete two');
|
||||
|
||||
$output = qx{../task rc:pro.rc 3 pro:bar};
|
||||
$output = qx{../src/task rc:pro.rc 3 pro:bar};
|
||||
like ($output, qr/The project 'foo' has changed\. Project 'foo' is 50% complete \(1 of 2 tasks remaining\)\./, 'change project');
|
||||
like ($output, qr/The project 'bar' has changed\. Project 'bar' is 0% complete \(1 of 1 tasks remaining\)\./, 'change project');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue