Add run.sh wrapper to run test suite with Wine for MinGW

This commit is contained in:
Sebastian Pipping 2017-06-04 17:43:47 +02:00
parent 9560d17165
commit 49693bb768
4 changed files with 16 additions and 2 deletions

1
expat/.gitignore vendored
View file

@ -27,3 +27,4 @@ expat.pc
*.expand
/callgraph.svg
/libexpat.so.*
/run.sh

View file

@ -74,8 +74,8 @@ extraclean: distclean
rm -f conftools/ltmain.sh conftools/install-sh conftools/config.guess conftools/config.sub
check: tests/runtests@EXEEXT@ tests/runtestspp@EXEEXT@
tests/runtests@EXEEXT@
tests/runtestspp@EXEEXT@
./run.sh tests/runtests@EXEEXT@
./run.sh tests/runtestspp@EXEEXT@
$(MANFILE):
$(MAKE) -C doc xmlwf.1

View file

@ -166,6 +166,7 @@ AS_IF([test "x${enable_xml_context}" != "xno"], [
])
AC_CONFIG_FILES([Makefile expat.pc])
AC_CONFIG_FILES([run.sh], [chmod +x run.sh])
AC_OUTPUT
abs_srcdir="`cd $srcdir && pwd`"

12
expat/run.sh.in Normal file
View file

@ -0,0 +1,12 @@
#! /usr/bin/env bash
# Copyright (C) 2017 Expat development team
# Licensed under the MIT license
case "@host@" in
*-mingw*)
exec wine "$@"
;;
*)
exec "$@"
;;
esac