aboutsummaryrefslogtreecommitdiff
path: root/integration_tests/cli_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-11-29 18:52:58 +0100
committerJakob Unterwurzacher2015-11-29 18:53:40 +0100
commitbb116282b7db6a6400586d756c6dfdcc8f85fdab (patch)
treef06fe917002c004569c84097595a4c5b357a4407 /integration_tests/cli_test.go
parent71bfa1f0fb540790f87faac600e4041052b4d217 (diff)
Add "-scryptn" option that sets the cost parameter for scryptv0.5-rc1
Use that option to speed up the automated tests by 7 seconds. Before: ok github.com/rfjakob/gocryptfs/integration_tests 26.667s After: ok github.com/rfjakob/gocryptfs/integration_tests 19.534s
Diffstat (limited to 'integration_tests/cli_test.go')
-rw-r--r--integration_tests/cli_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/integration_tests/cli_test.go b/integration_tests/cli_test.go
index d79b877..7047edb 100644
--- a/integration_tests/cli_test.go
+++ b/integration_tests/cli_test.go
@@ -17,7 +17,7 @@ func TestInit(t *testing.T) {
if err != nil {
t.Fatal(err)
}
- cmd := exec.Command(gocryptfsBinary, "-init", "-extpass", "echo test", dir)
+ cmd := exec.Command(gocryptfsBinary, "-init", "-extpass", "echo test", "-scryptn=10", dir)
if testing.Verbose() {
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
@@ -52,7 +52,7 @@ func TestInitConfig(t *testing.T) {
t.Fatal(err)
}
cmd := exec.Command(gocryptfsBinary, "-init", "-extpass", "echo test",
- "-config", config, dir)
+ "-config", config, "-scryptn=10", dir)
if testing.Verbose() {
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr