mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
tests: Add a regression test for RHBZ#957772.
This commit is contained in:
@@ -31,6 +31,7 @@ TESTS = \
|
||||
rhbz811649.sh \
|
||||
rhbz895904.sh \
|
||||
rhbz914931 \
|
||||
rhbz957772.sh \
|
||||
test-noexec-stack.pl
|
||||
|
||||
tests_not_run = \
|
||||
|
||||
33
tests/regressions/rhbz957772.sh
Executable file
33
tests/regressions/rhbz957772.sh
Executable file
@@ -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 <<EOF
|
||||
mkdir "/test 1"
|
||||
touch "/test 2"
|
||||
tar-out "/test 1" /dev/null
|
||||
base64-out "/test 2" /dev/null
|
||||
EOF
|
||||
|
||||
rm test1.img
|
||||
Reference in New Issue
Block a user