2016-08-25 06:52:34 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
CMAKE=$ARCH-w64-mingw32.shared-cmake
|
2016-11-28 04:24:18 +08:00
|
|
|
CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DBOOTSTRAP_DAEMON=OFF -DCOMPILE_AS_CXX=ON"
|
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() {
|
|
|
|
# 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
|
|
|
}
|