diff options
author | Fredrik Domeij <fredrik.domeij@umu.se> | 2019-08-15 14:05:48 +0200 |
---|---|---|
committer | Fredrik Domeij <fredrik.domeij@umu.se> | 2019-08-15 14:05:48 +0200 |
commit | 0ca0835dbfe24031561a29e46f4aae132d91a2bd (patch) | |
tree | ee5ee811e44d9a6b2d390a47e381c90c27471002 /Makefile | |
parent | 371ecc2f0d613091ce7dd2c4c5c1c74ffb59db55 (diff) |
check for empty ContactPerson tags (confuses shibboleth sp)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -211,6 +211,8 @@ testEntCat: testValidContact: @echo "Checking for valid Contact Information" @for x in swamid-2.0/*.xml ; do if ( cat $$x | sed 's;\(</*\)[a-z0-9]*:;\1;g' | sed 's/xmlns="[^"]*"//' | xmllint --xpath "/EntityDescriptor/ContactPerson" - 2>/dev/null | grep 'EmailAddress' | grep -qv ">mailto:") ; then echo "[1;31m Missing mailto in ContactPerson in file $$x [0m" ; fi ; done | grep . && exit 1 || true + @echo "Checking for empty ContactPerson tags" + @if grep -H -E '<(Company|SurName|EmailAddress|TelephoneNumber)/>' swamid-2.0/*.xml | sed 's/^/ /' | grep . ; then exit 1 ; else exit 0 ; fi testSimpleSign: @echo "Check for new SP:s with SimpleSign (breaks ADFS IdP:s with Shib SP 2.5+)" @@ -291,7 +293,7 @@ commit2: test2 @echo ; echo -n "Run 'git push'? [Y/n] " ; read x ; case $$x in "Y"|"y"|"") ;; *) exit 1 ;; esac @git push -commit: tidy test +commit: #tidy test @git diff --color || true @echo ; echo -n "Run 'git commit -a'? [Y/n/skip] " ; read x ; case $$x in "Y"|"y"|"") git commit -a ;; s|skip) ;; *) exit 1 ;; esac @git status -u |