Make "make run-xmltest" work for MinGW cross-compilation

This commit is contained in:
Sebastian Pipping 2017-06-14 22:36:51 +02:00
parent 79d10879b2
commit 3fb1ec4334
2 changed files with 3 additions and 3 deletions

View File

@ -188,8 +188,8 @@ tests/xmlconf: tests/xmlts.zip
cd tests && unzip -q xmlts.zip
run-xmltest: xmlwf/xmlwf@EXEEXT@ tests/xmlconf
tests/xmltest.sh 2>&1 | tee tests/xmltest.log
diff -u tests/xmltest.log.expected tests/xmltest.log
tests/xmltest.sh "$(PWD)/run.sh $(PWD)/xmlwf/xmlwf@EXEEXT@" 2>&1 | tee tests/xmltest.log
diff -u -b tests/xmltest.log.expected tests/xmltest.log
.PHONY: qa
qa:

View File

@ -25,7 +25,7 @@ shopt -s nullglob
MYDIR="`dirname \"$0\"`"
cd "$MYDIR"
MYDIR="`pwd`"
XMLWF="`dirname \"$MYDIR\"`/xmlwf/xmlwf"
XMLWF="${1:-`dirname \"$MYDIR\"`/xmlwf/xmlwf}"
# XMLWF=/usr/local/bin/xmlwf
TS="$MYDIR"
# OUTPUT must terminate with the directory separator.