diff options
author | Johan Wassberg <jocar@sunet.se> | 2024-09-18 14:27:02 +0200 |
---|---|---|
committer | Johan Wassberg <jocar@sunet.se> | 2024-09-18 14:30:40 +0200 |
commit | 64560e039c90bcb3dbb74dc52cfc5de5d1875825 (patch) | |
tree | 3c25319cb93f53ac68a7541d104afdd4444d3a0d /metadata/Makefile | |
parent | 647b19b8b7d2a6d16161a09aa39e358362eff43d (diff) |
SWAMID Testing is no moremd-2024-09-18-v05
All hail SWAMID QA!
Diffstat (limited to 'metadata/Makefile')
-rw-r--r-- | metadata/Makefile | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/metadata/Makefile b/metadata/Makefile index 981abc7d..7fbebc7d 100644 --- a/metadata/Makefile +++ b/metadata/Makefile @@ -1,5 +1,5 @@ SHELL=/bin/bash -SRCDIRS=swamid-2.0 swamid-edugain swamid-testing +SRCDIRS=swamid-2.0 swamid-edugain NOW=$(shell perl scripts/now_date.pl) @@ -8,7 +8,6 @@ tag: EDUGAINXML=$(patsubst swamid-edugain/%.xml,.time/%.time,$(wildcard swamid-edugain/*.xml)) SWAMID20XML=$(patsubst swamid-2.0/%.xml,.time/%.time,$(wildcard swamid-2.0/*.xml)) -TESTINGXML=$(patsubst swamid-testing/%.xml,.time/%.time,$(wildcard swamid-testing/*.xml)) testRefedsRnS: @echo "Checking for refeds R&S compatibillity for entities exported to eduGAIN" @@ -87,7 +86,7 @@ checkUKalgorithms: @xsltproc --xinclude xslt/check_uk_algorithms.xsl swamid-edugain/* | sed 's/.*/[1;31m&[0m/' | grep . && exit 1 || exit 0 @xsltproc --xinclude xslt/check_algsupport.xsl swamid-edugain/* | sed 's/.*/[1;31m&[0m/' | grep . && exit 1 || exit 0 -test: $(EDUGAINXML) $(SWAMID20XML) $(TESTINGXML) testMDUI testALlevel testEduGAINchecks testRefedsRnS testBadStrings testRegistrationAuthority checkInvalidChars checkUKalgorithms +test: $(EDUGAINXML) $(SWAMID20XML) testMDUI testALlevel testEduGAINchecks testRefedsRnS testBadStrings testRegistrationAuthority checkInvalidChars checkUKalgorithms .time/%.time: swamid-edugain/%.xml @xsltproc --stringparam regDate $(NOW) xslt/add-rpi.xsl $< > $<.c && mv $<.c $< @@ -107,18 +106,9 @@ test: $(EDUGAINXML) $(SWAMID20XML) $(TESTINGXML) testMDUI testALlevel testEduGAI @echo $< done @touch -r $< $@ -.time/%.time: swamid-testing/%.xml - @xsltproc --stringparam regDate $(NOW) xslt/add-rpi.xsl $< > $<.c && mv $<.c $< - @xsltproc xslt/clean-entitydescriptor.xsl $< > $<.c && mv $<.c $< - - @xmllint --xinclude --nowarning --noout --path schema --schema schema.xsd $< 2>&1 - - @echo $< done - @touch -r $< $@ - commit: test @git diff --color || true @echo ; echo -n "Run 'git commit -av'? [Y/n/skip] " ; read x ; case $$x in "Y"|"y"|"") git commit -av ;; s|skip) ;; *) exit 1 ;; esac @git status -u - @echo "Checking for not committed files in swamid-*/" ; if git status --porcelain --ignored | awk '{print $$2}' | egrep "^swamid-edugain|^swamid-2.0/|^swamid-testing/" | sed 's/^/ /' | grep . ; then echo "Not committed files in swamid-*/, aborting" ; exit 1 ; fi + @echo "Checking for not committed files in swamid-*/" ; if git status --porcelain --ignored | awk '{print $$2}' | egrep "^swamid-edugain|^swamid-2.0/" | sed 's/^/ /' | grep . ; then echo "Not committed files in swamid-*/, aborting" ; exit 1 ; fi |