Unit Tests

- Many tests referred to 'synch_key.data', which is not the correct
  name.  It should be 'synch.key'.  This has no effect on the number
  of passing tests though.
This commit is contained in:
Paul Beckingham 2011-09-07 00:33:02 -04:00
parent 9ed0c5c86d
commit 70eba976ae
35 changed files with 42 additions and 42 deletions

View file

@ -54,7 +54,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'append.rc', 'Cleanup');
exit 0;

View file

@ -60,7 +60,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'args.rc', 'Cleanup');
exit 0;

View file

@ -72,7 +72,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'args.rc', 'Cleanup');
exit 0;

View file

@ -72,7 +72,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'args.rc', 'Cleanup');
exit 0;

View file

@ -72,7 +72,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'args.rc', 'Cleanup');
exit 0;

View file

@ -78,7 +78,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'args.rc', 'Cleanup');
exit 0;

View file

@ -66,7 +66,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'args.rc', 'Cleanup');
exit 0;

View file

@ -70,7 +70,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'bug.rc', 'Cleanup');
exit 0;

View file

@ -79,7 +79,7 @@ ok (! -r 'local/pending.data' &&
! -r 'local/undo.data' &&
! -r 'local/undo.save' &&
! -r 'local/backlog.data' &&
! -r 'local/synch_key.data' &&
! -r 'local/synch.key' &&
! -r 'local.rc', 'Cleanup');
unlink qw(remote/pending.data remote/completed.data remote/undo.data remote/backlog.data remote/synch.key remote.rc);
@ -87,7 +87,7 @@ ok (! -r 'remote/pending.data' &&
! -r 'remote/completed.data' &&
! -r 'remote/undo.data' &&
! -r 'remote/backlog.data' &&
! -r 'remote/synch_key.data' &&
! -r 'remote/synch.key' &&
! -r 'remote.rc', 'Cleanup');
rmdir("remote/extensions");

View file

@ -73,7 +73,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'bug.rc', 'Cleanup');
exit 0;

View file

@ -62,7 +62,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'bug.rc', 'Cleanup');
exit 0;

View file

@ -49,7 +49,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'bug.rc', 'Cleanup');
exit 0;

View file

@ -56,7 +56,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'bug.rc', 'Cleanup');
exit 0;

View file

@ -74,7 +74,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'annual.rc', 'Cleanup');
exit 0;

View file

@ -73,7 +73,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'bug.rc', 'Cleanup');
exit 0;

View file

@ -159,7 +159,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'period.rc', 'Cleanup');
exit 0;

View file

@ -124,7 +124,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'caseless.rc', 'Cleanup');
exit 0;

View file

@ -56,7 +56,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'color.rc', 'Cleanup');
exit 0;

View file

@ -133,7 +133,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'confirm.rc' &&
! -r 'response.txt', 'Cleanup');

View file

@ -68,7 +68,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'count.rc', 'Cleanup');
exit 0;

View file

@ -76,7 +76,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'delete.rc', 'Cleanup');
exit 0;

View file

@ -77,7 +77,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'export.rc' &&
! -r 'export.txt', 'Cleanup');

View file

@ -105,7 +105,7 @@ ok (! -r 'import.txt' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'import.rc', 'Cleanup');
exit 0;

View file

@ -125,7 +125,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'import.rc' &&
! -r 'import.txt' &&
! -r 'import.json', 'Cleanup');

View file

@ -145,7 +145,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'import.rc' &&
! -r 'import.txt' &&
! -r 'import.json', 'Cleanup');

View file

@ -62,7 +62,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'projects.rc', 'Cleanup');
exit 0;

View file

@ -62,7 +62,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'tags.rc', 'Cleanup');
exit 0;

View file

@ -182,7 +182,7 @@ ok (! -r 'data1/pending.data' &&
! -r 'data1/undo.data' &&
! -r 'data1/undo.save' &&
! -r 'data1/backlog.data' &&
! -r 'data1/synch_key.data' &&
! -r 'data1/synch.key' &&
! -r '1.rc', 'data1 Cleanup');
unlink qw(data2/pending.data data2/completed.data data2/undo.data data2/undo.save data2/backlog.data data2/synch.key 2.rc);
@ -191,7 +191,7 @@ ok (! -r 'data2/pending.data' &&
! -r 'data2/undo.data' &&
! -r 'data2/undo.save' &&
! -r 'data2/backlog.data' &&
! -r 'data2/synch_key.data' &&
! -r 'data2/synch.key' &&
! -r '2.rc', 'data2 Cleanup');
unlink qw(data3/pending.data data3/completed.data data3/undo.data data3/undo.save data3/backlog.data data3/synch.key 3.rc);
@ -200,7 +200,7 @@ ok (! -r 'data3/pending.data' &&
! -r 'data3/undo.data' &&
! -r 'data3/undo.save' &&
! -r 'data3/backlog.data' &&
! -r 'data3/synch_key.data' &&
! -r 'data3/synch.key' &&
! -r '3.rc', 'data3 Cleanup');
unlink qw(backup/pending.data backup/completed.data backup/undo.data backup/undo.save backup/backlog.data backup/synch.key);
@ -209,7 +209,7 @@ ok (! -r 'backup/pending.data' &&
! -r 'backup/undo.data' &&
! -r 'backup/undo.save' &&
! -r 'backup/backlog.data' &&
! -r 'backup/synch_key.data', 'backup Cleanup');
! -r 'backup/synch.key', 'backup Cleanup');
rmtree (['data1/extensions', 'data1', 'data2/extensions', 'data2', 'data3/extensions', 'data3', 'backup/extensions', 'backup'], 0, 1);
ok (! -e 'data1/extensions' &&

View file

@ -235,7 +235,7 @@ ok (! -r 'local/pending.data' &&
! -r 'local/undo.data' &&
! -r 'local/undo.save' &&
! -r 'local/backlog.data' &&
! -r 'local/synch_key.data' &&
! -r 'local/synch.key' &&
! -r 'local.rc', 'Local Cleanup');
unlink qw(remote/pending.data remote/completed.data remote/undo.data remote/backlog.data remote/synch.key remote.rc);
@ -243,7 +243,7 @@ ok (! -r 'remote/pending.data' &&
! -r 'remote/completed.data' &&
! -r 'remote/undo.data' &&
! -r 'remote/backlog.data' &&
! -r 'remote/synch_key.data' &&
! -r 'remote/synch.key' &&
! -r 'remote.rc', 'Remove Cleanup');
rmtree (['remote/extensions', 'remote', 'local/extensions', 'local'], 0, 1);

View file

@ -54,7 +54,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'prepend.rc', 'Cleanup');
exit 0;

View file

@ -72,7 +72,7 @@ ok (! -r 'roundtrip.txt' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'roundtrip.rc', 'Cleanup');
exit 0;

View file

@ -57,7 +57,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'shell.rc', 'Cleanup');
exit 0;

View file

@ -64,7 +64,7 @@ int main (int argc, char** argv)
t.is ((int) completed.size (), 0, "TDB2 Read empty completed");
t.is ((int) undo.size (), 0, "TDB2 Read empty undo");
t.is ((int) backlog.size (), 0, "TDB2 Read empty backlog");
t.is ((int) synch_key.size (), 0, "TDB2 Read empty synch_key");
t.is ((int) synch_key.size (), 0, "TDB2 Read empty synch.key");
// Add a task.
Task task ("[description:\"description\" name:\"value\"]");
@ -80,7 +80,7 @@ int main (int argc, char** argv)
t.is ((int) completed.size (), 0, "TDB2 after add, 0 completed tasks");
t.is ((int) undo.size (), 3, "TDB2 after add, 3 undo lines");
t.is ((int) backlog.size (), 1, "TDB2 after add, 1 backlog task");
t.is ((int) synch_key.size (), 0, "TDB2 after add, 0 synch_key");
t.is ((int) synch_key.size (), 0, "TDB2 after add, 0 synch.key");
task.set ("description", "This is a test");
context.tdb2.modify (task);
@ -95,7 +95,7 @@ int main (int argc, char** argv)
t.is ((int) completed.size (), 0, "TDB2 after add, 0 completed tasks");
t.is ((int) undo.size (), 7, "TDB2 after add, 7 undo lines");
t.is ((int) backlog.size (), 2, "TDB2 after add, 2 backlog task");
t.is ((int) synch_key.size (), 0, "TDB2 after add, 0 synch_key");
t.is ((int) synch_key.size (), 0, "TDB2 after add, 0 synch.key");
context.tdb2.commit ();

View file

@ -87,7 +87,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'time.rc', 'Cleanup');
exit 0;

View file

@ -111,7 +111,7 @@ ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch_key.data' &&
! -r 'synch.key' &&
! -r 'uuid.rc', 'Cleanup');
exit 0;