Archived
1
0
Fork 0
This repository has been archived on 2024-10-19. You can view files and clone it, but cannot push or open issues or pull requests.
emacs/elpa/pdf-tools-20240429.407/build/server/test/docker/lib/run-tests

25 lines
700 B
Plaintext
Raw Normal View History

2023-04-07 19:25:24 +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