aboutsummaryrefslogtreecommitdiff
path: root/tests/defaults
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-06-26 19:12:52 +0200
committerJakob Unterwurzacher2021-06-26 19:13:24 +0200
commitad3eeaedc5a9042682f236f43dd939b2e620d07c (patch)
tree2b0f99d8ed27e303679e6562fb67c94bb53dd34f /tests/defaults
parent446c3d7e931747cd833ae6211a3742cb9d02578b (diff)
tests, maxlen.bash: speed up TestMaxlen using QUICK=1
From >6 to <1 second.
Diffstat (limited to 'tests/defaults')
-rw-r--r--tests/defaults/main_test.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/defaults/main_test.go b/tests/defaults/main_test.go
index 4e5ffea..b356f41 100644
--- a/tests/defaults/main_test.go
+++ b/tests/defaults/main_test.go
@@ -380,6 +380,7 @@ func TestMaxlen(t *testing.T) {
t.Fatal(err)
}
cmd := exec.Command("../../contrib/maxlen.bash", workDir)
+ cmd.Env = []string{"QUICK=1"}
out, err := cmd.CombinedOutput()
if err != nil {
t.Log(string(out))
@@ -387,11 +388,7 @@ func TestMaxlen(t *testing.T) {
}
want := `
Maximum filename length: 255
- Maximum dirname length: 255
- Maximum path length with 1 chars per subdir: 4095
- Maximum path length with 10 chars per subdir: 4095
Maximum path length with 100 chars per subdir: 4095
- Maximum path length with 255 chars per subdir: 4095
`
if !strings.HasSuffix(string(out), want) {
t.Errorf("wrong output: %s", string(out))