2016-08-25 06:52:34 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
CMAKE=$ARCH-w64-mingw32.shared-cmake
|
2018-01-22 17:37:31 +08:00
|
|
|
CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DBOOTSTRAP_DAEMON=OFF -DERROR_ON_WARNING=OFF"
|
2016-08-25 06:52:34 +08:00
|
|
|
NPROC=`nproc`
|
|
|
|
CURDIR=/work
|
2017-01-06 21:18:36 +08:00
|
|
|
RUN_TESTS=true
|
2016-08-25 06:52:34 +08:00
|
|
|
|
|
|
|
RUN() {
|
|
|
|
./dockcross "$@"
|
|
|
|
}
|
|
|
|
|
|
|
|
TESTS() {
|
2017-01-19 23:58:03 +08:00
|
|
|
shift # Ignore test run count.
|
|
|
|
|
2016-08-25 06:52:34 +08:00
|
|
|
# Download Microsoft DLLs.
|
|
|
|
curl http://www.dlldump.com/dllfiles/I/iphlpapi.dll -o _build/iphlpapi.dll
|
|
|
|
curl http://www.dlldump.com/dllfiles/W/ws2_32.dll -o _build/ws2_32.dll
|
|
|
|
|
|
|
|
# Copy our dependency DLLs.
|
|
|
|
./dockcross sh -c 'cp $WINEDLLPATH/*.dll _build'
|
|
|
|
|
|
|
|
# Run tests in docker.
|
2017-01-06 05:23:06 +08:00
|
|
|
./dockcross "$@" || {
|
|
|
|
cat _build/Testing/Temporary/LastTest.log
|
2017-01-06 21:18:36 +08:00
|
|
|
# Ignore test failures on Windows builds for now.
|
|
|
|
#false
|
2017-01-06 05:23:06 +08:00
|
|
|
}
|
2016-08-25 06:52:34 +08:00
|
|
|
}
|