git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add progress notification messages to upload and upload-offset APIs.
[libguestfs.git]
/
fuse
/
test-fuse.sh
diff --git
a/fuse/test-fuse.sh
b/fuse/test-fuse.sh
index
7dc8e4b
..
15e9631
100755
(executable)
--- a/
fuse/test-fuse.sh
+++ b/
fuse/test-fuse.sh
@@
-93,13
+93,15
@@
$guestfish <<EOF
part-disk /dev/sda mbr
mkfs ext2 /dev/sda1
mount /dev/sda1 /
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
stage Mounting the filesystem
$guestmount -a "$image" -m /dev/sda1 "$mp"
touch /empty
EOF
stage Mounting the filesystem
$guestmount -a "$image" -m /dev/sda1 "$mp"
+# To debug guestmount, add this to the end of the preceding command:
+# -v -x & sleep 60
stage Changing into mounted directory
cd "$mp"
stage Changing into mounted directory
cd "$mp"
@@
-207,6
+209,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