branch: elpa/buttercup
commit bcaa0878d69c2478da9c8d71be16249d1cfee838
Author: Jorgen Schaefer <[email protected]>
Commit: Jorgen Schaefer <[email protected]>
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