blob: 31887bf23f2a9b7a43c778d37533c6774cc0a405 (
plain)
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
|