diff options
author | Bernd Schubert <bernd.schubert@fastmail.fm> | 2010-05-31 21:14:49 +0200 |
---|---|---|
committer | Bernd Schubert <bernd.schubert@fastmail.fm> | 2010-05-31 21:14:49 +0200 |
commit | 5857e2ae19211ae94a3c026413fe94c292a1f0ed (patch) | |
tree | e620821adf69058f2ac4fce6545cb56cd7c6c240 /test.sh | |
parent | 38ac8c2b92f05337ea5c34a332439ebad76abc03 (diff) | |
download | unionfs-fuse-5857e2ae19211ae94a3c026413fe94c292a1f0ed.tar.gz |
Rename "base" into "union" in test.sh as "base" is a bit confusing
Diffstat (limited to 'test.sh')
-rwxr-xr-x | test.sh | 74 |
1 files changed, 37 insertions, 37 deletions
@@ -3,59 +3,59 @@ set -v set -e -rm -rf original base working-copy -mkdir original base working-copy original/play-dir original/del-dir +rm -rf original union working-copy +mkdir original union working-copy original/play-dir original/del-dir echo v1 > original/file echo v1 > original/play-with-me echo v1 > original/delete-me -src/unionfs -d -o cow working-copy=rw:original=ro base >unionfs.log 2>&1 & -trap 'if [ "$(ls base)" ]; then fusermount -u base; fi; rm -rf base original working-copy' EXIT +src/unionfs -d -o cow working-copy=rw:original=ro union >unionfs.log 2>&1 & +trap 'if [ "$(ls union)" ]; then fusermount -u union; fi; rm -rf union original working-copy' EXIT sleep 1 -[ "$(cat base/file)" = "v1" ] +[ "$(cat union/file)" = "v1" ] -echo "v2" > base/file -[ "$(cat base/file)" = "v2" ] +echo "v2" > union/file +[ "$(cat union/file)" = "v2" ] -echo "v2" > base/play-with-me -[ "$(cat base/play-with-me)" = "v2" ] +echo "v2" > union/play-with-me +[ "$(cat union/play-with-me)" = "v2" ] -[ -f base/play-with-me ] -rm base/play-with-me -[ ! -f base/play-with-me ] +[ -f union/play-with-me ] +rm union/play-with-me +[ ! -f union/play-with-me ] -[ -f base/delete-me ] -rm base/delete-me -[ ! -f base/delete-me ] +[ -f union/delete-me ] +rm union/delete-me +[ ! -f union/delete-me ] -[ "$(ls base/play-dir)" = "" ] -echo "fool" > base/play-dir/foo -[ "$(ls base/play-dir)" = "foo" ] -rm base/play-dir/foo -[ "$(ls base/play-dir)" = "" ] +[ "$(ls union/play-dir)" = "" ] +echo "fool" > union/play-dir/foo +[ "$(ls union/play-dir)" = "foo" ] +rm union/play-dir/foo +[ "$(ls union/play-dir)" = "" ] -[ -d base/play-dir ] -rmdir base/play-dir -[ ! -d base/play-dir ] +[ -d union/play-dir ] +rmdir union/play-dir +[ ! -d union/play-dir ] -[ -d base/del-dir ] -rmdir base/del-dir -[ ! -d base/del-dir ] +[ -d union/del-dir ] +rmdir union/del-dir +[ ! -d union/del-dir ] -! echo v1 > base/del-dir/foo +! echo v1 > union/del-dir/foo -[ ! -d base/del-dir ] -mkdir base/del-dir -[ ! -f base/del-dir/foo ] -echo v1 > base/del-dir/foo -[ -f base/del-dir/foo ] -rm base/del-dir/foo -[ -d base/del-dir ] -rmdir base/del-dir -[ ! -d base/del-dir ] +[ ! -d union/del-dir ] +mkdir union/del-dir +[ ! -f union/del-dir/foo ] +echo v1 > union/del-dir/foo +[ -f union/del-dir/foo ] +rm union/del-dir/foo +[ -d union/del-dir ] +rmdir union/del-dir +[ ! -d union/del-dir ] -fusermount -u base +fusermount -u union [ "$(cat original/file)" = "v1" ] [ "$(cat original/play-with-me)" = "v1" ] |