Skip to content

Commit

Permalink
tests: clean-up and convert to POSIX shell
Browse files Browse the repository at this point in the history
  • Loading branch information
stsquad committed Oct 6, 2023
1 parent 76859cd commit 5373d39
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/check_daemon_starts.sh
@@ -1,17 +1,19 @@
#!/bin/bash
#!/bin/sh
#
# Check the Daemon starts up
#
set -ex
emacs --version
emacs --daemon
OK=`emacsclient -e "(if I-completed-loading-dotinit 0 -1)"`
if [ "$OK" != "0" ]
emacs --daemon --debug-init

sleep 1

if test $(emacsclient -e "(if I-completed-loading-dotinit 0 -1)") -eq 0
then
echo "Failed --daemon start-up"
exit -1
exit 1
else
INSTALLED=`emacsclient -e "package-activated-list"`
INSTALLED=$(emacsclient -e "package-activated-list")
echo "Succesful --daemon start-up with pkg=${INSTALLED}"
fi
emacsclient -e "(kill-emacs)"
Expand Down

0 comments on commit 5373d39

Please sign in to comment.