]> Cypherpunks.ru repositories - goredo.git/blobdiff - t/goredo-both-ifcreate-ifchange.t
Warn simultaneous ifcreate/ifchange usage
[goredo.git] / t / goredo-both-ifcreate-ifchange.t
diff --git a/t/goredo-both-ifcreate-ifchange.t b/t/goredo-both-ifcreate-ifchange.t
new file mode 100755 (executable)
index 0000000..e269fb4
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+testname=`basename "$0"`
+test_description="Check that warning exists when using both ifcreate/ifchange"
+. $SHARNESS_TEST_SRCDIR/sharness.sh
+export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1
+
+touch src
+echo redo-ifchange src > tgt.do
+echo redo-ifcreate src >> tgt.do
+redo tgt 2>2
+
+test_expect_success "warn exists" 'grep -q "simultaneous ifcreate and ifchange" 2'
+
+test_done