branch: elpa/d-mode
commit 29940d70ad15a9d0e3f9f58e7ff00e31b94025fd
Author: Vladimir Panteleev <[email protected]>
Commit: Vladimir Panteleev <[email protected]>
Makefile: Add some utility commands
---
Makefile | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 6455f89..5fe40d9 100644
--- a/Makefile
+++ b/Makefile
@@ -11,4 +11,12 @@ clean:
rm -f d-mode.elc
find tests -name '*.res.*' -delete
-.PHONY: all test
+# Show just the differences between the actual and expected results.
+test-diff:
+ for f in tests/*.res.* ; do diff --color -u "$${f/.res/}" "$$f" ; done
+
+# Accept any mismatching actual output as the expected output.
+test-accept:
+ for f in tests/*.res.* ; do mv "$$f" "$${f/.res/}" ; done
+
+.PHONY: all test compile clean test-diff test-accept