From 1f304f4d1dd8646a89eb19e90868c9b1da9b0fae Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Wed, 8 Feb 2012 23:12:43 -0500 Subject: [PATCH] t/100-args: add a test for --old-args feature. --- t/100-args/all.do | 2 ++ t/100-args/default.oldargs.do | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 t/100-args/default.oldargs.do diff --git a/t/100-args/all.do b/t/100-args/all.do index bd750d9..c408ecc 100644 --- a/t/100-args/all.do +++ b/t/100-args/all.do @@ -1 +1,3 @@ redo test.args test2.args passfailtest +. ../skip-if-minimal-do.sh +redo --old-args test.oldargs diff --git a/t/100-args/default.oldargs.do b/t/100-args/default.oldargs.do new file mode 100644 index 0000000..887cdd0 --- /dev/null +++ b/t/100-args/default.oldargs.do @@ -0,0 +1,5 @@ +# Note: this test expects to be run with 'redo --old-args' or it will fail. +. ../skip-if-minimal-do.sh +[ "$1" = "test" ] +[ "$2" = ".oldargs" ] +[ "$3" != "test.oldargs" ]