aboutsummaryrefslogtreecommitdiff
path: root/tests/matrix/matrix_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-03-05 23:11:27 +0100
committerJakob Unterwurzacher2018-03-05 23:11:27 +0100
commit1789a5ea5b5f358eee18f869fb06ca25b3fd7a21 (patch)
tree6535a1668b9f79823f2f7298eac6f3fbd31cf9e5 /tests/matrix/matrix_test.go
parent35192abb57636a8c4d6a6419aa6fd43f04ac2385 (diff)
tests: matrix_test: skip cases when without_openssl is set
Fixes test-without-openssl.bash.
Diffstat (limited to 'tests/matrix/matrix_test.go')
-rw-r--r--tests/matrix/matrix_test.go4
1 files changed, 4 insertions, 0 deletions
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)
}