diff options
| author | Nathan Moreau <nathan.moreau@m4x.org> | 2020-05-17 17:23:17 +0200 |
|---|---|---|
| committer | Nathan Moreau <nathan.moreau@m4x.org> | 2020-05-17 17:28:27 +0200 |
| commit | 5375e54904dac5e431bd27cd6ebb91c725a26c50 (patch) | |
| tree | e2f4ddd5e35f7219aab72fd24ecdd3166a831750 | |
| parent | d211e680044b2d0d611851aba27924b0bdfb6571 (diff) | |
| download | rust-mode-5375e54904dac5e431bd27cd6ebb91c725a26c50.tar.gz | |
Test byte compilation of test code.
| -rwxr-xr-x | run_rust_emacs_tests.sh | 9 |
1 files changed, 9 insertions, 0 deletions
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 |
