summaryrefslogtreecommitdiff
path: root/Makefile.validate
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.validate')
-rw-r--r--Makefile.validate13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile.validate b/Makefile.validate
index 22d487b9..cc4848bc 100644
--- a/Makefile.validate
+++ b/Makefile.validate
@@ -1,7 +1,16 @@
-VALIDATEXML=$(patsubst swamid-2.0/%.xml,.time/%.validate,$(wildcard swamid-2.0/*.xml))
+EDUGAIN=$(patsubst swamid-edugain/%.xml,.time/%.validate,$(wildcard swamid-edugain/*.xml))
+SWAMDI20=$(patsubst swamid-2.0/%.xml,.time/%.validate,$(wildcard swamid-2.0/*.xml))
+TESTING=$(patsubst swamid-testing/%.xml,.time/%.validate,$(wildcard swamid-testing/*.xml))
all: validate
-validate: $(VALIDATEXML)
+validate: $(EDUGAIN) $(SWAMDI20) $(TESTING)
+
+.time/%.validate: swamid-edugain/%.xml
+ @docker exec swamid-metadata-sp /var/www/scripts/importXML.bash /opt/metadata/$< Prod | grep -v "Import -> Added to db" > $@
+
.time/%.validate: swamid-2.0/%.xml
@docker exec swamid-metadata-sp /var/www/scripts/importXML.bash /opt/metadata/$< Prod | grep -v "Import -> Added to db" > $@
+
+.time/%.validate: swamid-testing/%.xml
+ @docker exec swamid-metadata-sp /var/www/scripts/importXML.bash /opt/metadata/$< Prod | grep -v "Import -> Added to db" > $@