~zethra/stargazer

ref: fbbf828c33087d1601d81db7c99c41d71fcb930f stargazer/scripts/test -rwxr-xr-x 601 bytes
fbbf828c — Ben Aaron Goldberg config: add bad config for testing 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

echo Building stargazer
cargo build $CARGO_ARGS
echo Building loop
cc test_data/cgi-bin/loop.c -o test_data/cgi-bin/loop
echo Starting stargazer
cargo run $CARGO_ARGS -- -C ./test_data/testing.ini &
PID=$!
echo Staring SCGI server
./scripts/scgi-server &
SPID=$!
cleanup() {
	kill "$SPID"
}
trap cleanup EXIT
echo Running stargazer tests
./scripts/gemini-diagnostics "$@"
RET=$?
echo Killing stargazer
kill "$PID"
echo Killing SCGI server
kill "$SPID"
echo Test building man pages
scdoc < ./doc/stargazer.scd > /dev/null
scdoc < ./doc/stargazer-ini.scd > /dev/null
echo 'Done!'
exit "$RET"