X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=regressions%2Ftest-copy.sh;fp=regressions%2Ftest-copy.sh;h=31785ccd4cd03f09c864d942e0ae1bcbcb650595;hp=0000000000000000000000000000000000000000;hb=b033b55558503a1920c5b7cc1a7e1365749585e0;hpb=3161cb58a5c9d285c2b9f9c63887138dfc36f28c diff --git a/regressions/test-copy.sh b/regressions/test-copy.sh new file mode 100755 index 0000000..31785cc --- /dev/null +++ b/regressions/test-copy.sh @@ -0,0 +1,69 @@ +#!/bin/bash - +# libguestfs +# Copyright (C) 2010 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 +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# 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. + +# Test guestfish copy-in and copy-out commands. + +set -e + +rm -f test1.img +rm -rf copy + +output=$( +../fish/guestfish -N fs -m /dev/sda1 <