From 6a814af7b06ec81ba4a0c30f6ea9d8e4b66a8c86 Mon Sep 17 00:00:00 2001 From: Marcos Marado Date: Tue, 16 Apr 2024 10:32:28 +0100 Subject: [PATCH] snirh: removed one of the tests APA is now blocking the w3c's xhtml validator, so we're not testing that, for now. --- scripts/26-snirh.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/26-snirh.sh b/scripts/26-snirh.sh index 27414ee..7f7d05e 100755 --- a/scripts/26-snirh.sh +++ b/scripts/26-snirh.sh @@ -4,11 +4,12 @@ maybeOK=0; -xhtmlErrors=$(wget "https://validator.w3.org/check?uri=https%3A%2F%2Fsnirh.apambiente.pt&charset=%28detect+automatically%29&doctype=Inline&group=0" -o /dev/null -O - |hxnormalize -x -l 1000|hxselect .invalid|hxselect h3 -c|cut -d: -f2|cut -d" " -f2) -if [ "$xhtmlErrors" -eq "0" ]; then - echo "xhtml snirh: incumprimento já não existe"; - maybeOK=1; -fi +# Test disabled as the website seems to be 403ing the request +# xhtmlErrors=$(wget "https://validator.w3.org/check?uri=https%3A%2F%2Fsnirh.apambiente.pt&charset=%28detect+automatically%29&doctype=Inline&group=0" -o /dev/null -O - |hxnormalize -x -l 1000|hxselect .invalid|hxselect h3 -c|cut -d: -f2|cut -d" " -f2) +# if [ "$xhtmlErrors" -eq "0" ]; then +# echo "xhtml snirh: incumprimento já não existe"; +# maybeOK=1; +# fi wget "https://jigsaw.w3.org/css-validator/validator?uri=https%3A%2F%2Fsnirh.apambiente.pt&profile=css3&usermedium=all&warning=1&vextwarning=&lang=en" -o /dev/null -O - |grep \#errors|cut -d\> -f3|cut -d\< -f1 > css if [ ! "$(diff css scripts/26/css|wc -l)" -eq "0" ]; then