We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d80d10d + 5b6cd76 commit 2955076Copy full SHA for 2955076
run_tests
@@ -1,7 +1,17 @@
1
#!/bin/bash
2
# -*- shell-script -*-
3
OUTPUT=/tmp/test-output.txt
4
-emacs -batch -l ert-bootstrap.el -l elixir-mode-tests.el -f ert-run-tests-batch-and-exit 2> $OUTPUT
+
5
+EMACS_BINARY="emacs"
6
7
+EMACS_VERSION=$1
8
+if [ -n "$EMACS_VERSION" ]; then
9
+ EMACS_BINARY=`evm bin $EMACS_VERSION`
10
+fi
11
12
+LOAD_FILES="-l ert-bootstrap.el -l elixir-mode-tests.el"
13
14
+$EMACS_BINARY -batch $LOAD_FILES -f ert-run-tests-batch-and-exit 2> $OUTPUT
15
16
if [ $? == 0 ]; then
17
echo "Success -- All tests passed."
@@ -17,7 +27,7 @@ else
27
break
18
28
;;
19
29
*)
20
- emacs -l elixir-mode-tests.el -f ert-run-tests-interactively
30
+ $EMACS_BINARY -q $LOAD_FILES -f ert-run-tests-interactively
21
31
22
32
23
33
esac
0 commit comments