summaryrefslogtreecommitdiff
path: root/tests/matrix/matrix_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-09-08 20:34:01 +0200
committerJakob Unterwurzacher2021-09-08 20:34:01 +0200
commit2620cad0dc003c4d06b3c1c082a3337b64bc9410 (patch)
treeea64ac2a09036dd0fcbe5bf347bc82f121e9ff3e /tests/matrix/matrix_test.go
parent94e8004b6ce497dafd13e8c3f6f6596b49169970 (diff)
tests/matrix: test xchacha with and without openssl
Diffstat (limited to 'tests/matrix/matrix_test.go')
-rw-r--r--tests/matrix/matrix_test.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/matrix/matrix_test.go b/tests/matrix/matrix_test.go
index abcb7e0..34c111f 100644
--- a/tests/matrix/matrix_test.go
+++ b/tests/matrix/matrix_test.go
@@ -20,6 +20,7 @@ import (
"sync"
"syscall"
"testing"
+ "time"
"golang.org/x/sys/unix"
@@ -66,7 +67,9 @@ var matrix = []testcaseMatrix{
{false, "auto", false, false, []string{"-serialize_reads"}},
{false, "auto", false, false, []string{"-sharedstorage"}},
{false, "auto", false, false, []string{"-deterministic-names"}},
- {false, "auto", false, true, []string{"-xchacha"}},
+ // Test xchacha with and without openssl
+ {false, "true", false, true, []string{"-xchacha"}},
+ {false, "false", false, true, []string{"-xchacha"}},
}
// This is the entry point for the tests
@@ -97,7 +100,11 @@ func TestMain(m *testing.M) {
opts = append(opts, testcase.extraArgs...)
test_helpers.MountOrExit(test_helpers.DefaultCipherDir, test_helpers.DefaultPlainDir, opts...)
before := test_helpers.ListFds(0, test_helpers.TmpDir)
+ t0 := time.Now()
r := m.Run()
+ if testing.Verbose() {
+ fmt.Printf("matrix: run took %v\n", time.Since(t0))
+ }
// Catch fd leaks in the tests. NOTE: this does NOT catch leaks in
// the gocryptfs FUSE process, but only in the tests that access it!
// All fds that point outside TmpDir are not interesting (the Go test