From patchwork Thu Jul 2 15:43:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50602 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BFDD8214B3 for ; Thu, 2 Jul 2015 15:43:48 +0000 (UTC) Received: by lbbui3 with SMTP id ui3sf14337545lbb.2 for ; Thu, 02 Jul 2015 08:43:47 -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:in-reply-to:references: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=7kn8tPl8yYJeYYuersrYNvdrWkXn7VZtNsdjOGI5mnc=; b=L19X1zREQ3QHrQDMcmOhTKNCPAVc5pCNiIMwNy0VkMuDflOiIwEELLCcC7f4R14EGt TbPsHiEraSD5brJMj1xzCX7R77QajIUn7mkx8rAs+9fJwPK+T6z7/ByuVPEUyk54uzpT 16L3bEXSpryY26hdvQkPdhXkXKHWFxxE89dxZ4rI/8uRP0O+NJi67uaRRQLH8Ze1NN/1 j3nYXnAfgdFNDQEA9IOqEXLScCkuVRsPxliSD+P1YTukkl0+fiqhFMSC6aTWUDjPHGpG IrWILZyIJygpm89xHgkx4JpONbUvBmaBjCJKplnWr+0t2MkuDVCAqSwdrTobgoNybZtd 939A== X-Gm-Message-State: ALoCoQlN8+g+dZcF+ykeq5rzGNi7hIqVSzhoa3h26p4KT9yxqPEoTgoyayNaJ1PzyzVCQVybkDGy X-Received: by 10.180.35.162 with SMTP id i2mr18041967wij.6.1435851827731; Thu, 02 Jul 2015 08:43:47 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.74 with SMTP id k10ls378702laf.30.gmail; Thu, 02 Jul 2015 08:43:47 -0700 (PDT) X-Received: by 10.152.206.10 with SMTP id lk10mr31306030lac.90.1435851827561; Thu, 02 Jul 2015 08:43:47 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id gz7si4731609lac.176.2015.07.02.08.43.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Jul 2015 08:43:47 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by lagc2 with SMTP id c2so63928270lag.3 for ; Thu, 02 Jul 2015 08:43:47 -0700 (PDT) X-Received: by 10.112.131.98 with SMTP id ol2mr31864099lbb.56.1435851827437; Thu, 02 Jul 2015 08:43:47 -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.108.230 with SMTP id hn6csp564011lbb; Thu, 2 Jul 2015 08:43:46 -0700 (PDT) X-Received: by 10.140.152.201 with SMTP id 192mr46234008qhy.26.1435851825969; Thu, 02 Jul 2015 08:43:45 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 192si6763954qhv.0.2015.07.02.08.43.44; Thu, 02 Jul 2015 08:43:45 -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 AE1E861F9E; Thu, 2 Jul 2015 15:43:44 +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=-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 ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 1F9DA61F99; Thu, 2 Jul 2015 15:43:40 +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 8EA1B61F99; Thu, 2 Jul 2015 15:43:37 +0000 (UTC) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com [209.85.217.180]) by lists.linaro.org (Postfix) with ESMTPS id 1DB5F61F6E for ; Thu, 2 Jul 2015 15:43:36 +0000 (UTC) Received: by lbcui10 with SMTP id ui10so34407406lbc.0 for ; Thu, 02 Jul 2015 08:43:34 -0700 (PDT) X-Received: by 10.112.151.178 with SMTP id ur18mr31575892lbb.59.1435851814901; Thu, 02 Jul 2015 08:43:34 -0700 (PDT) Received: from erachmi-VirtualBox.ki.sw.ericsson.se (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by mx.google.com with ESMTPSA id ap9sm1506016lbd.21.2015.07.02.08.43.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Jul 2015 08:43:34 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Thu, 2 Jul 2015 17:43:25 +0200 Message-Id: <1435851805-14524-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435851805-14524-1-git-send-email-christophe.milard@linaro.org> References: <1435851805-14524-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH] validation: renaming system to time 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.47 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 Module "system" (which just contained time tests) is now logicaly renamed "time". The renaming includes files and function names, to match test conventions. Signed-off-by: Christophe Milard Reviewed-by: Stuart Haslam --- configure.ac | 2 +- platform/linux-generic/test/Makefile.am | 4 ++-- test/validation/Makefile.am | 4 ++-- test/validation/system/.gitignore | 2 -- test/validation/time/.gitignore | 2 ++ test/validation/{system => time}/Makefile.am | 10 ++++----- test/validation/{system/system.c => time/time.c} | 24 +++++++++++----------- test/validation/{system/system.h => time/time.h} | 2 +- .../{system/system_main.c => time/time_main.c} | 4 ++-- 9 files changed, 27 insertions(+), 27 deletions(-) delete mode 100644 test/validation/system/.gitignore create mode 100644 test/validation/time/.gitignore rename test/validation/{system => time}/Makefile.am (11%) rename test/validation/{system/system.c => time/time.c} (72%) rename test/validation/{system/system.h => time/time.h} (83%) rename test/validation/{system/system_main.c => time/time_main.c} (75%) diff --git a/configure.ac b/configure.ac index d77b909..dbf7d99 100644 --- a/configure.ac +++ b/configure.ac @@ -317,8 +317,8 @@ AC_CONFIG_FILES([Makefile test/validation/random/Makefile test/validation/scheduler/Makefile test/validation/synchronizers/Makefile - test/validation/system/Makefile test/validation/thread/Makefile + test/validation/time/Makefile test/miscellaneous/Makefile ]) diff --git a/platform/linux-generic/test/Makefile.am b/platform/linux-generic/test/Makefile.am index 4a112e9..e9c00fe 100644 --- a/platform/linux-generic/test/Makefile.am +++ b/platform/linux-generic/test/Makefile.am @@ -18,8 +18,8 @@ TESTS = pktio/pktio_run \ ${top_builddir}/test/validation/random/random_main$(EXEEXT) \ ${top_builddir}/test/validation/scheduler/scheduler_main$(EXEEXT) \ ${top_builddir}/test/validation/synchronizers/synchronizers_main$(EXEEXT) \ - ${top_builddir}/test/validation/system/system_main$(EXEEXT) \ - ${top_builddir}/test/validation/thread/thread_main$(EXEEXT) + ${top_builddir}/test/validation/thread/thread_main$(EXEEXT) \ + ${top_builddir}/test/validation/time/time_main$(EXEEXT) SUBDIRS = $(ODP_MODULES) endif diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index 9b151ba..7add2e6 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -36,7 +36,7 @@ ODP_MODULES = buffer \ random \ scheduler \ synchronizers \ - system \ - thread + thread \ + time SUBDIRS = common $(ODP_MODULES) diff --git a/test/validation/system/.gitignore b/test/validation/system/.gitignore deleted file mode 100644 index 3646b59..0000000 --- a/test/validation/system/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -system_main -libsystem.a diff --git a/test/validation/time/.gitignore b/test/validation/time/.gitignore new file mode 100644 index 0000000..0bc4759 --- /dev/null +++ b/test/validation/time/.gitignore @@ -0,0 +1,2 @@ +time_main +libtime.a diff --git a/test/validation/system/Makefile.am b/test/validation/time/Makefile.am similarity index 11% rename from test/validation/system/Makefile.am rename to test/validation/time/Makefile.am index f68fe77..fb53959 100644 --- a/test/validation/system/Makefile.am +++ b/test/validation/time/Makefile.am @@ -1,8 +1,8 @@ include ../Makefile.inc -noinst_LIBRARIES = libsystem.a -libsystem_a_SOURCES = system.c +noinst_LIBRARIES = libtime.a +libtime_a_SOURCES = time.c -bin_PROGRAMS = system_main$(EXEEXT) -dist_system_main_SOURCES = system_main.c -system_main_LDADD = libsystem.a $(LIBCUNIT_COMMON) $(LIBODP) +bin_PROGRAMS = time_main$(EXEEXT) +dist_time_main_SOURCES = time_main.c +time_main_LDADD = libtime.a $(LIBCUNIT_COMMON) $(LIBODP) diff --git a/test/validation/system/system.c b/test/validation/time/time.c similarity index 72% rename from test/validation/system/system.c rename to test/validation/time/time.c index 5e2d050..0aac599 100644 --- a/test/validation/system/system.c +++ b/test/validation/time/time.c @@ -6,13 +6,13 @@ #include #include "odp_cunit_common.h" -#include "system.h" +#include "time.h" #define TOLERANCE 1 #define BUSY_LOOP_CNT 100 /* check that a cycles difference gives a reasonable result */ -static void system_test_odp_cycles_diff(void) +static void time_test_odp_cycles_diff(void) { /* volatile to stop optimization of busy loop */ volatile int count = 0; @@ -32,7 +32,7 @@ static void system_test_odp_cycles_diff(void) } /* check that a negative cycles difference gives a reasonable result */ -static void system_test_odp_cycles_negative_diff(void) +static void time_test_odp_cycles_negative_diff(void) { uint64_t diff, cycles1, cycles2; @@ -43,7 +43,7 @@ static void system_test_odp_cycles_negative_diff(void) } /* check that related conversions come back to the same value */ -static void system_test_odp_time_conversion(void) +static void time_test_odp_time_conversion(void) { uint64_t ns1, ns2, cycles; uint64_t upper_limit, lower_limit; @@ -61,19 +61,19 @@ static void system_test_odp_time_conversion(void) CU_ASSERT((ns2 <= upper_limit) && (ns2 >= lower_limit)); } -CU_TestInfo system_suite_time[] = { - {"cycles diff", system_test_odp_cycles_diff}, - {"negative diff", system_test_odp_cycles_negative_diff}, - {"conversion", system_test_odp_time_conversion}, +CU_TestInfo time_suite_time[] = { + {"cycles diff", time_test_odp_cycles_diff}, + {"negative diff", time_test_odp_cycles_negative_diff}, + {"conversion", time_test_odp_time_conversion}, CU_TEST_INFO_NULL }; -static CU_SuiteInfo system_suites[] = { - {"Time", NULL, NULL, NULL, NULL, system_suite_time}, +static CU_SuiteInfo time_suites[] = { + {"Time", NULL, NULL, NULL, NULL, time_suite_time}, CU_SUITE_INFO_NULL }; -int system_main(void) +int time_main(void) { - return odp_cunit_run(system_suites); + return odp_cunit_run(time_suites); } diff --git a/test/validation/system/system.h b/test/validation/time/time.h similarity index 83% rename from test/validation/system/system.h rename to test/validation/time/time.h index 59fd468..30c2fdc 100644 --- a/test/validation/system/system.h +++ b/test/validation/time/time.h @@ -4,4 +4,4 @@ * SPDX-License-Identifier: BSD-3-Clause */ -int system_main(void); +int time_main(void); diff --git a/test/validation/system/system_main.c b/test/validation/time/time_main.c similarity index 75% rename from test/validation/system/system_main.c rename to test/validation/time/time_main.c index 460b635..36cc1dc 100644 --- a/test/validation/system/system_main.c +++ b/test/validation/time/time_main.c @@ -4,9 +4,9 @@ * SPDX-License-Identifier: BSD-3-Clause */ -#include "system.h" +#include "time.h" int main(void) { - return system_main(); + return time_main(); }