aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ifcreate/all.do
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ifcreate/all.do')
-rw-r--r--tests/ifcreate/all.do17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ifcreate/all.do b/tests/ifcreate/all.do
new file mode 100644
index 0000000..93fdaf9
--- /dev/null
+++ b/tests/ifcreate/all.do
@@ -0,0 +1,17 @@
+. ../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" ]
+!