summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2018-03-29 11:56:18 +0200
committerDaiki Ueno <ueno@gnu.org>2018-03-29 14:34:35 +0200
commita711a578ba7a1775bdc20ea00fbbdb4f10f91d58 (patch)
tree74f3ec8141a03686b7659c2e9591bce0de436df9
parentbfdd4372ff381ce234d357bb43636b86e6cc1e8f (diff)
build: Enable make check with wine
-rwxr-xr-xbuild/wine-wrapper.sh13
-rwxr-xr-xp11-kit/test-messages.sh2
2 files changed, 14 insertions, 1 deletions
diff --git a/build/wine-wrapper.sh b/build/wine-wrapper.sh
new file mode 100755
index 0000000..a339956
--- /dev/null
+++ b/build/wine-wrapper.sh
@@ -0,0 +1,13 @@
+#/bin/sh
+
+: ${WINE=wine}
+export WINE
+
+case "$1" in
+ *.sh)
+ exec $1
+ ;;
+ *)
+ ${WINE} $1 | tr -d '\r'
+ ;;
+esac
diff --git a/p11-kit/test-messages.sh b/p11-kit/test-messages.sh
index 16c8544..59dded4 100755
--- a/p11-kit/test-messages.sh
+++ b/p11-kit/test-messages.sh
@@ -96,7 +96,7 @@ CKR_MUTEX_NOT_LOCKED: The data cannot be locked
CKR_FUNCTION_REJECTED: The request was rejected by the user
EOF
-"$abs_top_builddir"/print-messages > messages.out
+${WINE} "$abs_top_builddir"/print-messages | tr -d '\r' > messages.out
echo 1..1