From 7eba4f0788e95e3ac47856662ea4ebd986d358cd Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 1 Sep 2019 12:51:42 +0200 Subject: tests: matrix: test -serialize_reads Test if https://github.com/rfjakob/gocryptfs/pull/413 works as intended. --- tests/matrix/matrix_test.go | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'tests/matrix') diff --git a/tests/matrix/matrix_test.go b/tests/matrix/matrix_test.go index 8e71e8f..7bfb372 100644 --- a/tests/matrix/matrix_test.go +++ b/tests/matrix/matrix_test.go @@ -38,21 +38,24 @@ type testcaseMatrix struct { openssl string aessiv bool raw64 bool + extraArgs []string } var matrix = []testcaseMatrix{ // Normal - {false, "auto", false, false}, - {false, "true", false, false}, - {false, "false", false, false}, + {false, "auto", false, false, nil}, + {false, "true", false, false, nil}, + {false, "false", false, false, nil}, // Plaintextnames - {true, "true", false, false}, - {true, "false", false, false}, + {true, "true", false, false, nil}, + {true, "false", false, false, nil}, // AES-SIV (does not use openssl, no need to test permutations) - {false, "auto", true, false}, - {true, "auto", true, false}, + {false, "auto", true, false, nil}, + {true, "auto", true, false, nil}, // Raw64 - {false, "auto", false, true}, + {false, "auto", false, true, nil}, + // -serialize_reads + {false, "auto", false, false, []string{"-serialize_reads"}}, } // This is the entry point for the tests @@ -72,6 +75,7 @@ func TestMain(m *testing.M) { opts = append(opts, fmt.Sprintf("-plaintextnames=%v", testcase.plaintextnames)) opts = append(opts, fmt.Sprintf("-aessiv=%v", testcase.aessiv)) opts = append(opts, fmt.Sprintf("-raw64=%v", testcase.raw64)) + opts = append(opts, testcase.extraArgs...) test_helpers.MountOrExit(test_helpers.DefaultCipherDir, test_helpers.DefaultPlainDir, opts...) before := test_helpers.ListFds(0) r := m.Run() -- cgit v1.2.3