config

Personal configuration.
git clone git://code.dwrz.net/config
Log | Files | Refs

run-tests (700B)


      1 #!/bin/sh
      2 
      3 PATH="$(dirname "$0")":$PATH
      4 
      5 run_tests_exit_success()
      6 {
      7     echo "==============================="
      8     echo "   Elisp Tests succeeded. :O)  "
      9     echo "==============================="
     10     exit 0
     11 }
     12 
     13 set -e
     14 # Check that install completes successfully
     15 yes-or-enter | ./server/autobuild -i /bin
     16 # Check that re-install skips package installation
     17 yes-or-enter | ./server/autobuild -i /usr/bin | \
     18     grep -q "Skipping package installation (already installed)"
     19 # Check that lisp tests run correctly, if emacs is installed and available on PATH
     20 echo
     21 if which emacs > /dev/null 2> /dev/null; then
     22     echo "Emacs found installed! Running elisp tests"
     23     make test && run_tests_exit_success
     24 fi