aboutsummaryrefslogtreecommitdiff
path: root/ci/test/wrap-wine.sh
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-11-09 10:17:00 +0100
committerMarcoFalke <falke.marco@gmail.com>2020-11-09 10:16:45 +0100
commit77777c8b5e3d0edbe1178d982a778b7cc9964b70 (patch)
treed6f4ae2532c7766f208610937ed99d2550497af2 /ci/test/wrap-wine.sh
parent3333d6942e8c5d823b97ea51ef88c8a0791742c6 (diff)
downloadbitcoin-77777c8b5e3d0edbe1178d982a778b7cc9964b70.tar.xz
ci: Run windows ci config on cirrus
Diffstat (limited to 'ci/test/wrap-wine.sh')
-rwxr-xr-xci/test/wrap-wine.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/ci/test/wrap-wine.sh b/ci/test/wrap-wine.sh
new file mode 100755
index 0000000000..58a8983e6e
--- /dev/null
+++ b/ci/test/wrap-wine.sh
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) 2020 The Bitcoin Core developers
+# Distributed under the MIT software license, see the accompanying
+# file COPYING or http://www.opensource.org/licenses/mit-license.php.
+
+export LC_ALL=C.UTF-8
+
+for b_name in {"${BASE_OUTDIR}/bin"/*,src/secp256k1/*tests,src/univalue/{no_nul,test_json,unitester,object}}.exe; do
+ # shellcheck disable=SC2044
+ for b in $(find "${BASE_ROOT_DIR}" -executable -type f -name "$(basename $b_name)"); do
+ if (file "$b" | grep "Windows"); then
+ echo "Wrap $b ..."
+ mv "$b" "${b}_orig"
+ echo '#!/usr/bin/env bash' > "$b"
+ echo "wine64 \"${b}_orig\" \"\$@\"" >> "$b"
+ chmod +x "$b"
+ fi
+ done
+done