mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-13 00:02:54 +00:00
Add run.sh wrapper to run test suite with Wine for MinGW
This commit is contained in:
parent
9560d17165
commit
49693bb768
4 changed files with 16 additions and 2 deletions
1
expat/.gitignore
vendored
1
expat/.gitignore
vendored
|
@ -27,3 +27,4 @@ expat.pc
|
|||
*.expand
|
||||
/callgraph.svg
|
||||
/libexpat.so.*
|
||||
/run.sh
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
12
expat/run.sh.in
Normal 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
|
Loading…
Add table
Reference in a new issue