From patchwork Mon Sep 28 16:03:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 54204 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by patches.linaro.org (Postfix) with ESMTPS id 6FFB022DEE for ; Mon, 28 Sep 2015 14:04:53 +0000 (UTC) Received: by wicgb1 with SMTP id gb1sf40216510wic.3 for ; Mon, 28 Sep 2015 07:04:52 -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=Pys2YAgQquGDh0A2jx3LVboOb1v1jS6JEALoQjykKR4=; b=eJuMpUUwfTSoyZTQ91RBWPtINvsHFiV3B2PsV3CAVt8ST9nTRdMQKPxtLm+TTOENx3 K3L0mjjgFGcH1DSrxayrXrpHIiOneGe6qeV8/3FkmwMSCp/OJDAM/fYdot9VmsIDbK45 RS0lQO8nHyPxgWrmy+ljjAePs5lNh/k1o1gnVkk1xYka52Z2hNMF/XTeH+/GPFyi5mhX H6ffhDwJRSAgK6ruLLrXd1WHdfB2lM+dmIvnE++GMFavEjJiJ35vCfG+8CNZ//LBDXvf YhkiBHT717Y7HprJq68m8Zo1tPyS9+2ktPU9s2zq9+WAhJ2TnDMcSzz5KMRJRXq6Ljue 0rWw== X-Gm-Message-State: ALoCoQmSX6pStp7B9uvi4FqNG96f7gV07FwgVSdO2zIVJIyiPvZC00LdcQfY+cLkF2mNDITTvcfY X-Received: by 10.112.54.197 with SMTP id l5mr3197733lbp.21.1443449091234; Mon, 28 Sep 2015 07:04:51 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.213.82 with SMTP id m79ls363749lfg.19.gmail; Mon, 28 Sep 2015 07:04:51 -0700 (PDT) X-Received: by 10.112.62.137 with SMTP id y9mr5450258lbr.63.1443449091031; Mon, 28 Sep 2015 07:04:51 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id xu2si8309656lbb.104.2015.09.28.07.04.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Sep 2015 07:04:51 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by laclj5 with SMTP id lj5so67378238lac.3 for ; Mon, 28 Sep 2015 07:04:50 -0700 (PDT) X-Received: by 10.112.51.142 with SMTP id k14mr4615895lbo.76.1443449090893; Mon, 28 Sep 2015 07:04:50 -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.59.35 with SMTP id w3csp1576671lbq; Mon, 28 Sep 2015 07:04:49 -0700 (PDT) X-Received: by 10.50.41.1 with SMTP id b1mr16806190igl.3.1443449089267; Mon, 28 Sep 2015 07:04:49 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id i124si12302672ioi.147.2015.09.28.07.04.48; Mon, 28 Sep 2015 07:04:49 -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 06A07619E7; Mon, 28 Sep 2015 14:04:48 +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 CB0BD619CD; Mon, 28 Sep 2015 14:04:19 +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 36982619D7; Mon, 28 Sep 2015 14:04:05 +0000 (UTC) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) by lists.linaro.org (Postfix) with ESMTPS id 44024619C0 for ; Mon, 28 Sep 2015 14:03:59 +0000 (UTC) Received: by labzv5 with SMTP id zv5so16248382lab.1 for ; Mon, 28 Sep 2015 07:03:57 -0700 (PDT) X-Received: by 10.25.79.84 with SMTP id d81mr3675566lfb.40.1443449037791; Mon, 28 Sep 2015 07:03:57 -0700 (PDT) Received: from erachmi-ericsson.ki.sw.ericsson.se (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by smtp.gmail.com with ESMTPSA id z204sm2205772lfd.1.2015.09.28.07.03.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Sep 2015 07:03:57 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Mon, 28 Sep 2015 18:03:49 +0200 Message-Id: <1443456229-35457-1-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.1.4 X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv3] 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.45 as permitted sender) smtp.mailfrom=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 libtestodp.la contains all platform agnostic test functions and symbols defined testodp.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 since v2: changed lib name from lib to libtest Also changed the superlib name to libtestodp, for consistency 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 testodp.h file... Not optimal but best I could do. Automake gurus are welcome to improve it :-) test/validation/Makefile.am | 22 ++++++++++++++++++++++ test/validation/testodp.h | 29 +++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 test/validation/testodp.h diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index 56ddd64..8c3dc92 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 = libtestodp.la +libtestodp_la_SOURCES = +libtestodp_la_LIBADD = buffer/libtestbuffer.la \ + classification/libtestclassification.la \ + cpumask/libtestcpumask.la \ + crypto/libtestcrypto.la \ + errno/libtesterrno.la \ + init/libtestinit.la \ + packet/libtestpacket.la \ + pktio/libtestpktio.la \ + pool/libtestpool.la \ + queue/libtestqueue.la \ + random/libtestrandom.la \ + scheduler/libtestscheduler.la \ + shmem/libtestshmem.la \ + synchronizers/libtestsynchronizers.la \ + system/libtestsystem.la \ + thread/libtestthread.la \ + time/libtesttime.la \ + timer/libtesttimer.la diff --git a/test/validation/testodp.h b/test/validation/testodp.h new file mode 100644 index 0000000..33a3e07 --- /dev/null +++ b/test/validation/testodp.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