From patchwork Tue May 17 14:57:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 67993 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp2135952qge; Tue, 17 May 2016 08:21:39 -0700 (PDT) X-Received: by 10.140.23.37 with SMTP id 34mr2187658qgo.14.1463498499742; Tue, 17 May 2016 08:21:39 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id u73si2541189qki.217.2016.05.17.08.21.39; Tue, 17 May 2016 08:21:39 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 567016178A; Tue, 17 May 2016 15:21:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 98FCF617BB; Tue, 17 May 2016 15:18:33 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 7725261748; Tue, 17 May 2016 15:12:11 +0000 (UTC) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com [209.85.217.171]) by lists.linaro.org (Postfix) with ESMTPS id DC05561795 for ; Tue, 17 May 2016 14:57:15 +0000 (UTC) Received: by mail-lb0-f171.google.com with SMTP id ww9so6968466lbc.2 for ; Tue, 17 May 2016 07:57:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=vsA68uZehCsLT9i9R1yFDd3QbrUbHeAtjgrnebWGn8s=; b=aPcglKWltd7wmssE5llw7XRHjBq4TyoT6FCYWYzK9/04JHSUf7SK1NMJMQ4FfACXol HI1EBGrnC9vWtV3KyyXYJleh4G0fmJSk1dprt2YjCIhl0aXQ7Dsx8qW7wPqnRuTUi+MS rP476o/3yb9khVRO+GkqX3Uu7LptAW2bkJBqdpW7NloWKz9G77n4MJYZoN9Y8iVpPgsT 5cesBfdOc1gTKWWMiXyP6dTiBuWHh6+6rmFx/c3Xi0tUt7crWHXAIULaPsmO98UU/ztZ Og4Kz5cuWEMXQQ+kcfZwbAyNqC+ULRY5ZK277SmNy2vmLPn8OEe3xHVvGnYGPip+niA7 me2g== X-Gm-Message-State: AOPr4FXeqGspD+Hz8gmAvneE91sVaMv0a4z/Q+ZvPmVTOizsuui4Y2KFe170AbdQwoJDlTZ6uWU= X-Received: by 10.112.172.199 with SMTP id be7mr701809lbc.49.1463497034653; Tue, 17 May 2016 07:57:14 -0700 (PDT) Received: from localhost.localdomain (ppp91-77-173-31.pppoe.mtu-net.ru. [91.77.173.31]) by smtp.gmail.com with ESMTPSA id e78sm589622lfb.6.2016.05.17.07.57.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 May 2016 07:57:14 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Tue, 17 May 2016 17:57:03 +0300 Message-Id: <1463497023-17708-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.7.1.250.gff4ea60 X-Topics: patch Subject: [lng-odp] [PATCH] autotools: define test extensions to skip on valgrind test X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" valgrind should not check bash wrappers. Accoding to doc: https://www.gnu.org/software/gnulib/manual/html_node/Running-self_002dtests-under-valgrind.html TEST_EXTENSIONS has to be set. https://bugs.linaro.org/show_bug.cgi?id=2230 Signed-off-by: Maxim Uvarov --- platform/linux-generic/test/Makefile.am | 14 ++++++++------ platform/linux-generic/test/pktio/Makefile.am | 10 +++++----- .../linux-generic/test/pktio/{pktio_run => pktio_run.sh} | 0 .../test/pktio/{pktio_run_dpdk => pktio_run_dpdk.sh} | 0 .../test/pktio/{pktio_run_netmap => pktio_run_netmap.sh} | 0 .../test/pktio/{pktio_run_pcap => pktio_run_pcap.sh} | 0 .../test/pktio/{pktio_run_tap => pktio_run_tap.sh} | 0 platform/linux-generic/test/pktio_ipc/Makefile.am | 2 +- .../test/pktio_ipc/{pktio_ipc_run => pktio_ipc_run.sh} | 0 test/performance/Makefile.am | 6 ++++-- test/performance/{odp_l2fwd_run => odp_l2fwd_run.sh} | 0 .../{odp_scheduling_run => odp_scheduling_run.sh} | 0 12 files changed, 18 insertions(+), 14 deletions(-) rename platform/linux-generic/test/pktio/{pktio_run => pktio_run.sh} (100%) rename platform/linux-generic/test/pktio/{pktio_run_dpdk => pktio_run_dpdk.sh} (100%) rename platform/linux-generic/test/pktio/{pktio_run_netmap => pktio_run_netmap.sh} (100%) rename platform/linux-generic/test/pktio/{pktio_run_pcap => pktio_run_pcap.sh} (100%) rename platform/linux-generic/test/pktio/{pktio_run_tap => pktio_run_tap.sh} (100%) rename platform/linux-generic/test/pktio_ipc/{pktio_ipc_run => pktio_ipc_run.sh} (100%) rename test/performance/{odp_l2fwd_run => odp_l2fwd_run.sh} (100%) rename test/performance/{odp_scheduling_run => odp_scheduling_run.sh} (100%) diff --git a/platform/linux-generic/test/Makefile.am b/platform/linux-generic/test/Makefile.am index 05998e3..f74185d 100644 --- a/platform/linux-generic/test/Makefile.am +++ b/platform/linux-generic/test/Makefile.am @@ -6,8 +6,8 @@ ODP_MODULES = pktio \ shmem if test_vald -TESTS = pktio/pktio_run \ - pktio/pktio_run_tap \ +TESTS = pktio/pktio_run.sh \ + pktio/pktio_run_tap.sh \ ring/ringtest$(EXEEXT) \ shmem/shmem_linux \ ${top_builddir}/test/validation/atomic/atomic_main$(EXEEXT) \ @@ -38,20 +38,22 @@ TESTS = pktio/pktio_run \ SUBDIRS = $(ODP_MODULES) if HAVE_PCAP -TESTS += pktio/pktio_run_pcap +TESTS += pktio/pktio_run_pcap.sh endif if PKTIO_IPC -TESTS += pktio_ipc/pktio_ipc_run +TESTS += pktio_ipc/pktio_ipc_run.sh SUBDIRS += pktio_ipc endif if netmap_support -TESTS += pktio/pktio_run_netmap +TESTS += pktio/pktio_run_netmap.sh endif if PKTIO_DPDK -TESTS += pktio/pktio_run_dpdk +TESTS += pktio/pktio_run_dpdk.sh endif endif +TEST_EXTENSIONS = .sh + dist_check_SCRIPTS = run-test tests-validation.env $(LOG_COMPILER) test_SCRIPTS = $(dist_check_SCRIPTS) diff --git a/platform/linux-generic/test/pktio/Makefile.am b/platform/linux-generic/test/pktio/Makefile.am index 3dcc1ee..4a14343 100644 --- a/platform/linux-generic/test/pktio/Makefile.am +++ b/platform/linux-generic/test/pktio/Makefile.am @@ -1,15 +1,15 @@ dist_check_SCRIPTS = pktio_env \ - pktio_run \ - pktio_run_tap + pktio_run.sh \ + pktio_run_tap.sh if HAVE_PCAP -dist_check_SCRIPTS += pktio_run_pcap +dist_check_SCRIPTS += pktio_run_pcap.sh endif if netmap_support -dist_check_SCRIPTS += pktio_run_netmap +dist_check_SCRIPTS += pktio_run_netmap.sh endif if PKTIO_DPDK -dist_check_SCRIPTS += pktio_run_dpdk +dist_check_SCRIPTS += pktio_run_dpdk.sh endif test_SCRIPTS = $(dist_check_SCRIPTS) diff --git a/platform/linux-generic/test/pktio/pktio_run b/platform/linux-generic/test/pktio/pktio_run.sh similarity index 100% rename from platform/linux-generic/test/pktio/pktio_run rename to platform/linux-generic/test/pktio/pktio_run.sh diff --git a/platform/linux-generic/test/pktio/pktio_run_dpdk b/platform/linux-generic/test/pktio/pktio_run_dpdk.sh similarity index 100% rename from platform/linux-generic/test/pktio/pktio_run_dpdk rename to platform/linux-generic/test/pktio/pktio_run_dpdk.sh diff --git a/platform/linux-generic/test/pktio/pktio_run_netmap b/platform/linux-generic/test/pktio/pktio_run_netmap.sh similarity index 100% rename from platform/linux-generic/test/pktio/pktio_run_netmap rename to platform/linux-generic/test/pktio/pktio_run_netmap.sh diff --git a/platform/linux-generic/test/pktio/pktio_run_pcap b/platform/linux-generic/test/pktio/pktio_run_pcap.sh similarity index 100% rename from platform/linux-generic/test/pktio/pktio_run_pcap rename to platform/linux-generic/test/pktio/pktio_run_pcap.sh diff --git a/platform/linux-generic/test/pktio/pktio_run_tap b/platform/linux-generic/test/pktio/pktio_run_tap.sh similarity index 100% rename from platform/linux-generic/test/pktio/pktio_run_tap rename to platform/linux-generic/test/pktio/pktio_run_tap.sh diff --git a/platform/linux-generic/test/pktio_ipc/Makefile.am b/platform/linux-generic/test/pktio_ipc/Makefile.am index bc224ae..8858bd2 100644 --- a/platform/linux-generic/test/pktio_ipc/Makefile.am +++ b/platform/linux-generic/test/pktio_ipc/Makefile.am @@ -16,5 +16,5 @@ dist_pktio_ipc2_SOURCES = pktio_ipc2.c ipc_common.c EXTRA_DIST = ipc_common.h -dist_check_SCRIPTS = pktio_ipc_run +dist_check_SCRIPTS = pktio_ipc_run.sh test_SCRIPTS = $(dist_check_SCRIPTS) diff --git a/platform/linux-generic/test/pktio_ipc/pktio_ipc_run b/platform/linux-generic/test/pktio_ipc/pktio_ipc_run.sh similarity index 100% rename from platform/linux-generic/test/pktio_ipc/pktio_ipc_run rename to platform/linux-generic/test/pktio_ipc/pktio_ipc_run.sh diff --git a/test/performance/Makefile.am b/test/performance/Makefile.am index d61dee9..d23bb3e 100644 --- a/test/performance/Makefile.am +++ b/test/performance/Makefile.am @@ -7,8 +7,10 @@ EXECUTABLES = odp_crypto$(EXEEXT) odp_pktio_perf$(EXEEXT) COMPILE_ONLY = odp_l2fwd$(EXEEXT) \ odp_scheduling$(EXEEXT) -TESTSCRIPTS = odp_l2fwd_run \ - odp_scheduling_run +TESTSCRIPTS = odp_l2fwd_run.sh \ + odp_scheduling_run.sh + +TEST_EXTENSIONS = .sh if test_perf TESTS = $(EXECUTABLES) $(TESTSCRIPTS) diff --git a/test/performance/odp_l2fwd_run b/test/performance/odp_l2fwd_run.sh similarity index 100% rename from test/performance/odp_l2fwd_run rename to test/performance/odp_l2fwd_run.sh diff --git a/test/performance/odp_scheduling_run b/test/performance/odp_scheduling_run.sh similarity index 100% rename from test/performance/odp_scheduling_run rename to test/performance/odp_scheduling_run.sh