From 4d900cdac8258daa2e99c6ceb2a4985154e94150 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 11 Nov 2010 16:20:25 +0000 Subject: Generate a dummy 'Fedora' fedora.img in images directory for use by tests. We were generating this dummy 'Fedora' image already in the tools directory. It contains just enough Fedora-like files to fool our inspection code and thus to test the tools. This is general enough that we can use it everywhere. --- tools/Makefile.am | 6 --- tools/make-test-img.sh | 89 ------------------------------------- tools/test-virt-cat.sh | 4 +- tools/test-virt-df.sh | 12 ++--- tools/test-virt-list-filesystems.sh | 3 +- tools/test-virt-ls.sh | 2 +- tools/test-virt-tar.sh | 2 +- 7 files changed, 12 insertions(+), 106 deletions(-) delete mode 100755 tools/make-test-img.sh (limited to 'tools') diff --git a/tools/Makefile.am b/tools/Makefile.am index b92243c0..5b415c0e 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -33,7 +33,6 @@ tools = \ EXTRA_DIST = \ run-locally \ $(tools:%=virt-%) \ - make-test-img.sh \ test-virt-*.sh CLEANFILES = test.img @@ -76,11 +75,6 @@ TESTS_ENVIRONMENT = \ LIBGUESTFS_PATH=$(top_builddir)/appliance \ PERL5LIB=$(top_builddir)/perl/blib/lib:$(top_builddir)/perl/blib/arch -# Build a standard test image to be used by all these tests. -check_DATA = test.img -test.img: make-test-img.sh - $(TESTS_ENVIRONMENT) $(srcdir)/make-test-img.sh - TESTS = test-virt-cat.sh \ test-virt-df.sh \ test-virt-list-filesystems.sh \ diff --git a/tools/make-test-img.sh b/tools/make-test-img.sh deleted file mode 100755 index fddd8a2d..00000000 --- a/tools/make-test-img.sh +++ /dev/null @@ -1,89 +0,0 @@ -#!/bin/bash - -# libguestfs virt-* tools -# 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. - -# Make a standard test image which is used by all the tools/test-*.sh -# test scripts. This test image is supposed to look like a Fedora -# installation, or at least enough of one to fool virt-inspector's -# heuristics. - -export LANG=C -set -e - -rm -f test.img - -cat > fstab <