aboutsummaryrefslogtreecommitdiffstats
path: root/tests/args
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2015-05-25 16:20:27 +0200
committerTharre <tharre3@gmail.com>2015-05-25 16:20:27 +0200
commitc7712dfd7bf2734e339096d3274f5b0bef2b4335 (patch)
tree3b4ce149869e4b3273c1c53dd7194a2ad8b5760e /tests/args
parent91e31ebf711d38830b0b53dc848aa90223f9be1d (diff)
downloadredo-c7712dfd7bf2734e339096d3274f5b0bef2b4335.tar.gz
redo-c7712dfd7bf2734e339096d3274f5b0bef2b4335.tar.xz
redo-c7712dfd7bf2734e339096d3274f5b0bef2b4335.zip
Replace current tests with a hole new test suite
This new test suite is based on just on do scripts, much like apenwarr's redo implementation has done it. This makes tests both simpler and free from any additional dependencies. The naming was also improved a lot. There are also a lot of new tests, and many more to be implemeted later.
Diffstat (limited to 'tests/args')
-rw-r--r--tests/args/all.do5
-rw-r--r--tests/args/d/a.ext.do3
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/args/all.do b/tests/args/all.do
new file mode 100644
index 0000000..d45bd96
--- /dev/null
+++ b/tests/args/all.do
@@ -0,0 +1,5 @@
+. ../include.sh
+
+assert "check arguments supplied to do-script" << !
+redo-ifchange d/a.ext
+!
diff --git a/tests/args/d/a.ext.do b/tests/args/d/a.ext.do
new file mode 100644
index 0000000..fea7d74
--- /dev/null
+++ b/tests/args/d/a.ext.do
@@ -0,0 +1,3 @@
+[ "$1" = "a.ext" ]
+[ "$2" = "a" ]
+[ "$3" != "a.ext" ]