From cc93840d31e440e64e27ee13df3afd134ef2e68f Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 29 Apr 2013 15:22:34 +0100 Subject: [PATCH] tests: Add a regression test for RHBZ#957772. --- tests/regressions/Makefile.am | 1 + tests/regressions/rhbz957772.sh | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100755 tests/regressions/rhbz957772.sh diff --git a/tests/regressions/Makefile.am b/tests/regressions/Makefile.am index e0077d71d..38e415890 100644 --- a/tests/regressions/Makefile.am +++ b/tests/regressions/Makefile.am @@ -31,6 +31,7 @@ TESTS = \ rhbz811649.sh \ rhbz895904.sh \ rhbz914931 \ + rhbz957772.sh \ test-noexec-stack.pl tests_not_run = \ diff --git a/tests/regressions/rhbz957772.sh b/tests/regressions/rhbz957772.sh new file mode 100755 index 000000000..111269a70 --- /dev/null +++ b/tests/regressions/rhbz957772.sh @@ -0,0 +1,33 @@ +#!/bin/bash - +# libguestfs +# Copyright (C) 2013 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +# Regression test for: +# https://bugzilla.redhat.com/show_bug.cgi?id=957772 +# Ensure that tar-out and base64-out commands properly quote arguments. + +set -e +export LANG=C + +../../fish/guestfish -N fs -m /dev/sda1 <