Muninn/snippets/test-muninn.sh

21 lines
317 B
Bash
Raw Normal View History

#!/bin/zsh
set -ex
alias muninn="nginx/objs/nginx -p $(pwd)/mun_pfx -c muninn-test.conf"
# step 1: build
make all -j24
# step 2: set up test pfx
mkdir -p $(pwd)/mun_pfx/logs/
cp $(pwd)/snippets/muninn-test.conf mun_pfx/
# step 3: test configuration
muninn -T
#step 4: test runtime
muninn
sleep 1
muninn -s quit