tests: add encfs support to benchmark.bash and extractloop.bash
Pass "-encfs" to test encfs instead of gocryptfs.
This commit is contained in:
parent
63def5df5d
commit
cf742f4e8b
@ -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
|
wget -nv --show-progress -c https://www.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.gz
|
||||||
DIR1=$(mktemp -d)
|
DIR1=$(mktemp -d)
|
||||||
DIR2=$(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
|
cd $DIR2
|
||||||
|
|
||||||
# Benchmarks
|
# Benchmarks
|
||||||
|
@ -14,14 +14,20 @@ set -eu
|
|||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
MD5="$PWD/linux-3.0.md5sums"
|
MD5="$PWD/linux-3.0.md5sums"
|
||||||
|
|
||||||
# Setup
|
# Setup dirs
|
||||||
cd /tmp
|
cd /tmp
|
||||||
wget -nv --show-progress -c https://www.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.gz
|
wget -nv --show-progress -c https://www.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.gz
|
||||||
DIR1=$(mktemp -d)
|
DIR1=$(mktemp -d)
|
||||||
DIR2=$(mktemp -d)
|
DIR2=$(mktemp -d)
|
||||||
gocryptfs -q -init -extpass="echo test" $DIR1
|
|
||||||
gocryptfs -q -extpass="echo test" -nosyslog $DIR1 $DIR2
|
# Mount
|
||||||
#gocryptfs -q -extpass="echo test" -nosyslog -memprofile /tmp/extractloop-mem $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
|
cd $DIR2
|
||||||
|
|
||||||
# Cleanup trap
|
# Cleanup trap
|
||||||
|
Loading…
Reference in New Issue
Block a user