Seppo.Social -> Seppo.mro.name
[Seppo.git] / test / cgi-test.sh
blob4682265677fb3219dd615da13e096027a331ecbc
1 #!/bin/sh
2 #set -e
3 cd "$(dirname "${0}")"
5 # readonly cgi="_build/seppo-Linux-x86_64-0.1.cgi"
6 readonly cgi="$(pwd)/_build/default/bin/seppo.exe"
8 mkdir -p /tmp/seppo/
9 cd /tmp/seppo/
11 "${cgi}" dot \
12 | dot -Tsvg -o seppo.svg
14 rm \
15 app/etc/id_rsa.priv.pem \
16 activitypub/id_rsa.pub.pem \
17 activitypub/index.json
19 "${cgi}" activitypub
21 ls -Altr \
22 app/etc/id_rsa.priv.pem \
23 activitypub/* \
24 .well-known/webfinger/*
26 #tree
27 exit 0
29 export PATH_INFO="/activitypub/monitor.txt"
30 export REQUEST_METHOD="GET"
31 export SERVER_NAME="example.com"
32 export SERVER_PORT="443"
33 export REMOTE_ADDR="127.0.0.1"
34 export SCRIPT_NAME="seppo.cgi"
36 echo "${cgi}${PATH_INFO}"
38 # sh app/etc/keygen.sh
39 "${cgi}"