]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
* testsuite/setup-env: New file. Wine workaround. Can't get
authorNiels Möller <nisse@lysator.liu.se>
Tue, 17 Jan 2012 11:09:15 +0000 (12:09 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Tue, 17 Jan 2012 11:09:15 +0000 (12:09 +0100)
../.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

examples/setup-env
examples/teardown-env

index 3ebef2c8b7d5b673c96d88d64103df180b0edeae..b7db16db1d30809fba4cf11db0f5a4b61cd8b608 100755 (executable)
@@ -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
index 496c8cc5255245d5f63b3ac9a1acc799f6966e8a..5490ba542c9ea26fd3323314d5fb16381a02e872 100755 (executable)
@@ -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