emacs/org/elpa/pdf-tools-20230117.632/build/server/test/docker/lib/run-tests

25 lines
700 B
Plaintext
Raw Normal View History

2023-02-21 18:17:08 +00:00
#!/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