chiark / gitweb /
tests/filter: New test framework for generate
[subdirmk.git] / tests / filter / update-expected
diff --git a/tests/filter/update-expected b/tests/filter/update-expected
new file mode 100755 (executable)
index 0000000..ff10542
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+# Usual approach to updating the expected outputs is
+#   tests/filter/check
+#   tests/filter/update-expected
+#   selectively git-add the things that are right, after inspecting them
+
+set -e
+files=$(find tests/filter -name \*.tmp)
+for f in $files; do cp $f ${f%.tmp}.expected; done