From a711a578ba7a1775bdc20ea00fbbdb4f10f91d58 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Thu, 29 Mar 2018 11:56:18 +0200 Subject: build: Enable make check with wine --- build/wine-wrapper.sh | 13 +++++++++++++ p11-kit/test-messages.sh | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100755 build/wine-wrapper.sh 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 -- cgit v1.1