git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build: Set TMPDIR for local testing.
[libguestfs.git]
/
fuse
/
test-fuse.sh
diff --git
a/fuse/test-fuse.sh
b/fuse/test-fuse.sh
index
6d2f0fe
..
344ab58
100755
(executable)
--- a/
fuse/test-fuse.sh
+++ b/
fuse/test-fuse.sh
@@
-1,6
+1,6
@@
#!/bin/bash -
# libguestfs
#!/bin/bash -
# libguestfs
-# Copyright (C) 2009 Red Hat Inc.
+# Copyright (C) 2009
-2011
Red Hat Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@
-31,6
+31,10
@@
nr_stages=$(grep "^stage " $0 | wc -l)
# and move to that directory for the initial phase of the script.
top_builddir=$(cd "$top_builddir" > /dev/null; pwd)
# and move to that directory for the initial phase of the script.
top_builddir=$(cd "$top_builddir" > /dev/null; pwd)
+# Set TMPDIR so the appliance doesn't conflict with globally
+# installed libguestfs.
+export TMPDIR=$top_builddir
+
# Set libguestfs up for running locally.
export LIBGUESTFS_PATH="$top_builddir/appliance"
# Set libguestfs up for running locally.
export LIBGUESTFS_PATH="$top_builddir/appliance"
@@
-92,10
+96,15
@@
$guestfish <<EOF
run
part-disk /dev/sda mbr
mkfs ext2 /dev/sda1
run
part-disk /dev/sda mbr
mkfs ext2 /dev/sda1
- mount /dev/sda1 /
+ mount
_options acl,user_xattr
/dev/sda1 /
write /hello.txt hello
write /world.txt "hello world"
touch /empty
write /hello.txt hello
write /world.txt "hello world"
touch /empty
+ touch /user_xattr
+ setxattr user.test hello123 8 /user_xattr
+ touch /acl
+ # XXX hack until libguestfs gets ACL support
+ debug sh "setfacl -m u:500:r /sysroot/acl" | cat > /dev/null
EOF
stage Mounting the filesystem
EOF
stage Mounting the filesystem