[Pkg-libvirt-commits] [libguestfs] 57/65: v2v: test-v2v-i-ova-formats.sh: test ova as tar.gz and tar.xz

Hilko Bengen bengen at moszumanska.debian.org
Tue Apr 21 12:11:11 UTC 2015


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch experimental
in repository libguestfs.

commit 8f5503096598ac38bb5da8efab517d5cf36cb760
Author: Pino Toscano <ptoscano at redhat.com>
Date:   Wed Apr 15 15:27:11 2015 +0200

    v2v: test-v2v-i-ova-formats.sh: test ova as tar.gz and tar.xz
    
    Extend test-v2v-i-ova-formats.sh to test for tarballs compressed as gzip
    or xz; followup of commit 3c582cfb8d62013a935953e919c79009452254f9.
---
 v2v/test-v2v-i-ova-formats.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/v2v/test-v2v-i-ova-formats.sh b/v2v/test-v2v-i-ova-formats.sh
index a9b2a96..bd3e048 100755
--- a/v2v/test-v2v-i-ova-formats.sh
+++ b/v2v/test-v2v-i-ova-formats.sh
@@ -22,7 +22,7 @@ unset CDPATH
 export LANG=C
 set -e
 
-formats="tar zip"
+formats="tar zip tar-gz tar-xz"
 
 if [ -n "$SKIP_TEST_V2V_I_OVA_FORMATS_SH" ]; then
     echo "$0: test skipped because environment variable is set"
@@ -71,6 +71,12 @@ for format in $formats; do
             zip -r test ../test-v2v-i-ova-formats.ovf disk1.vmdk disk1.mf
             mv test.zip test-$format.ova
             ;;
+        tar-gz)
+            tar -czf test-$format.ova ../test-v2v-i-ova-formats.ovf disk1.vmdk disk1.mf
+            ;;
+        tar-xz)
+            tar -cJf test-$format.ova ../test-v2v-i-ova-formats.ovf disk1.vmdk disk1.mf
+            ;;
         *)
             echo "Unhandled format '$format'"
             exit 1

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list