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

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

[nongnu] elpa/bash-completion c444230670 154/313: Add run_tests.sh, to r


From: ELPA Syncer
Subject: [nongnu] elpa/bash-completion c444230670 154/313: Add run_tests.sh, to run tests from the command-line, with specific
Date: Sat, 3 Dec 2022 10:59:26 -0500 (EST)

branch: elpa/bash-completion
commit c4442306704abcec75cde6282e0379a3ee848101
Author: Stephane Zermatten <szermatt@gmx.net>
Commit: Stephane Zermatten <szermatt@gmx.net>

    Add run_tests.sh, to run tests from the command-line, with specific
    versions of emacs or bash.
---
 run_tests.sh | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/run_tests.sh b/run_tests.sh
new file mode 100755
index 0000000000..c82639e248
--- /dev/null
+++ b/run_tests.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+# Runs test using the emacs binary specified by ${EMACSCMD}, which
+# defaults to emacs, and the bash binary specified by ${BASHCMD},
+# which defaults to bash.
+#
+rootdir="$(dirname "$0")"
+testdir="${rootdir}/test"
+exec "${EMACSCMD:-emacs}" \
+    -Q \
+    -batch \
+    -eval "(setq bash-completion-prog \"${BASHCMD:-$(which bash)}\")" \
+    -L "${rootdir}" \
+    -L "${testdir}" \
+    -l "${testdir}/bash-completion-test.el" \
+    -l "${testdir}/bash-completion-integration-test.el" \
+    -f ert-run-tests-batch-and-exit



reply via email to

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