From 1789a5ea5b5f358eee18f869fb06ca25b3fd7a21 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 5 Mar 2018 23:11:27 +0100 Subject: tests: matrix_test: skip cases when without_openssl is set Fixes test-without-openssl.bash. --- tests/matrix/matrix_test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/matrix') diff --git a/tests/matrix/matrix_test.go b/tests/matrix/matrix_test.go index 77af0ab..f492001 100644 --- a/tests/matrix/matrix_test.go +++ b/tests/matrix/matrix_test.go @@ -23,6 +23,7 @@ import ( "syscall" "testing" + "github.com/rfjakob/gocryptfs/internal/stupidgcm" "github.com/rfjakob/gocryptfs/internal/syscallcompat" "github.com/rfjakob/gocryptfs/tests/test_helpers" ) @@ -58,6 +59,9 @@ func TestMain(m *testing.M) { // Make "testing.Verbose()" return the correct value flag.Parse() for _, testcase = range matrix { + if testcase.openssl == "true" && stupidgcm.BuiltWithoutOpenssl { + continue + } if testing.Verbose() { fmt.Printf("matrix: testcase = %#v\n", testcase) } -- cgit v1.2.3