Add test framework to test

- Mail encryption (when expected)
- Introducer listing, adding and removing
- Locals listing, adding and removing
This commit is contained in:
Malte Meiboom
2026-05-20 14:27:28 +02:00
parent aed368e90d
commit 1f8d7e9a3f
19 changed files with 303 additions and 96 deletions
+14 -10
View File
@@ -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