-
Notifications
You must be signed in to change notification settings - Fork 2
/
tests.sh
executable file
·25 lines (22 loc) · 1021 Bytes
/
tests.sh
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
#! /bin/sh
if ping -q -c 1 -W 1 google.com >/dev/null; then
resp="y"
else
echo -n "\n[WARN] You don't seem to have internet connectivity. \n T"
echo -n "esting JSONkeeper requires resolving JSON-LD contexts.\n\n "
echo -n "Continue anyway? (You might get a lot of failures due to HTTP\n "
echo -n " 400 responses.)\n\n(y/N)"
read resp
fi
if [ "$resp" != "y" ]; then
exit
fi
echo -n "\n[INFO] Testing config with JSON-LD @id rewrite off and Activity Str"
echo "eam\n serving off. (Expect 5 tests to be skipped.)"
JK_ID_REWRITE=0 JK_AS_SERVE=0 $(which python3) ./test.py
echo -n "\n[INFO] Testing config with JSON-LD @id rewrite on and Activity Stre"
echo "am\n serving off. (Expect 3 test to be skipped.)"
JK_ID_REWRITE=1 JK_AS_SERVE=0 $(which python3) ./test.py
echo -n "\n[INFO] Testing config with JSON-LD @id rewrite on and Activity Stre"
echo "am\n serving on. (Expect no test to be skipped.)"
JK_ID_REWRITE=1 JK_AS_SERVE=1 $(which python3) ./test.py