tests: matrix_test: skip cases when without_openssl is set

Fixes test-without-openssl.bash.
This commit is contained in:
Jakob Unterwurzacher 2018-03-05 23:11:27 +01:00
parent 35192abb57
commit 1789a5ea5b

View File

@ -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)
}