From patchwork Wed Feb 24 21:24:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 62837 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp2648566lbl; Wed, 24 Feb 2016 13:26:58 -0800 (PST) X-Received: by 10.141.23.207 with SMTP id z198mr54499718qhd.52.1456349218416; Wed, 24 Feb 2016 13:26:58 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 7si4649832qhm.17.2016.02.24.13.26.58; Wed, 24 Feb 2016 13:26:58 -0800 (PST) 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 Received: by lists.linaro.org (Postfix, from userid 109) id 0420162FF4; Wed, 24 Feb 2016 21:26:57 +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=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 F0CFE62FF8; Wed, 24 Feb 2016 21:25:27 +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 12B5C617B1; Wed, 24 Feb 2016 21:25:19 +0000 (UTC) Received: from mail-qk0-f182.google.com (mail-qk0-f182.google.com [209.85.220.182]) by lists.linaro.org (Postfix) with ESMTPS id CE30A617B1 for ; Wed, 24 Feb 2016 21:25:17 +0000 (UTC) Received: by mail-qk0-f182.google.com with SMTP id x1so12347517qkc.1 for ; Wed, 24 Feb 2016 13:25:17 -0800 (PST) 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:in-reply-to :references; bh=m1ZWmWDVAZjNwWoKgNj1yuQ1Q2plf7ANczie8HC6yFs=; b=EpZS6ddLc0dFTL1ilq17EaBovF2bCnnomrxz0NS0iQpSY0QGMX4v11vteYt98lYh2z sBJ80W27UyJ6+aWLunjfgoHqKb6zJWLvFLcYWZQP4yLny/HVawP6r4HOIsbZYBEmX9pa 1akoCqirrLcYj1aA0bInrFhDvyN1FGUcweZMPCtpHYL4iD79rt5rG17OUuTW0n+uoh4p K2znKnCPe6nNnVzc43W+J6I845E56kN6GJNQ66ZRxPq/tAmLUuwzndsDRxBp75MJxeQ3 zuKB/+4wBLsY9P37Pp0Vt6KCIt//uqnbzlCGRjCcEoggN0uPpZv3L1Wsjvig5ifII2iQ 5z0w== X-Gm-Message-State: AG10YOSqDgtnqT9uhjSGFssVjSffo3SXCZy/ASrbuq+9ma5X/Guubm2CQuv5UAnMVdDiT/Z9csw= X-Received: by 10.55.23.77 with SMTP id i74mr51242442qkh.0.1456349117552; Wed, 24 Feb 2016 13:25:17 -0800 (PST) Received: from localhost.localdomain (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by smtp.gmail.com with ESMTPSA id j75sm1976097qge.41.2016.02.24.13.25.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 Feb 2016 13:25:17 -0800 (PST) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Wed, 24 Feb 2016 16:24:58 -0500 Message-Id: <1456349098-21774-2-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1456349098-21774-1-git-send-email-mike.holmes@linaro.org> References: <1456349098-21774-1-git-send-email-mike.holmes@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH V2 2/2] linux-generic: test: add process mode scheduler 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" Add new platform test infrastructure to run the scheduler performance test in process mode. Signed-off-by: Mike Holmes --- platform/linux-generic/m4/configure.m4 | 1 + platform/linux-generic/test/.gitignore | 1 - platform/linux-generic/test/Makefile.am | 2 +- platform/linux-generic/test/performance/.gitignore | 1 + .../linux-generic/test/performance/Makefile.am | 16 +++++++++++++ .../test/performance/odp_scheduling_proc_run | 28 ++++++++++++++++++++++ platform/linux-generic/test/validation/.gitignore | 1 + 7 files changed, 48 insertions(+), 2 deletions(-) create mode 100755 platform/linux-generic/test/performance/.gitignore create mode 100755 platform/linux-generic/test/performance/Makefile.am create mode 100755 platform/linux-generic/test/performance/odp_scheduling_proc_run create mode 100644 platform/linux-generic/test/validation/.gitignore diff --git a/platform/linux-generic/m4/configure.m4 b/platform/linux-generic/m4/configure.m4 index 97c15fa..82b7c5e 100644 --- a/platform/linux-generic/m4/configure.m4 +++ b/platform/linux-generic/m4/configure.m4 @@ -23,5 +23,6 @@ m4_include([platform/linux-generic/m4/odp_pcap.m4]) AC_CONFIG_FILES([platform/linux-generic/Makefile platform/linux-generic/test/Makefile + platform/linux-generic/test/performance/Makefile platform/linux-generic/test/validation/Makefile platform/linux-generic/test/validation/pktio/Makefile]) diff --git a/platform/linux-generic/test/.gitignore b/platform/linux-generic/test/.gitignore index 5dabf91..7e563b8 100644 --- a/platform/linux-generic/test/.gitignore +++ b/platform/linux-generic/test/.gitignore @@ -1,3 +1,2 @@ *.log *.trs -tests-validation.env diff --git a/platform/linux-generic/test/Makefile.am b/platform/linux-generic/test/Makefile.am index 312d18e..1dd0170 100644 --- a/platform/linux-generic/test/Makefile.am +++ b/platform/linux-generic/test/Makefile.am @@ -1 +1 @@ -SUBDIRS = validation +SUBDIRS = validation performance diff --git a/platform/linux-generic/test/performance/.gitignore b/platform/linux-generic/test/performance/.gitignore new file mode 100755 index 0000000..d95312a --- /dev/null +++ b/platform/linux-generic/test/performance/.gitignore @@ -0,0 +1 @@ +performance-test.env diff --git a/platform/linux-generic/test/performance/Makefile.am b/platform/linux-generic/test/performance/Makefile.am new file mode 100755 index 0000000..74b4d4c --- /dev/null +++ b/platform/linux-generic/test/performance/Makefile.am @@ -0,0 +1,16 @@ +include $(top_srcdir)/test/Makefile.inc +TESTS_ENVIRONMENT += TEST_DIR=${top_builddir}/test/performance + +if test_perf +TESTS = odp_scheduling_proc_run +endif + +dist_check_SCRIPTS = ../run-test performance-test.env $(LOG_COMPILER) \ + odp_scheduling_proc_run + +test_SCRIPTS = $(dist_check_SCRIPTS) + +performance-test.env: + echo "TESTS=\"$(TESTS)\"" > $@ + echo "$(TESTS_ENVIRONMENT)" >> $@ + echo "$(LOG_COMPILER)" >> $@ diff --git a/platform/linux-generic/test/performance/odp_scheduling_proc_run b/platform/linux-generic/test/performance/odp_scheduling_proc_run new file mode 100755 index 0000000..1210674 --- /dev/null +++ b/platform/linux-generic/test/performance/odp_scheduling_proc_run @@ -0,0 +1,28 @@ +#!/bin/sh +# +# Copyright (c) 2016, Linaro Limited +# All rights reserved. +# +# SPDX-License-Identifier: BSD-3-Clause +# +# Script that passes command line arguments to odp_scheduling test when +# launched by 'make check' +TEST_DIR="${TEST_DIR:-$(dirname $0)}" + +PATH=${TEST_DIR}:$PATH +PATH=$(dirname $0)/../../../../test/performance:$PATH + +ret=0 + +run() +{ + echo odp_scheduling_proc_run starts with $1 worker threads + echo =============================================== + + odp_scheduling${EXEEXT} -c $1 --proc || ret=1 +} + +run 1 +run 8 + +exit $ret diff --git a/platform/linux-generic/test/validation/.gitignore b/platform/linux-generic/test/validation/.gitignore new file mode 100644 index 0000000..16f0afb --- /dev/null +++ b/platform/linux-generic/test/validation/.gitignore @@ -0,0 +1 @@ +tests-validation.env \ No newline at end of file