]> granicus.if.org Git - p11-kit/commitdiff
build: Enable make check with wine
authorDaiki Ueno <dueno@redhat.com>
Thu, 29 Mar 2018 09:56:18 +0000 (11:56 +0200)
committerDaiki Ueno <ueno@gnu.org>
Thu, 29 Mar 2018 12:34:35 +0000 (14:34 +0200)
build/wine-wrapper.sh [new file with mode: 0755]
p11-kit/test-messages.sh

diff --git a/build/wine-wrapper.sh b/build/wine-wrapper.sh
new file mode 100755 (executable)
index 0000000..a339956
--- /dev/null
@@ -0,0 +1,13 @@
+#/bin/sh
+
+: ${WINE=wine}
+export WINE
+
+case "$1" in
+       *.sh)
+               exec $1
+       ;;
+       *)
+               ${WINE} $1 | tr -d '\r'
+       ;;
+esac
index 16c8544ddafc9bbc0d099d4644b95bd0274d3572..59dded4f41d28a782f3aefd861f0535269fc6129 100755 (executable)
@@ -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