From patchwork Thu Jul 30 16:14:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 51702 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by patches.linaro.org (Postfix) with ESMTPS id 004D822DB5 for ; Thu, 30 Jul 2015 16:16:01 +0000 (UTC) Received: by lbcut9 with SMTP id ut9sf4525046lbc.3 for ; Thu, 30 Jul 2015 09:16:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list; bh=5ep0+DkXrzd43su+Lp1PjpbkCQnlOY9Nwsg9KVikPso=; b=ctJGHe3VJNZkv56Y+mzE/Rm20MK0XkxH2c5BTL6B5MnVVSk8NAPpr6/0j0E4BHYqN2 +hWN9noHFxCrPP7kiPkH829R9xKKAhhOLr7bZpCE0EGJ0W00hmaHzufjoxtPYBQOYQYj cd1fAJ3T3Dpac7XharKR2V60C3a6GgIBpx8MseSIVoik3zTfs/YI5O5vQLQFA8tN+yCj RlfS2O3eUgpAO9vnK1NVNQDjfFnub4t0iciMhIqWME5NSxPBRJkVA4kzNdyy9xfl52oQ HgURU/VU67Ig2s56QX57FCHyZXWr55+EbpOQg5/X5g9Rgc7OCXhmzIW1HE/6W2GHqF3+ wbMw== X-Gm-Message-State: ALoCoQlwYD/n9udDlzb+7eNom92Poov2hApJr0T3vFgmWCzBy0jY5OvfMJ3OP2+3wdRUVQwksS4o X-Received: by 10.112.139.137 with SMTP id qy9mr17888746lbb.17.1438272959991; Thu, 30 Jul 2015 09:15:59 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.8.201 with SMTP id t9ls193362laa.95.gmail; Thu, 30 Jul 2015 09:15:59 -0700 (PDT) X-Received: by 10.152.45.9 with SMTP id i9mr44983729lam.105.1438272959715; Thu, 30 Jul 2015 09:15:59 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id gf10si1189901lbc.82.2015.07.30.09.15.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Jul 2015 09:15:59 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by lafd3 with SMTP id d3so28225246laf.1 for ; Thu, 30 Jul 2015 09:15:59 -0700 (PDT) X-Received: by 10.152.207.76 with SMTP id lu12mr45054291lac.29.1438272959457; Thu, 30 Jul 2015 09:15:59 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.7.198 with SMTP id l6csp715018lba; Thu, 30 Jul 2015 09:15:58 -0700 (PDT) X-Received: by 10.55.48.133 with SMTP id w127mr71985483qkw.53.1438272958129; Thu, 30 Jul 2015 09:15:58 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 201si298624qha.11.2015.07.30.09.15.54; Thu, 30 Jul 2015 09:15:58 -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; Received: by lists.linaro.org (Postfix, from userid 109) id A733861FC0; Thu, 30 Jul 2015 16:15:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal 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 ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 9C42D61FA6; Thu, 30 Jul 2015 16:15:26 +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 8EEEF61F19; Thu, 30 Jul 2015 16:15:11 +0000 (UTC) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com [209.85.215.52]) by lists.linaro.org (Postfix) with ESMTPS id 0145561833 for ; Thu, 30 Jul 2015 16:15:00 +0000 (UTC) Received: by lahh5 with SMTP id h5so28138024lah.2 for ; Thu, 30 Jul 2015 09:14:58 -0700 (PDT) X-Received: by 10.152.43.37 with SMTP id t5mr44588311lal.96.1438272898621; Thu, 30 Jul 2015 09:14:58 -0700 (PDT) Received: from erachmi-VirtualBox.ki.sw.ericsson.se (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by smtp.gmail.com with ESMTPSA id o5sm348202lag.9.2015.07.30.09.14.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Jul 2015 09:14:57 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Thu, 30 Jul 2015 18:14:47 +0200 Message-Id: <1438272887-24972-1-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv2] validation: creation of the test superlib X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: 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" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: christophe.milard@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 libodptests.la contains all platform agnostic test functions and symbols defined odptests.h (from all modules) It is meant to be used by ODP devloppers to pick up the tests they need (and disgard others) during the devlopment process on their platform. Signed-off-by: Christophe Milard --- since v1: fixed alphabetical order Saddly, I could not get Makefile.am and automake to generate the list of needed libs ( /lib.la ) from the list of modules The list is therefore repeated 3 times, twice in the Makefile and once in the odptests.h file... Not optimal but best I could do. Automake gurus are welcome to improve it :-) test/validation/Makefile.am | 22 ++++++++++++++++++++++ test/validation/odptests.h | 29 +++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 test/validation/odptests.h diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index 56ddd64..49c5746 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -18,3 +18,25 @@ ODP_MODULES = buffer \ system SUBDIRS = common $(ODP_MODULES) + +#the lib containing all platform agnostic tests: +noinst_LTLIBRARIES = libodptests.la +libodptests_la_SOURCES = +libodptests_la_LIBADD = buffer/libbuffer.la \ + classification/libclassification.la \ + cpumask/libcpumask.la \ + crypto/libcrypto.la \ + errno/liberrno.la \ + init/libinit.la \ + packet/libpacket.la \ + pktio/libpktio.la \ + pool/libpool.la \ + queue/libqueue.la \ + random/librandom.la \ + scheduler/libscheduler.la \ + shmem/libshmem.la \ + synchronizers/libsynchronizers.la \ + system/libsystem.la \ + thread/libthread.la \ + time/libtime.la \ + timer/libtimer.la diff --git a/test/validation/odptests.h b/test/validation/odptests.h new file mode 100644 index 0000000..33a3e07 --- /dev/null +++ b/test/validation/odptests.h @@ -0,0 +1,29 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef _ODP_TESTS_H_ +#define _ODP_TESTS_H_ + +#include "buffer/buffer.h" +#include "classification/classification.h" +#include "cpumask/cpumask.h" +#include "crypto/crypto.h" +#include "errno/errno.h" +#include "init/init.h" +#include "packet/packet.h" +#include "pktio/pktio.h" +#include "pool/pool.h" +#include "queue/queue.h" +#include "random/random.h" +#include "scheduler/scheduler.h" +#include "shmem/shmem.h" +#include "synchronizers/synchronizers.h" +#include "system/system.h" +#include "thread/thread.h" +#include "time/time.h" +#include "timer/timer.h" + +#endif