From 63808b8920ee95efe7f587126fdb4843aa1a3fb6 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 23 Aug 2014 17:13:42 -0400 Subject: [PATCH] Unit Tests - Updated 'run' test script to use 'task' instead of the defunct 'args' program. --- src/run | 49 +++++++++++++++++++++++++------------------------ 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/src/run b/src/run index 9300e8133..ff37344ba 100755 --- a/src/run +++ b/src/run @@ -1,56 +1,57 @@ +echo 'data.location=.' > x # 2.0.0 command line tests: # Support dropped for multiple quoted terms. #echo -#echo ./args rc:x rc.debug:1 rc.hyphenate:off list pro:foo \"\(du\<123.due or due.aft:som\)\" and entry \'\>\'8/31/2011 +2w+1d /pattern/ -# ./args rc:x rc.debug:1 rc.hyphenate:off list pro:foo "(du<123.due or due.aft:som)" and entry '>'8/31/2011 +2w+1d /pattern/ +#echo ./task rc:x rc.debug:1 rc.hyphenate:off list pro:foo \"\(du\<123.due or due.aft:som\)\" and entry \'\>\'8/31/2011 +2w+1d /pattern/ +# ./task rc:x rc.debug:1 rc.hyphenate:off list pro:foo "(du<123.due or due.aft:som)" and entry '>'8/31/2011 +2w+1d /pattern/ # Support dropped for multiple quoted terms. #echo -#echo ./args rc:x rc.debug:1 rc.hyphenate:off list \"pro:foo \(du\<123.due or due.aft:som\) and entry \>8/31/2011 +2w+1d /pattern/\" -#./args rc:x rc.debug:1 rc.hyphenate:off list "pro:foo (du<123.due or due.aft:som) and entry >8/31/2011 +2w+1d /pattern/" +#echo ./task rc:x rc.debug:1 rc.hyphenate:off list \"pro:foo \(du\<123.due or due.aft:som\) and entry \>8/31/2011 +2w+1d /pattern/\" +#./task rc:x rc.debug:1 rc.hyphenate:off list "pro:foo (du<123.due or due.aft:som) and entry >8/31/2011 +2w+1d /pattern/" echo -echo ./args rc:x rc.debug:1 1-3,5 7 or +tag modify pri:H /from/to/g -tag -./args rc:x rc.debug:1 1-3,5 7 or +tag modify pri:H /from/to/g -tag +echo ./task rc:x rc.debug:1 1-3,5 7 or +tag modify pri:H /from/to/g -tag +./task rc:x rc.debug:1 1-3,5 7 or +tag modify pri:H /from/to/g -tag echo -echo ./args rc:x rc.debug:1 add pro:foo due:eom-2wk recur:monthly do the thing -./args rc:x rc.debug:1 add pro:foo due:eom-2wk recur:monthly do the thing +echo ./task rc:x rc.debug:1 add pro:foo due:eom-2wk recur:monthly do the thing +./task rc:x rc.debug:1 add pro:foo due:eom-2wk recur:monthly do the thing echo -echo ./args rc:x rc.debug:1 add pro:foo -- due:eom-2wk recur:monthly do the thing -./args rc:x rc.debug:1 add pro:foo -- due:eom-2wk recur:monthly do the thing +echo ./task rc:x rc.debug:1 add pro:foo -- due:eom-2wk recur:monthly do the thing +./task rc:x rc.debug:1 add pro:foo -- due:eom-2wk recur:monthly do the thing echo -echo ./args rc:x rc.debug:1 1234 done pri:H -./args rc:x rc.debug:1 1234 done pri:H +echo ./task rc:x rc.debug:1 1234 done pri:H +./task rc:x rc.debug:1 1234 done pri:H echo -echo ./args rc:x rc.debug:1 a.b\