aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-03-05 23:00:36 +0100
committerJakob Unterwurzacher2018-03-05 23:01:29 +0100
commit86e60f1be20cb2db53e5e787790e5397a2a86495 (patch)
tree4ee7a7100f8b7f32c65490d3f881b9c813c83d87
parent870779ab1ddd38d21b14460822704b6cf8dc4de6 (diff)
test.bash: Don't build with openssl if we were passed "-tags without_openssl"
test-without-openssl.bash now fails, as it should: gocryptfs has been compiled without openssl support but you are still trying to use openssl mount failed: exit status 18 FAIL github.com/rfjakob/gocryptfs/tests/matrix 1.943s
-rwxr-xr-xtest.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.bash b/test.bash
index 03eb218..182cdc3 100755
--- a/test.bash
+++ b/test.bash
@@ -27,8 +27,8 @@ for i in $(mount | grep $TESTDIR | cut -f3 -d" "); do
done
./build-without-openssl.bash
-# Building with openssl is difficult on OSX, so only do it on Linux.
-if [[ $OSTYPE == linux* ]] ; then
+# Don't build with openssl if we were passed "-tags without_openssl"
+if [[ "$@" != *without_openssl* ]] ; then
./build.bash
fi