]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Set WINEPATH for tests, and remove symlink workaround.
authorNiels Möller <nisse@lysator.liu.se>
Thu, 23 Apr 2020 17:25:08 +0000 (19:25 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Thu, 23 Apr 2020 17:25:08 +0000 (19:25 +0200)
ChangeLog
examples/setup-env
examples/teardown-env
run-tests
testsuite/setup-env [deleted file]
testsuite/teardown-env

index e900fb0296dcd627ebacbc75d32883b45d94821b..c14cec8335ac2d7c3069a0ff73f868fcd7bdc5da 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2020-04-23  Niels Möller  <nisse@lysator.liu.se>
 
+       * run-tests: Set WINEPATH, since it appears wine doesn't search
+       for dlls in the unix PATH.
+       * examples/setup-env: Delete creation of extra dll symlinks.
+       * examples/teardown-env: Delete corresponding cleanup.
+       * testsuite/setup-env: Deleted file (same symlink creation).
+       * testsuite/teardown-env: Delete corresponding cleanup.
+
        * testsuite/ecc-add-test.c (test_main): Delete ASSERTs with
        functions pointer comparisons. They provide little value, and fail
        when linking with hogweed.dll on windows.
index e59b283c243ff765e111baffa0851aed4d543895..3ebef2c8b7d5b673c96d88d64103df180b0edeae 100755 (executable)
@@ -2,15 +2,6 @@
 
 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 -sf "$f" .
-       done
-       ;;
-esac
-
 if [ -x rsa-keygen$EXEEXT ] ; then
   $EMULATOR ./rsa-keygen -r rsa-decrypt$EXEEXT -o testkey || exit 1
 fi
index 0b0e040e3b71dfa86a6c0c5d9907f0751de9b1ae..36c113f65e4dad4e2388aad25580d460444196e4 100755 (executable)
@@ -3,9 +3,3 @@
 rm -rf testkey testkey.pub testsignature testsignature2 \
     testdata testtmp \
     testciphertext testcleartext
-
-case "$EMULATOR" in
-    wine*)
-       find . -type l -name '*.dll' -exec rm -f '{}' ';'
-       ;;
-esac
index 5186d0c81a7b0f43f5436d9f8cf711994ecae120..c44903f67699d2ff1d080eec0aa4a9b2ceb9e2ef 100755 (executable)
--- a/run-tests
+++ b/run-tests
@@ -35,9 +35,13 @@ if [ -n "$TEST_SHLIB_DIR" ] ; then
   DYLD_LIBRARY_PATH="$TEST_SHLIB_DIR"
   # For Windows
   PATH="${TEST_SHLIB_DIR}:${PATH}"
+  # For Wine
+  WINEPATH="${TEST_SHLIB_DIR}"
+
   export LD_LIBRARY_PATH
   export DYLD_LIBRARY_PATH
   export PATH
+  export WINEPATH
 fi
 
 # When used in make rules, we sometimes get the filenames VPATH
diff --git a/testsuite/setup-env b/testsuite/setup-env
deleted file mode 100755 (executable)
index bb3e3c5..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#! /bin/sh
-
-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 -sf "$f" .
-       done
-       ;;
-esac
index 671a06ca738ff96e0d273edbe3b741b02f7f25e2..f19bbe9c0067547d5ea002247c593f45c4314fff 100755 (executable)
@@ -1,9 +1,3 @@
 #! /bin/sh
 
 rm -rf testkey.priv testkey.pub testtmp testsignature testsignature2
-
-case "$EMULATOR" in
-    wine*)
-       find . -type l -name '*.dll' -exec rm -f '{}' ';'
-       ;;
-esac