mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/win32-vd_agent
synced 2026-01-09 14:11:34 +00:00
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:
parent
f095b40ee7
commit
9c573c9754
@ -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; }
|
||||
|
||||
@ -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; }
|
||||
|
||||
4
test-log
4
test-log
@ -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
|
||||
|
||||
2
test-png
2
test-png
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user