mirror of
https://github.com/marado/RNID.git
synced 2025-04-10 03:47:31 +00:00
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:
parent
c4ff7cc6ff
commit
6a814af7b0
@ -4,11 +4,12 @@
|
|||||||
|
|
||||||
maybeOK=0;
|
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)
|
# Test disabled as the website seems to be 403ing the request
|
||||||
if [ "$xhtmlErrors" -eq "0" ]; then
|
# 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)
|
||||||
echo "xhtml snirh: incumprimento já não existe";
|
# if [ "$xhtmlErrors" -eq "0" ]; then
|
||||||
maybeOK=1;
|
# echo "xhtml snirh: incumprimento já não existe";
|
||||||
fi
|
# 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
|
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
|
if [ ! "$(diff css scripts/26/css|wc -l)" -eq "0" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user