branch: elpa/rust-mode
commit 5375e54904dac5e431bd27cd6ebb91c725a26c50
Author: Nathan Moreau <[email protected]>
Commit: Nathan Moreau <[email protected]>
Test byte compilation of test code.
---
run_rust_emacs_tests.sh | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/run_rust_emacs_tests.sh b/run_rust_emacs_tests.sh
index ac5e3dc..600ad4d 100755
--- a/run_rust_emacs_tests.sh
+++ b/run_rust_emacs_tests.sh
@@ -40,4 +40,13 @@ else
echo "Byte-compilation passed."
fi
+warnings="$( $EMACS -Q -batch -l rust-mode.el -f batch-byte-compile
rust-mode-tests.el 2>&1 | grep -v '^Wrote ' )"
+if [ -n "$warnings" ]; then
+ echo "Byte-compilation failed:"
+ echo "$warnings"
+ exit 4
+else
+ echo "Byte-compilation of test file passed."
+fi
+
$EMACS -batch -l rust-mode.el -l rust-mode-tests.el -f
ert-run-tests-batch-and-exit