From 28584d0d2c829fa1824bebc13e446968ebdee6b6 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Fri, 4 Jan 2019 19:30:05 +0100 Subject: xray: recreate test filesytems with -scrypt 10 Speeds up the dumpmasterkey test *a lot*: Before: ok github.com/rfjakob/gocryptfs/gocryptfs-xray/xray_tests 0.398s After: ok github.com/rfjakob/gocryptfs/gocryptfs-xray/xray_tests 0.023s --- gocryptfs-xray/xray_tests/xray_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gocryptfs-xray/xray_tests/xray_test.go') diff --git a/gocryptfs-xray/xray_tests/xray_test.go b/gocryptfs-xray/xray_tests/xray_test.go index 57fec71..dfd21e6 100644 --- a/gocryptfs-xray/xray_tests/xray_test.go +++ b/gocryptfs-xray/xray_tests/xray_test.go @@ -13,7 +13,7 @@ func TestAesgcmXray(t *testing.T) { if err != nil { t.Fatal(err) } - cmd := exec.Command("../gocryptfs-xray", "aesgcm_fs/fRtDWUFQK9vDAtAJrTbbWg") + cmd := exec.Command("../gocryptfs-xray", "aesgcm_fs/VnvoeSetPaOFjZDaZAh0lA") out, err := cmd.CombinedOutput() if err != nil { t.Fatal(err) @@ -30,7 +30,7 @@ func TestAessivXray(t *testing.T) { if err != nil { t.Fatal(err) } - cmd := exec.Command("../gocryptfs-xray", "-aessiv", "aessiv_fs/Ldq-c4ADpM5iGSSrPjUAqQ") + cmd := exec.Command("../gocryptfs-xray", "-aessiv", "aessiv_fs/klepPXQJIaEDaIx-yurAqQ") out, err := cmd.CombinedOutput() if err != nil { t.Fatal(err) @@ -43,7 +43,7 @@ func TestAessivXray(t *testing.T) { } func TestDumpmasterkey(t *testing.T) { - expected := "f342380e238f708ff4eb94d1fcf79cca7e1e9d9ab91222865e4eaae8a292ee43\n" + expected := "b4d8b25c324dd6eaa328c9906e8a2a3c6038552a042ced4326cfff210c62957a\n" cmd := exec.Command("../gocryptfs-xray", "-dumpmasterkey", "aesgcm_fs/gocryptfs.conf") // Password = "test" cmd.Stdin = bytes.NewBuffer([]byte("test")) -- cgit v1.2.3