snirh: removed one of the tests

APA is now blocking the w3c's xhtml validator, so we're not testing
that, for now.
This commit is contained in:
Marcos Marado 2024-04-16 10:32:28 +01:00
parent c4ff7cc6ff
commit 6a814af7b0
1 changed files with 6 additions and 5 deletions

View File

@ -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