From patchwork Wed Jul 29 14:28:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 51666 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id CD5F0214B7 for ; Wed, 29 Jul 2015 14:29:43 +0000 (UTC) Received: by wicmv11 with SMTP id mv11sf7739571wic.1 for ; Wed, 29 Jul 2015 07:29:43 -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=2uKbsq1r3MRAlRrMgD/ewzaz6oPTGmgDfLyt9wT0Dkg=; b=LVxKK+jrZDe6ul756CGAeHgX/w72uFsYA5B5A5QJbEF/sWIswVxxDuwd8RSp2Djqec 1WF1SYoGU/3ORZF66b1onpXDnA38OIk9YOQY4qVmUDUc4VP8o3UODAVwML8y4yFyK0hj N6uucy2N2cTfy4YUno4ewFSZv+kTfg0YdpjjTgjkrUs3Tj7lIGEd8GTiEeuyLxEWLkac MxzFEqsuuxy0zPzcUtXpWS1tFtqBo3lJPYILf5dZQcyPpqicA6AKRVakDXZMuSBjgpyY 5TDgw/xyUh0H1yHfowvdpIPXQqmIdVZSnJtfgJLZL+zXOzY9IBwZdskvN64VnQpCw+zB o5wQ== X-Gm-Message-State: ALoCoQloR6Tu77MA3B4TJeIbqWAZW4N3VsoWsVNXO5PoXo1gvjcVTgDm7EUVjZqxz58ZxjRz1iKl X-Received: by 10.180.205.202 with SMTP id li10mr1163802wic.5.1438180183156; Wed, 29 Jul 2015 07:29:43 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.179.171 with SMTP id dh11ls43496lac.47.gmail; Wed, 29 Jul 2015 07:29:42 -0700 (PDT) X-Received: by 10.152.4.98 with SMTP id j2mr38086807laj.67.1438180182944; Wed, 29 Jul 2015 07:29:42 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id 9si21640259lal.81.2015.07.29.07.29.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jul 2015 07:29:42 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by lagw2 with SMTP id w2so7394365lag.3 for ; Wed, 29 Jul 2015 07:29:42 -0700 (PDT) X-Received: by 10.152.120.135 with SMTP id lc7mr38112614lab.41.1438180182828; Wed, 29 Jul 2015 07:29:42 -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 l6csp2788450lba; Wed, 29 Jul 2015 07:29:41 -0700 (PDT) X-Received: by 10.55.25.131 with SMTP id 3mr62694974qkz.85.1438180181368; Wed, 29 Jul 2015 07:29:41 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id i17si31568589qkh.89.2015.07.29.07.29.40; Wed, 29 Jul 2015 07:29:41 -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 724FA61E50; Wed, 29 Jul 2015 14:29:40 +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 C8AE861C6E; Wed, 29 Jul 2015 14:29:12 +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 D2FB461C9B; Wed, 29 Jul 2015 14:28:57 +0000 (UTC) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com [209.85.215.48]) by lists.linaro.org (Postfix) with ESMTPS id 2697261B70 for ; Wed, 29 Jul 2015 14:28:51 +0000 (UTC) Received: by lagw2 with SMTP id w2so7377345lag.3 for ; Wed, 29 Jul 2015 07:28:50 -0700 (PDT) X-Received: by 10.152.44.130 with SMTP id e2mr38270353lam.14.1438180130099; Wed, 29 Jul 2015 07:28:50 -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 uq1sm5358095lbb.18.2015.07.29.07.28.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Jul 2015 07:28:49 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Wed, 29 Jul 2015 16:28:36 +0200 Message-Id: <1438180116-30739-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] [PATCH] 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.52 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 --- 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..8dac877 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 \ + queue/libqueue.la \ + packet/libpacket.la \ + pktio/libpktio.la \ + pool/libpool.la \ + random/librandom.la \ + scheduler/libscheduler.la \ + synchronizers/libsynchronizers.la \ + thread/libthread.la \ + time/libtime.la \ + timer/libtimer.la \ + shmem/libshmem.la \ + system/libsystem.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