emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/d-mode 29940d7 226/346: Makefile: Add some utility command


From: ELPA Syncer
Subject: [nongnu] elpa/d-mode 29940d7 226/346: Makefile: Add some utility commands
Date: Sun, 29 Aug 2021 11:00:36 -0400 (EDT)

branch: elpa/d-mode
commit 29940d70ad15a9d0e3f9f58e7ff00e31b94025fd
Author: Vladimir Panteleev <git@thecybershadow.net>
Commit: Vladimir Panteleev <git@thecybershadow.net>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]