Execute tests for MSYS2 build

Avoid to run executables using Wine if system is not Linux.
Use relative paths for executables as bash otherwise won't find them.
Make build.sh script fail on intermediate errors.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
This commit is contained in:
Frediano Ziglio 2025-03-04 09:15:43 +00:00
parent f095b40ee7
commit 9c573c9754
5 changed files with 11 additions and 5 deletions

View File

@ -15,8 +15,8 @@ fedora-mingw:
script:
- mingw64-configure
- mingw64-make
- mingw64-make check
- mingw64-make check || { cat test-suite.log ; exit 1; }
- make distclean
- mingw32-configure
- mingw32-make
- mingw32-make check
- mingw32-make check || { cat test-suite.log ; exit 1; }

View File

@ -1,6 +1,8 @@
#!/bin/bash
set -ex
mkdir $1
cd $1
../configure
make -j$(nproc) msi
make check || { cat test-suite.log ; exit 1; }

View File

@ -1,3 +1,5 @@
#!/bin/bash
exec wine test-log-win.exe
WINE=wine
[ "x`uname -s`" = xLinux ] || WINE=
exec $WINE ./test-log-win.exe

View File

@ -28,7 +28,7 @@ if [ "x`uname -s`" != xLinux ]; then
fi
# MSVC build put executables under <Configuration> directory
IMAGETEST=imagetest.exe
IMAGETEST=./imagetest.exe
if [ -e ./Release/imagetest.exe ]; then
IMAGETEST=./Release/imagetest.exe
fi

View File

@ -1,3 +1,5 @@
#!/bin/bash
exec wine test-shell-win.exe
WINE=wine
[ "x`uname -s`" = xLinux ] || WINE=
exec $WINE ./test-shell-win.exe