diff options
author | Jakob Unterwurzacher | 2016-07-12 08:30:29 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-07-12 08:30:29 +0200 |
commit | 09c16ed2a713a89b583bf9ff0bee356cd7b44141 (patch) | |
tree | f25456fd407d14c976d9250da31aa64eebb9594b | |
parent | cf742f4e8b3caec1136801713f8233d794650637 (diff) |
tests: extractloop: add loopback support
loopback is an example app that comes with the go-fuse lib.
It uses all the same APIs as gocryptfs, minus the encryption.
-rwxr-xr-x | tests/stress_tests/extractloop.bash | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/stress_tests/extractloop.bash b/tests/stress_tests/extractloop.bash index 86f7802..1c0d4ce 100755 --- a/tests/stress_tests/extractloop.bash +++ b/tests/stress_tests/extractloop.bash @@ -17,16 +17,22 @@ MD5="$PWD/linux-3.0.md5sums" # Setup dirs 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) +DIR1=$(mktemp -d /tmp/extractloop.XXX) +DIR2=$DIR1.mnt +mkdir $DIR2 # Mount if [ $# -eq 1 ] && [ "$1" == "-encfs" ]; then echo "Testing EncFS" encfs --extpass="echo test" --standard $DIR1 $DIR2 > /dev/null +elif [ $# -eq 1 ] && [ "$1" == "-loopback" ]; then + echo "Testing go-fuse loopback" + loopback -l $DIR2 $DIR1 & + sleep 1 else gocryptfs -q -init -extpass="echo test" -scryptn=10 $DIR1 gocryptfs -q -extpass="echo test" $DIR1 $DIR2 + #gocryptfs -q -extpass="echo test" -nosyslog -memprofile /tmp/extractloop-mem $DIR1 $DIR2 fi cd $DIR2 |