Received: from eggs.gnu.org ([2001:4830:134:3::10]:51556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blxMv-00051k-Ru for qemu-devel@nongnu.org; Mon, 19 Sep 2016 08:08:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1blxMr-0001gx-MK for qemu-devel@nongnu.org; Mon, 19 Sep 2016 08:08:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51890) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blxMr-0001gV-CS for qemu-devel@nongnu.org; Mon, 19 Sep 2016 08:08:13 -0400 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Mon, 19 Sep 2016 16:08:00 +0400 Message-Id: <20160919120800.20199-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH] tests: move test-path in check-unit-y List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: bobby.prani@gmail.com, rth@twiddle.net, eblake@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= - fix build of test-path (after recent bufferiszero move) - remove the direct .c includes - add the test from tcg/ to the tests check-unit list. Signed-off-by: Marc-Andr=C3=A9 Lureau --- tests/{tcg/test_path.c =3D> test-path.c} | 12 ++---------- tests/Makefile.include | 3 +++ tests/tcg/Makefile | 9 +-------- 3 files changed, 6 insertions(+), 18 deletions(-) rename tests/{tcg/test_path.c =3D> test-path.c} (94%) diff --git a/tests/tcg/test_path.c b/tests/test-path.c similarity index 94% rename from tests/tcg/test_path.c rename to tests/test-path.c index 1c29bce..f2f4ab1 100644 --- a/tests/tcg/test_path.c +++ b/tests/test-path.c @@ -1,13 +1,5 @@ -/* Test path override code */ -#include "config-host.h" -#include "util/cutils.c" -#include "util/hexdump.c" -#include "util/iov.c" -#include "util/path.c" -#include "util/qemu-timer-common.c" -#include -#include -#include +#include "qemu/osdep.h" +#include "qemu/path.h" =20 void qemu_log(const char *fmt, ...); =20 diff --git a/tests/Makefile.include b/tests/Makefile.include index 2f11064..7907621 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -115,6 +115,8 @@ check-unit-y +=3D tests/test-logging$(EXESUF) check-unit-$(CONFIG_REPLICATION) +=3D tests/test-replication$(EXESUF) check-unit-y +=3D tests/test-bufferiszero$(EXESUF) gcov-files-check-bufferiszero-y =3D util/bufferiszero.c +check-unit-y +=3D tests/test-path$(EXESUF) +gcov-files-check-path-y =3D util/path.c =20 check-block-$(CONFIG_POSIX) +=3D tests/qemu-iotests-quick.sh =20 @@ -488,6 +490,7 @@ tests/test-qht$(EXESUF): tests/test-qht.o $(test-util= -obj-y) tests/test-qht-par$(EXESUF): tests/test-qht-par.o tests/qht-bench$(EXESU= F) $(test-util-obj-y) tests/qht-bench$(EXESUF): tests/qht-bench.o $(test-util-obj-y) tests/test-bufferiszero$(EXESUF): tests/test-bufferiszero.o $(test-util-= obj-y) +tests/test-path$(EXESUF): tests/test-path.o $(test-util-obj-y) =20 tests/test-qdev-global-props$(EXESUF): tests/test-qdev-global-props.o \ hw/core/qdev.o hw/core/qdev-properties.o hw/core/hotplug.o\ diff --git a/tests/tcg/Makefile b/tests/tcg/Makefile index 89e3342..7409a24 100644 --- a/tests/tcg/Makefile +++ b/tests/tcg/Makefile @@ -31,7 +31,7 @@ ifneq ($(ARCH),i386) I386_TESTS+=3Drun-test-x86_64 endif =20 -TESTS =3D test_path +TESTS =3D ifneq ($(call find-in-path, $(CC_I386)),) TESTS +=3D $(I386_TESTS) endif @@ -75,15 +75,8 @@ run-test-mmap: test-mmap run-runcom: runcom -$(QEMU) ./runcom $(SRC_PATH)/tests/pi_10.com =20 -run-test_path: test_path - ./test_path - # rules to compile tests =20 -test_path: test_path.o - -test_path.o: test_path.c - hello-i386: hello-i386.c $(CC_I386) -nostdlib $(CFLAGS) -static $(LDFLAGS) -o $@ $< strip $@ --=20 2.10.0