Add test framework to test
- Mail encryption (when expected) - Introducer listing, adding and removing - Locals listing, adding and removing
This commit is contained in:
+14
-10
@@ -1,21 +1,25 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
. /tmp/env.sh
|
||||
echo "bin:" $HUSK_BIN
|
||||
echo "home:" $SEQUOIA_HOME
|
||||
|
||||
cd $(dirname $0)
|
||||
|
||||
for TEST in ./tests/* ; do
|
||||
# create a new WORKDIR
|
||||
export WORKDIR=$(mktemp -d)
|
||||
|
||||
if bash $TEST ; then
|
||||
echo "success"
|
||||
echo "SUCCESS"
|
||||
else
|
||||
echo "failure"
|
||||
|
||||
# post mortem
|
||||
echo "ls -l /var/mail"
|
||||
ls -l /var/mail
|
||||
echo "mailq"
|
||||
mailq
|
||||
echo "host example.com"
|
||||
host example.com
|
||||
echo "FAILURE"
|
||||
|
||||
# post mortem, leave WORKDIR intact for inspection
|
||||
cat /tmp/husk.log
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# remove WORKDIR
|
||||
rm -rf $WORKDIR
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user