aboutsummaryrefslogtreecommitdiff
path: root/tests/maxlen.bash
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-06-17 19:19:13 +0200
committerJakob Unterwurzacher2021-06-20 18:09:21 +0200
commit9ac77d42d1c2f56018eb5bcb4e2265d78d572e8c (patch)
tree35b7ea1555e59f307dbb0fbb5c5176e748b2459e /tests/maxlen.bash
parent2e738efe8647539b96de60d763df44d237f5389b (diff)
contrib/maxlen.bash: also test dir and path length
Move the script from tests to contrib as it may now be useful to somebody else. https://github.com/rfjakob/gocryptfs/issues/552
Diffstat (limited to 'tests/maxlen.bash')
-rwxr-xr-xtests/maxlen.bash18
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/maxlen.bash b/tests/maxlen.bash
deleted file mode 100755
index fb133e0..0000000
--- a/tests/maxlen.bash
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/bash -eu
-#
-# Find out the maximum supported filename length and print it.
-#
-# Part of the gocryptfs test suite
-# https://nuetzlich.net/gocryptfs/
-
-NAME="maxlen."
-LEN=0
-
-while [ $LEN -le 10000 ]; do
- touch $NAME 2> /dev/null || break
- rm $NAME
- LEN=${#NAME}
- NAME="${NAME}x"
-done
-
-echo $LEN