From dcc0ebc8e0c4a8abd505421a584573272a03f7aa Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 26 Jul 2012 22:00:07 +0100 Subject: tests: Consistent use of $(top_builddir)/run --test when building test guests. --- tests/guests/Makefile.am | 22 +++++----------------- tests/guests/guest-aux/make-debian-img.sh | 2 +- tests/guests/guest-aux/make-ubuntu-img.sh | 2 +- tests/guests/guest-aux/make-windows-img.sh | 4 ++-- 4 files changed, 9 insertions(+), 21 deletions(-) diff --git a/tests/guests/Makefile.am b/tests/guests/Makefile.am index 21311dea..a05dceb8 100644 --- a/tests/guests/Makefile.am +++ b/tests/guests/Makefile.am @@ -46,10 +46,7 @@ CLEANFILES = $(check_DATA) stamp-fedora-md.img *.tmp.* fedora.img: guest-aux/make-fedora-img.pl \ guest-aux/fedora-name.db \ guest-aux/fedora-packages.db - TMPDIR=$(top_builddir) \ - SRCDIR=$(srcdir) \ - LAYOUT=partitions \ - $(top_builddir)/run --test $< + SRCDIR=$(srcdir) LAYOUT=partitions $(top_builddir)/run --test $< # Make a (dummy) Fedora image using md devices fedora-md1.img fedora-md2.img: stamp-fedora-md.img @@ -58,10 +55,7 @@ stamp-fedora-md.img: guest-aux/make-fedora-img.pl \ guest-aux/fedora-name.db \ guest-aux/fedora-packages.db rm -f $@ - TMPDIR=$(top_builddir) \ - SRCDIR=$(srcdir) \ - LAYOUT=partitions-md \ - $(top_builddir)/run --test $< + SRCDIR=$(srcdir) LAYOUT=partitions-md $(top_builddir)/run --test $< touch $@ guest-aux/fedora-name.db: guest-aux/fedora-name.db.txt @@ -78,22 +72,16 @@ guest-aux/fedora-packages.db: guest-aux/fedora-packages.db.txt # Make a (dummy) Debian image. debian.img: guest-aux/make-debian-img.sh - TMPDIR=$(top_builddir) \ - SRCDIR=$(srcdir) \ - bash $< + SRCDIR=$(srcdir) $(top_builddir)/run --test $< # Make a (dummy) Ubuntu image. ubuntu.img: guest-aux/make-ubuntu-img.sh - TMPDIR=$(top_builddir) \ - SRCDIR=$(srcdir) \ - bash $< + SRCDIR=$(srcdir) $(top_builddir)/run --test $< # Make a (dummy) Windows image. windows.img: guest-aux/make-windows-img.sh \ guest-aux/windows-software guest-aux/windows-system - TMPDIR=$(top_builddir) \ - SRCDIR=$(srcdir) \ - bash $< + SRCDIR=$(srcdir) $(top_builddir)/run --test $< # Since users might not have the tools needed to create this, we # also distribute these files. diff --git a/tests/guests/guest-aux/make-debian-img.sh b/tests/guests/guest-aux/make-debian-img.sh index 00a68d5a..74e9f59c 100755 --- a/tests/guests/guest-aux/make-debian-img.sh +++ b/tests/guests/guest-aux/make-debian-img.sh @@ -31,7 +31,7 @@ LABEL=BOOT /boot ext2 default 0 0 EOF # Create a disk image. -../../run ../../fish/guestfish <