File: byte-compilation

package info (click to toggle)
vm 8.2.0b-11.1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,220 kB
  • sloc: lisp: 50,545; sh: 560; makefile: 452; ansic: 298; python: 112
file content (28 lines) | stat: -rw-r--r-- 684 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
#
# This test checks that the VM library can be loaded and invoked,
# and that this is still OK even if emacs had opportunity to byte compile.
#
# In practice this is probably good enough to spot most installation problems.
# It did discover #1039105

set -ex
set -o pipefail

if [ "$AUTOPKGTEST_TMP" ]; then
    cd "$AUTOPKGTEST_TMP"
fi

: 'Running emacs with timed exit to try to encourage byte compilation'

script -e -c '
    export TERM=xterm
    timeout -v 20 \
    emacs -q -f vm --exec "(run-at-time \"10 sec\" nil '\''kill-emacs)"
' | cat -vet

: "got PIPESTATUS ${PIPESTATUS[@]}"

: "Running emacs in batch mode to see if vm still loads"

emacs --batch -q -f vm