aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cwd
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2015-07-13 15:01:47 +0200
committerTharre <tharre3@gmail.com>2015-07-13 15:33:43 +0200
commit54d6f97c895490e2699e560990b37df95f3d1d87 (patch)
tree902d7cfcb839195f84dce0507645e5cc6d6256f5 /tests/cwd
parent3493dac92c9da21823b39b53b808745859fb9950 (diff)
downloadredo-54d6f97c895490e2699e560990b37df95f3d1d87.tar.gz
redo-54d6f97c895490e2699e560990b37df95f3d1d87.tar.xz
redo-54d6f97c895490e2699e560990b37df95f3d1d87.zip
Replace custom test-suite with sharness
This should make the hole test-suite a bit more standard (by outputting TAP), as well as making it easier to test redo in a controlled environment. In contrast to bats, sharness requires no external dependencies.
Diffstat (limited to 'tests/cwd')
-rw-r--r--tests/cwd/a.do3
-rw-r--r--tests/cwd/all.do9
-rw-r--r--tests/cwd/d/b.do3
-rw-r--r--tests/cwd/d/d/c.do1
4 files changed, 0 insertions, 16 deletions
diff --git a/tests/cwd/a.do b/tests/cwd/a.do
deleted file mode 100644
index e8455fe..0000000
--- a/tests/cwd/a.do
+++ /dev/null
@@ -1,3 +0,0 @@
-redo-ifchange d/b
-
-echo -n "a" | cat - d/b > $3
diff --git a/tests/cwd/all.do b/tests/cwd/all.do
deleted file mode 100644
index 106a721..0000000
--- a/tests/cwd/all.do
+++ /dev/null
@@ -1,9 +0,0 @@
-. ../include.sh
-
-rm -rf a d/b d/d/c
-
-redo-ifchange a
-
-assert "cwd" << !
-[ "$(cat a)" = "abc" ]
-!
diff --git a/tests/cwd/d/b.do b/tests/cwd/d/b.do
deleted file mode 100644
index 5a81363..0000000
--- a/tests/cwd/d/b.do
+++ /dev/null
@@ -1,3 +0,0 @@
-redo-ifchange d/c
-
-echo -n "b" | cat - d/c > $3
diff --git a/tests/cwd/d/d/c.do b/tests/cwd/d/d/c.do
deleted file mode 100644
index 6a816ac..0000000
--- a/tests/cwd/d/d/c.do
+++ /dev/null
@@ -1 +0,0 @@
-echo -n "c" > $3