summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/configuration.nix3
-rwxr-xr-xtests/run-tests.sh6
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/configuration.nix b/tests/configuration.nix
index dc64463..3944dcd 100644
--- a/tests/configuration.nix
+++ b/tests/configuration.nix
@@ -54,6 +54,9 @@ in
rss = nginxMakeLocal 8083;
webkeydirectory = nginxMakeLocal 8084;
mesh = nginxMakeLocal 8085;
+ git = nginxMakeLocal 8086 // {
+ locations."/".proxyPass = lib.mkForce "http://192.168.2.2/git/";
+ };
};
environment.etc = {
diff --git a/tests/run-tests.sh b/tests/run-tests.sh
index 6b9a84a..6c64707 100755
--- a/tests/run-tests.sh
+++ b/tests/run-tests.sh
@@ -28,6 +28,7 @@ PORTS[quentin]=8080
PORTS[searx]=8081
PORTS[rss]=8083
PORTS[openpgpkey]=8084
+PORTS[git]=8086
for SERVICE in "${!PORTS[@]}"
do
URL="http://$IP:${PORTS[$SERVICE]}/"
@@ -101,4 +102,9 @@ fi
echo Done.
echo
+echo Checking cgit internal hyperlinks :
+RESULT=$(curl "http://$IP:${PORTS[git]}/" $CURL_FLAGS)
+echo $RESULT | grep "=\'/git/" > /dev/null && echo "Broken hyperlinks detected."
+
+echo
read -n1 -srp "Press any key to stop the server."