File: run-tests

package info (click to toggle)
emacs-pdf-tools 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,864 kB
  • sloc: lisp: 11,541; ansic: 11,386; sh: 596; makefile: 182
file content (24 lines) | stat: -rwxr-xr-x 700 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

PATH="$(dirname "$0")":$PATH

run_tests_exit_success()
{
    echo "==============================="
    echo "   Elisp Tests succeeded. :O)  "
    echo "==============================="
    exit 0
}

set -e
# Check that install completes successfully
yes-or-enter | ./server/autobuild -i /bin
# Check that re-install skips package installation
yes-or-enter | ./server/autobuild -i /usr/bin | \
    grep -q "Skipping package installation (already installed)"
# Check that lisp tests run correctly, if emacs is installed and available on PATH
echo
if which emacs > /dev/null 2> /dev/null; then
    echo "Emacs found installed! Running elisp tests"
    make test && run_tests_exit_success
fi