diff options
author | Jakob Unterwurzacher | 2019-09-01 12:51:42 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2019-09-01 12:51:42 +0200 |
commit | 7eba4f0788e95e3ac47856662ea4ebd986d358cd (patch) | |
tree | 2e3dd7c7a827731d63c0222f06aebc85cd0d77df /tests/matrix | |
parent | f1b538ef241e537e993ec585c47af35213ad0be1 (diff) |
tests: matrix: test -serialize_reads
Test if https://github.com/rfjakob/gocryptfs/pull/413 works
as intended.
Diffstat (limited to 'tests/matrix')
-rw-r--r-- | tests/matrix/matrix_test.go | 20 |
1 files changed, 12 insertions, 8 deletions
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() |