2016-12-12 19:40:23 +01:00
|
|
|
diff --git a/tests/simple-client.sh b/tests/simple-client.sh
|
|
|
|
index 8feb1f4..ca925b1 100755
|
|
|
|
--- a/tests/simple-client.sh
|
|
|
|
+++ b/tests/simple-client.sh
|
|
|
|
@@ -2,7 +2,7 @@
|
2016-08-05 18:29:20 +02:00
|
|
|
|
2016-12-12 19:40:23 +01:00
|
|
|
hsTmpDir=$1
|
2016-08-05 18:29:20 +02:00
|
|
|
|
2016-12-12 19:40:23 +01:00
|
|
|
-stack ghc -- \
|
|
|
|
+ghc \
|
|
|
|
--make \
|
|
|
|
-threaded \
|
|
|
|
-odir $hsTmpDir \
|
|
|
|
@@ -11,3 +11,7 @@ stack ghc -- \
|
|
|
|
$hsTmpDir/Simple.hs \
|
|
|
|
tests/TestClient.hs \
|
|
|
|
> /dev/null
|
|
|
|
+
|
|
|
|
+. @makeWrapper@/nix-support/setup-hook
|
|
|
|
+
|
|
|
|
+flagsBefore="" wrapProgram "${hsTmpDir}/simple-client" --prefix DYLD_LIBRARY_PATH : @grpc@/lib
|
2016-08-05 18:29:20 +02:00
|
|
|
diff --git a/tests/simple-server.sh b/tests/simple-server.sh
|
2016-12-12 19:40:23 +01:00
|
|
|
index 37a0a63..eb37776 100755
|
2016-08-05 18:29:20 +02:00
|
|
|
--- a/tests/simple-server.sh
|
|
|
|
+++ b/tests/simple-server.sh
|
2016-12-12 19:40:23 +01:00
|
|
|
@@ -2,7 +2,7 @@
|
2016-08-05 18:29:20 +02:00
|
|
|
|
|
|
|
hsTmpDir=$1
|
|
|
|
|
|
|
|
-stack ghc -- \
|
2016-12-12 19:40:23 +01:00
|
|
|
+ghc \
|
2016-08-05 18:29:20 +02:00
|
|
|
--make \
|
|
|
|
-threaded \
|
|
|
|
-odir $hsTmpDir \
|
2016-12-12 19:40:23 +01:00
|
|
|
@@ -11,3 +11,7 @@ stack ghc -- \
|
|
|
|
$hsTmpDir/Simple.hs \
|
|
|
|
tests/TestServer.hs \
|
|
|
|
> /dev/null
|
|
|
|
+
|
|
|
|
+. @makeWrapper@/nix-support/setup-hook
|
|
|
|
+
|
|
|
|
+flagsBefore="" wrapProgram "${hsTmpDir}/simple-server" --prefix DYLD_LIBRARY_PATH : @grpc@/lib
|