From 49693bb768c431f4861c24fdf6cef7fab3c6351e Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sun, 4 Jun 2017 17:43:47 +0200 Subject: [PATCH] Add run.sh wrapper to run test suite with Wine for MinGW --- expat/.gitignore | 1 + expat/Makefile.in | 4 ++-- expat/configure.ac | 1 + expat/run.sh.in | 12 ++++++++++++ 4 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 expat/run.sh.in diff --git a/expat/.gitignore b/expat/.gitignore index 27655728..e6794547 100755 --- a/expat/.gitignore +++ b/expat/.gitignore @@ -27,3 +27,4 @@ expat.pc *.expand /callgraph.svg /libexpat.so.* +/run.sh diff --git a/expat/Makefile.in b/expat/Makefile.in index f68303b1..2d252b92 100644 --- a/expat/Makefile.in +++ b/expat/Makefile.in @@ -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 diff --git a/expat/configure.ac b/expat/configure.ac index 75b6500f..962d7aa7 100644 --- a/expat/configure.ac +++ b/expat/configure.ac @@ -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`" diff --git a/expat/run.sh.in b/expat/run.sh.in new file mode 100644 index 00000000..ff3fb364 --- /dev/null +++ b/expat/run.sh.in @@ -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 -- 2.40.0