From 3fb4d8852686be9872b072f6f6b829991358f277 Mon Sep 17 00:00:00 2001 From: intractable Date: Thu, 28 Dec 2017 10:04:44 -0600 Subject: [PATCH] Tweak shebangs to run tests from `nix-shell` under NixOS (#41) --- tests/protoc.sh | 3 ++- tests/simple-client.sh | 4 ++-- tests/simple-server.sh | 4 ++-- tests/test-client.sh | 3 ++- tests/test-server.sh | 3 ++- 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/tests/protoc.sh b/tests/protoc.sh index 054c8b6..a538614 100755 --- a/tests/protoc.sh +++ b/tests/protoc.sh @@ -1,4 +1,5 @@ -#!/bin/bash -eu +#!/usr/bin/env bash +set -eu pyTmpDir=$1 diff --git a/tests/simple-client.sh b/tests/simple-client.sh index 066a0ca..80addfa 100755 --- a/tests/simple-client.sh +++ b/tests/simple-client.sh @@ -1,5 +1,5 @@ -#!/bin/bash -eu - +#!/usr/bin/env bash +set -eu hsTmpDir=$1 ghc \ diff --git a/tests/simple-server.sh b/tests/simple-server.sh index b66db5c..3de1bf0 100755 --- a/tests/simple-server.sh +++ b/tests/simple-server.sh @@ -1,5 +1,5 @@ -#!/bin/bash -eu - +#!/usr/bin/env bash +set -eu hsTmpDir=$1 ghc \ diff --git a/tests/test-client.sh b/tests/test-client.sh index 724a7fa..862a0dd 100755 --- a/tests/test-client.sh +++ b/tests/test-client.sh @@ -1,3 +1,4 @@ -#!/bin/bash -eu +#!/usr/bin/env bash +set -eu python tests/test-client.py diff --git a/tests/test-server.sh b/tests/test-server.sh index 1144a00..ece3fa1 100755 --- a/tests/test-server.sh +++ b/tests/test-server.sh @@ -1,3 +1,4 @@ -#!/bin/bash -eu +#!/usr/bin/env bash +set -eu python tests/test-server.py