extra tests: Absolute path for 'run' command.
[libguestfs.git] / sparsify / test-virt-sparsify.sh
index 4a054db..4a7a2f6 100755 (executable)
@@ -14,7 +14,7 @@
 #
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 export LANG=C
 set -e
@@ -37,7 +37,7 @@ rm /boot/big
 umount-all
 EOF
 
-./virt-sparsify --format raw test1.img --convert qcow2 test2.img
+$VG ./virt-sparsify --debug-gc --format raw test1.img --convert qcow2 test2.img
 
 size_before=$(du -s test1.img | awk '{print $1}')
 size_after=$(du -s test2.img | awk '{print $1}')
@@ -49,7 +49,7 @@ if [ $size_before -lt 310000 ]; then
     exit 1
 fi
 
-if [ $size_after -gt 5000 ]; then
+if [ $size_after -gt 15000 ]; then
     echo "test virt-sparsify: size_after ($size_after) too large"
     echo "sparsification failed"
     exit 1