From 4d3b399ce8e4d128e495196c1504675806cf934e Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Thu, 29 Jan 2026 21:56:40 +0100 Subject: git: change default view of repo to their tree --- tests/run-tests.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'tests/run-tests.sh') diff --git a/tests/run-tests.sh b/tests/run-tests.sh index 401b0c3..6e161a2 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -91,15 +91,21 @@ echo Done. echo echo Checking cgit instance: -echo Checking internal hyperlinks ... RESULT=$(curl "http://$IP:${PORTS[git]}/" $CURL_FLAGS) -if [[ $(echo "$RESULT" | grep "=\'/git/" > /dev/null) ]] +echo "Checking that internal hyperlinks don't start with 'git' ..." +if $(echo "$RESULT" | grep --silent "=\'/git/") then - echo "Broken hyperlinks detected." + echo "Broken hyperlinks detected." +fi +echo Checking that the default view of repositories is their tree ... +if $(echo "$RESULT" | grep --silent "href='/[^/]*/[^/]*/'") +then + echo "Broken hyperlinks detected." fi echo Done. +echo echo Checking custom Searx engines : declare -A QUERIES QUERIES[alternativeto]=Searx -- cgit v1.2.3