From: Niels Möller Date: Tue, 17 Jan 2012 11:09:15 +0000 (+0100) Subject: * testsuite/setup-env: New file. Wine workaround. Can't get X-Git-Tag: converted-master-branch-to-git~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb5ee376e27bed206346aa8361a67ee4d36e3ff3;p=thirdparty%2Fnettle.git * testsuite/setup-env: New file. Wine workaround. Can't get ../.lib into wine's dll search path, so create additional symlinks. * testsuite/teardown-env: ...and delete them here. * examples/setup-env: Similar links setup here. * examples/teardown-env: ... and deleted. Rev: nettle/examples/setup-env:1.3 Rev: nettle/examples/teardown-env:1.3 --- diff --git a/examples/setup-env b/examples/setup-env index 3ebef2c8..b7db16db 100755 --- a/examples/setup-env +++ b/examples/setup-env @@ -2,6 +2,15 @@ set -e +# Workaround, it seems difficult to convince wine to put ../lib into PATH. +case "$EMULATOR" in + wine*) + for f in ../.lib/*.dll ; do + ln -s "$f" . + done + ;; +esac + if [ -x rsa-keygen$EXEEXT ] ; then $EMULATOR ./rsa-keygen -r rsa-decrypt$EXEEXT -o testkey || exit 1 fi diff --git a/examples/teardown-env b/examples/teardown-env index 496c8cc5..5490ba54 100755 --- a/examples/teardown-env +++ b/examples/teardown-env @@ -4,4 +4,8 @@ rm -rf testkey testkey.pub testsignature testsignature2 \ testdata testtmp \ testciphertext testcleartext - +case "$EMULATOR" in + wine*) + rm `find . -type l -name '*.dll'` + ;; +esac