#!/bin/sh -e
# Validate test XML data against the DTDs.

XMLLINT_ARGS="--noout --dtdvalid"

applications="Gallery.application Mailer.application"

for application in $applications
do
	${XMLLINT} $XMLLINT_ARGS ${DTDDIR}accounts-application.dtd ${TESTDATADIR}$application || exit 1
done

${XMLLINT} $XMLLINT_ARGS ${DTDDIR}accounts-provider.dtd ${TESTDATADIR}MyProvider.provider

services="MyService.service MyService2.service OtherService.service"

for service in $services
do
	${XMLLINT} $XMLLINT_ARGS ${DTDDIR}accounts-service.dtd ${TESTDATADIR}$service || exit 1
done

${XMLLINT} $XMLLINT_ARGS ${DTDDIR}accounts-service-type.dtd ${TESTDATADIR}e-mail.service-type

#!/bin/sh -e
# Validate test XML data against the DTDs.

XMLLINT_ARGS="--noout --dtdvalid"

applications="Gallery.application Mailer.application"

for application in $applications
do
	${XMLLINT} $XMLLINT_ARGS ${DTDDIR}accounts-application.dtd $application || exit 1
done

${XMLLINT} $XMLLINT_ARGS ${DTDDIR}accounts-provider.dtd MyProvider.provider

services="MyService.service MyService2.service OtherService.service"

for service in $services
do
	${XMLLINT} $XMLLINT_ARGS ${DTDDIR}accounts-service.dtd $service || exit 1
done

${XMLLINT} $XMLLINT_ARGS ${DTDDIR}accounts-service-type.dtd e-mail.service-type

--- 
+++ 
@@ -7,16 +7,16 @@
 
 for application in $applications
 do
-	${XMLLINT} $XMLLINT_ARGS ${DTDDIR}accounts-application.dtd ${TESTDATADIR}$application || exit 1
+	${XMLLINT} $XMLLINT_ARGS ${DTDDIR}accounts-application.dtd $application || exit 1
 done
 
-${XMLLINT} $XMLLINT_ARGS ${DTDDIR}accounts-provider.dtd ${TESTDATADIR}MyProvider.provider
+${XMLLINT} $XMLLINT_ARGS ${DTDDIR}accounts-provider.dtd MyProvider.provider
 
 services="MyService.service MyService2.service OtherService.service"
 
 for service in $services
 do
-	${XMLLINT} $XMLLINT_ARGS ${DTDDIR}accounts-service.dtd ${TESTDATADIR}$service || exit 1
+	${XMLLINT} $XMLLINT_ARGS ${DTDDIR}accounts-service.dtd $service || exit 1
 done
 
-${XMLLINT} $XMLLINT_ARGS ${DTDDIR}accounts-service-type.dtd ${TESTDATADIR}e-mail.service-type
+${XMLLINT} $XMLLINT_ARGS ${DTDDIR}accounts-service-type.dtd e-mail.service-type
Fix srcdir != builddir for XML DTD test

