git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version 1.5.2.
[libguestfs.git]
/
fuse
/
test-fuse.sh
diff --git
a/fuse/test-fuse.sh
b/fuse/test-fuse.sh
index
fffd851
..
d464f11
100755
(executable)
--- a/
fuse/test-fuse.sh
+++ b/
fuse/test-fuse.sh
@@
-69,8
+69,8
@@
function cleanup ()
# you from unmounting it! Hence the need for this loop.
count=10
while ! fusermount -u "$mp" && [ $count -gt 0 ]; do
# you from unmounting it! Hence the need for this loop.
count=10
while ! fusermount -u "$mp" && [ $count -gt 0 ]; do
- sleep 1
- ((count--))
+
sleep 1
+
((count--))
done
rm -f "$image"
done
rm -f "$image"
@@
-86,15
+86,15
@@
function stage ()
((s++))
}
((s++))
}
-stage Create filesystem with some inital content
+stage Create filesystem with some init
i
al content
$guestfish <<EOF
sparse "$image" 10M
run
part-disk /dev/sda mbr
mkfs ext2 /dev/sda1
mount /dev/sda1 /
$guestfish <<EOF
sparse "$image" 10M
run
part-disk /dev/sda mbr
mkfs ext2 /dev/sda1
mount /dev/sda1 /
- write
-file /hello.txt hello 0
- write
-file /world.txt "hello world" 0
+ write
/hello.txt hello
+ write
/world.txt "hello world"
touch /empty
EOF
touch /empty
EOF
@@
-207,6
+207,17
@@
for ts in 12345 1234567 987654321; do
[ "$(stat -c %Y timestamp)" -eq $ts ]
done
[ "$(stat -c %Y timestamp)" -eq $ts ]
done
+stage Checking writes
+cp hello.txt copy.txt
+echo >> copy.txt
+echo world >> copy.txt
+echo bigger >> copy.txt
+echo biggest >> copy.txt
+[ "$(cat copy.txt)" = "hello
+world
+bigger
+biggest" ]
+
# These ones are not yet tested by the current script:
#stage XXX statfs/statvfs
#stage XXX xattr operations
# These ones are not yet tested by the current script:
#stage XXX statfs/statvfs
#stage XXX xattr operations