diff options
author | Tharre <tharre3@gmail.com> | 2015-07-13 15:01:47 +0200 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2015-07-13 15:33:43 +0200 |
commit | 54d6f97c895490e2699e560990b37df95f3d1d87 (patch) | |
tree | 902d7cfcb839195f84dce0507645e5cc6d6256f5 /tests/ifcreate | |
parent | 3493dac92c9da21823b39b53b808745859fb9950 (diff) | |
download | redo-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/ifcreate')
-rw-r--r-- | tests/ifcreate/a.do | 11 | ||||
-rw-r--r-- | tests/ifcreate/all.do | 17 |
2 files changed, 0 insertions, 28 deletions
diff --git a/tests/ifcreate/a.do b/tests/ifcreate/a.do deleted file mode 100644 index 7f58ce4..0000000 --- a/tests/ifcreate/a.do +++ /dev/null @@ -1,11 +0,0 @@ - -if [ -e b ]; then - echo -n "b" | cat - a > $3 -else - redo-ifcreate b - if [ -e a ]; then - echo -n "a" | cat - a > $3 - else - echo "a" > $3 - fi -fi diff --git a/tests/ifcreate/all.do b/tests/ifcreate/all.do deleted file mode 100644 index 93fdaf9..0000000 --- a/tests/ifcreate/all.do +++ /dev/null @@ -1,17 +0,0 @@ -. ../include.sh - -rm -rf a b - -# we use redo here, as redo-ifchange is smart enough not to rebuild the same -# file twice in the same redo session - -redo a -redo a - -touch b - -redo a - -assert "ifcreate" << ! -[ "$(cat a)" = "baa" ] -! |