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

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

[nongnu] elpa/buttercup bcaa087 046/340: Add buttercup executable to run


From: ELPA Syncer
Subject: [nongnu] elpa/buttercup bcaa087 046/340: Add buttercup executable to run buttercup tests more easily.
Date: Thu, 16 Dec 2021 14:59:02 -0500 (EST)

branch: elpa/buttercup
commit bcaa0878d69c2478da9c8d71be16249d1cfee838
Author: Jorgen Schaefer <contact@jorgenschaefer.de>
Commit: Jorgen Schaefer <contact@jorgenschaefer.de>

    Add buttercup executable to run buttercup tests more easily.
    
    Fixes #7
---
 Makefile      |  2 +-
 bin/buttercup | 10 ++++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index f5f7909..427d25c 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ all: test
 
 test:
        $(EMACS) -batch -L . -l buttercup.el -f buttercup-run-markdown README.md
-       $(EMACS) -batch -L . -l buttercup.el -f buttercup-run-discover
+       ./bin/buttercup -L .
 
 tar:
        mkdir -p dist
diff --git a/bin/buttercup b/bin/buttercup
new file mode 100755
index 0000000..62a9ba7
--- /dev/null
+++ b/bin/buttercup
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+if [ -n "$INSIDE_EMACS" ]
+then
+    EMACS_BIN="emacs"
+else
+    EMACS_BIN="${EMACS:-emacs}"
+fi
+
+exec "$EMACS_BIN" -batch "$@" -l buttercup -f buttercup-run-discover



reply via email to

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