From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 804A3A0564; Mon, 23 Mar 2020 20:59:47 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5223E1C0B6; Mon, 23 Mar 2020 20:59:47 +0100 (CET) Received: from us-smtp-delivery-74.mimecast.com (us-smtp-delivery-74.mimecast.com [216.205.24.74]) by dpdk.org (Postfix) with ESMTP id 6CE391C0B6 for ; Mon, 23 Mar 2020 20:59:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1584993585; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mojVPpbT1l4ALCXq1aZIOcXgJ3F4o9eIchHEXWkFxjo=; b=WYWJ/bASEX7HGXpRJuhy9zjkpAeknlmi1jifU9cL7uGaVfSbL9p+kWQ/GSzGmZadj7/g4Q mo+LodPdkX3ujDqJ3XAP6NtL1Qu7r1CscBZltyXKS5r3mQXWTdpiUmgLyN0a0FHfCO4Cj5 H3RteHrY3VGua0N2fjhKZvEHttPyREY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-305-pqHYo_zaOlWWfvZVU37JQg-1; Mon, 23 Mar 2020 15:59:41 -0400 X-MC-Unique: pqHYo_zaOlWWfvZVU37JQg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EA449801E53; Mon, 23 Mar 2020 19:59:39 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.193.243]) by smtp.corp.redhat.com (Postfix) with ESMTP id ED22610016EB; Mon, 23 Mar 2020 19:59:37 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: aconole@redhat.com, ruifeng.wang@arm.com, maicolgabriel@hotmail.com, bruce.richardson@intel.com, stable@dpdk.org, Reshma Pattan Date: Mon, 23 Mar 2020 20:59:22 +0100 Message-Id: <20200323195926.12182-2-david.marchand@redhat.com> In-Reply-To: <20200323195926.12182-1-david.marchand@redhat.com> References: <20200323195926.12182-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: [dpdk-dev] [PATCH v4 1/5] test: load drivers when required X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Concatenating to test_args if event_eth_tx_adapter_autotest is executed makes all subsequent tests inherit from the drivers loading while this is unneeded. Fixes: 207b1c813f39 ("test: fix build without ring PMD") Cc: stable@dpdk.org Signed-off-by: David Marchand Reviewed-by: Ruifeng Wang --- app/test/meson.build | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/app/test/meson.build b/app/test/meson.build index 0a2ce710f0..7ab2b586e1 100644 --- a/app/test/meson.build +++ b/app/test/meson.build @@ -403,37 +403,33 @@ timeout_seconds_fast =3D 10 get_coremask =3D find_program('get-coremask.sh') num_cores_arg =3D '-l ' + run_command(get_coremask).stdout().strip() =20 -test_args =3D [num_cores_arg] +default_test_args =3D [num_cores_arg] =20 foreach arg : fast_test_names +=09test_args =3D default_test_args + =09if (get_option('default_library') =3D=3D 'shared' and =09=09arg =3D=3D 'event_eth_tx_adapter_autotest') =09=09foreach drv:dpdk_drivers =09=09=09test_args +=3D ['-d', drv.full_path().split('.a')[0] + '.so'] =09=09endforeach =09endif -=09if host_machine.system() =3D=3D 'linux' -=09=09test(arg, dpdk_test, -=09=09=09 env : ['DPDK_TEST=3D' + arg], -=09=09=09 args : test_args + -=09=09=09=09 ['--file-prefix=3D@0@'.format(arg)], -=09=09timeout : timeout_seconds_fast, -=09=09is_parallel : false, -=09=09suite : 'fast-tests') -=09else -=09=09test(arg, dpdk_test, -=09=09=09env : ['DPDK_TEST=3D' + arg], -=09=09=09args : test_args, +=09if is_linux +=09=09test_args +=3D ['--file-prefix=3D@0@'.format(arg)] +=09endif + +=09test(arg, dpdk_test, +=09=09env : ['DPDK_TEST=3D' + arg], +=09=09args : test_args, =09=09timeout : timeout_seconds_fast, =09=09is_parallel : false, =09=09suite : 'fast-tests') -=09endif endforeach =20 foreach arg : perf_test_names =09test(arg, dpdk_test, =09env : ['DPDK_TEST=3D' + arg], -=09args : test_args, +=09args : default_test_args, =09timeout : timeout_seconds, =09is_parallel : false, =09suite : 'perf-tests') @@ -442,7 +438,7 @@ endforeach foreach arg : driver_test_names =09test(arg, dpdk_test, =09=09env : ['DPDK_TEST=3D' + arg], -=09=09args : test_args, +=09=09args : default_test_args, =09=09timeout : timeout_seconds, =09=09is_parallel : false, =09=09suite : 'driver-tests') @@ -451,7 +447,7 @@ endforeach foreach arg : dump_test_names =09test(arg, dpdk_test, =09=09env : ['DPDK_TEST=3D' + arg], -=09=09args : test_args, +=09=09args : default_test_args, =09=09timeout : timeout_seconds, =09=09is_parallel : false, =09=09suite : 'debug-tests') --=20 2.23.0