summaryrefslogtreecommitdiff
path: root/benchmark.bash
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-07-11 22:10:41 +0200
committerJakob Unterwurzacher2016-07-11 22:10:41 +0200
commitcf742f4e8b3caec1136801713f8233d794650637 (patch)
tree993d5af8943547d18b3debf83ec151c124dc9ded /benchmark.bash
parent63def5df5d00252043794153705f393f4377294d (diff)
tests: add encfs support to benchmark.bash and extractloop.bash
Pass "-encfs" to test encfs instead of gocryptfs.
Diffstat (limited to 'benchmark.bash')
-rwxr-xr-xbenchmark.bash10
1 files changed, 8 insertions, 2 deletions
diff --git a/benchmark.bash b/benchmark.bash
index 55f6fa2..f1f0a2c 100755
--- a/benchmark.bash
+++ b/benchmark.bash
@@ -12,8 +12,14 @@ cd /tmp
wget -nv --show-progress -c https://www.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.gz
DIR1=$(mktemp -d)
DIR2=$(mktemp -d)
-gocryptfs -q -init -extpass="echo test" $DIR1
-gocryptfs -q -extpass="echo test" $DIR1 $DIR2
+
+if [ $# -eq 1 ] && [ "$1" == "-encfs" ]; then
+ echo "Testing EncFS"
+ encfs --extpass="echo test" --standard $DIR1 $DIR2 > /dev/null
+else
+ gocryptfs -q -init -extpass="echo test" -scryptn=10 $DIR1
+ gocryptfs -q -extpass="echo test" $DIR1 $DIR2
+fi
cd $DIR2
# Benchmarks