From patchwork Fri Nov 24 13:00:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 119583 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp2141143edl; Fri, 24 Nov 2017 05:06:09 -0800 (PST) X-Google-Smtp-Source: AGs4zMYJzt+YvNvdZiM00+W6dGAb11rAHKTNd8v4VNpyY4etDDM7g/QEt8IOdeGxsyFDXzkFuu7b X-Received: by 10.200.55.121 with SMTP id p54mr45111290qtb.332.1511528769260; Fri, 24 Nov 2017 05:06:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511528769; cv=none; d=google.com; s=arc-20160816; b=f7nbyvPqrqWfN6l25keaBogLAp3NW/vW14sfojoGrQXsbs6bn2crYDjRLRlFe6iQTX 3CRGI7NsLQr4sZO6iOpTSrp47VSxvWlrkrGCRFbu0hSopTIfRSswqm59fxc88IIZwBPn 0wWLOuDXiIZnhKtPAHlHtlKw8Vp4IAVwxtyRIlsDMGeFRDG1YP8nA1vIdWp+ZOc4Ia78 AGb5nwSR0MbgI8xpW8iMb4eLm++/DshoGJw3429eTPRnzVLn910Ds3dJpAB2BjF2AS1Y fIKhSJs7DqPZa6w9RAP8Noi4hnImGLCxV7WKQjgJyYecWo5IfQrPe27FC3Uc7F1OSQgW PmGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=107mKd+z/nJGOqJ8T4xSQR1NBoz8vIvjXQAKfAiJ9xg=; b=R/fqGNPk1aibKtPEgS03qKWcr5PG66HAwVsf+cQ4WzLzwWsZPl3/H+d0t/H5+S+bDz 9918Zw6Cm/QyCH44GgU4t+H9r9c4ISHgoh5KNsP6QxfdXOwrmei+fcO9BO3ur5okzECA fUsrIn7mkHB8bogQiDAf6YtTr6KEuy5jospQZRHJx/MyfjkrrhcUzfSzAoUrCb+so+vQ Xn5XYZ9mdfb2dd01I/UTyvNQhNfGke8R9nLXmlIOYZQvTz60lYkxSdWcfFwhxNITnDe1 554rMx0usNMJMtzvBHP/8n/DEr1MfAHsLlyedjj8m6d5X8johGJdGhXCH6dCvCEiGdIJ jGbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id y40si13064703qtk.24.2017.11.24.05.06.09; Fri, 24 Nov 2017 05:06:09 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id EDFED60890; Fri, 24 Nov 2017 13:06:08 +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,FREEMAIL_FROM, 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 58CB76088A; Fri, 24 Nov 2017 13:02:44 +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 A2643608AC; Fri, 24 Nov 2017 13:02:34 +0000 (UTC) Received: from forward106o.mail.yandex.net (forward106o.mail.yandex.net [37.140.190.187]) by lists.linaro.org (Postfix) with ESMTPS id 233F06087F for ; Fri, 24 Nov 2017 13:00:40 +0000 (UTC) Received: from mxback9j.mail.yandex.net (mxback9j.mail.yandex.net [IPv6:2a02:6b8:0:1619::112]) by forward106o.mail.yandex.net (Yandex) with ESMTP id 7721878427A for ; Fri, 24 Nov 2017 16:00:38 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback9j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id caVFKNPjic-0cUGHRSv; Fri, 24 Nov 2017 16:00:38 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 6eODFnDx2l-0cIeF7tj; Fri, 24 Nov 2017 16:00:38 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Fri, 24 Nov 2017 16:00:34 +0300 Message-Id: <1511528437-25334-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511528437-25334-1-git-send-email-odpbot@yandex.ru> References: <1511528437-25334-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 309 Subject: [lng-odp] [PATCH v3 1/4] test: build: enable cunit output to xml 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: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Maxim Uvarov Signed-off-by: Maxim Uvarov --- /** Email created from pull request 309 (muvarov:devel/master_shippable2) ** https://github.com/Linaro/odp/pull/309 ** Patch: https://github.com/Linaro/odp/pull/309.patch ** Base sha: 5329e5211c447b9b823149baf76112eedfeb07fb ** Merge commit sha: 38997035d56dfa16e0d5d75e5619b47457b54638 **/ .gitignore | 3 +++ configure.ac | 1 + doc/.gitignore | 1 + test/Makefile.inc | 3 +++ test/common/odp_cunit_common.c | 20 ++++++++++++++++++++ test/common/odp_cunit_common.h | 3 +++ test/m4/validation.m4 | 9 +++++++++ 7 files changed, 40 insertions(+) create mode 100644 doc/.gitignore diff --git a/.gitignore b/.gitignore index b9c61424a..75ba2ac86 100644 --- a/.gitignore +++ b/.gitignore @@ -1,13 +1,16 @@ *.d *.gcda *.gcno +*.trs *.la *.lo +*.log *.o *.orig *.patch *.rej *.swp +*.xml *~ .deps/ .dirstamp diff --git a/configure.ac b/configure.ac index 95e316026..c4ce56e20 100644 --- a/configure.ac +++ b/configure.ac @@ -383,6 +383,7 @@ AC_MSG_RESULT([ Deprecated APIs: ${deprecated} debug: ${enable_debug} cunit: ${cunit_support} + cunit xml output: ${cunit_out_xml} test_vald: ${test_vald} test_perf: ${test_perf} test_perf_proc: ${test_perf_proc} diff --git a/doc/.gitignore b/doc/.gitignore new file mode 100644 index 000000000..d7ec32eaf --- /dev/null +++ b/doc/.gitignore @@ -0,0 +1 @@ +!*.xml diff --git a/test/Makefile.inc b/test/Makefile.inc index f7c0da214..086100b17 100644 --- a/test/Makefile.inc +++ b/test/Makefile.inc @@ -17,6 +17,9 @@ INCFLAGS = \ AM_CPPFLAGS = $(INCFLAGS) AM_CFLAGS = $(CUNIT_CFLAGS) +if cunit_out_xml +AM_CFLAGS += -DTEST_CUNIT_XML +endif AM_LDFLAGS = -L$(LIB) -static diff --git a/test/common/odp_cunit_common.c b/test/common/odp_cunit_common.c index 08bf1f264..34981b74e 100644 --- a/test/common/odp_cunit_common.c +++ b/test/common/odp_cunit_common.c @@ -1,3 +1,4 @@ + /* Copyright (c) 2014, Linaro Limited * All rights reserved. * @@ -7,6 +8,7 @@ #include "config.h" #include +#include #include #include "odp_cunit_common.h" #include @@ -14,6 +16,7 @@ static odph_odpthread_t thread_tbl[MAX_WORKERS]; static odp_instance_t instance; +extern const char *__progname; /* * global init/term functions which may be registered * defaults to functions performing odp init/term. @@ -291,13 +294,30 @@ static int cunit_update_suite(odp_suiteinfo_t *updated_sinfo) int odp_cunit_run(void) { int ret; +#ifdef TEST_CUNIT_XML + char name[255]; +#endif printf("\tODP API version: %s\n", odp_version_api_str()); printf("\tODP implementation name: %s\n", odp_version_impl_name()); printf("\tODP implementation version: %s\n", odp_version_impl_str()); +#ifdef TEST_CUNIT_XML + if (strlen(__progname)) { + snprintf(name, 255, "%s", __progname); + CU_set_output_filename(name); + } else { + /* forked processes do not have __progname */ + ret = readlink("/proc/self/exe", name, sizeof(name) - 1); + name[ret] = 0; + CU_set_output_filename(basename(name)); + } + + CU_automated_run_tests(); +#else CU_basic_set_mode(CU_BRM_VERBOSE); CU_basic_run_tests(); +#endif ret = CU_get_number_of_failure_records(); diff --git a/test/common/odp_cunit_common.h b/test/common/odp_cunit_common.h index 486a5ec51..6eaeed87d 100644 --- a/test/common/odp_cunit_common.h +++ b/test/common/odp_cunit_common.h @@ -17,6 +17,9 @@ #include #include "CUnit/Basic.h" #include "CUnit/TestDB.h" +#ifdef TEST_CUNIT_XML +#include +#endif #include #define MAX_WORKERS 32 /**< Maximum number of work threads */ diff --git a/test/m4/validation.m4 b/test/m4/validation.m4 index 65ba2aa2e..0dccd5d79 100644 --- a/test/m4/validation.m4 +++ b/test/m4/validation.m4 @@ -19,6 +19,14 @@ AS_IF([test "x$cunit_support" != "xno"], [cunit_support=no]) ])]) + +########################################################################## +AC_ARG_ENABLE([cunit_out_xml], + [AS_HELP_STRING([--enable-cunit_out_xml], + [include additional debugging code ] + [(set to 'full' to enable all --enable-*-debug-* options)])], + cunit_out_xml=yes, cunit_out_xml=no) + AS_IF([test "x$test_vald" = "xyes" -a "x$cunit_support" = "xno"], [AC_MSG_ERROR([Validation testsuite requested, but CUnit was not found])], [test "x$test_vald" = "xcheck" -a "x$cunit_support" = "xno"], @@ -27,6 +35,7 @@ AS_IF([test "x$test_vald" = "xyes" -a "x$cunit_support" = "xno"], [test "x$test_vald" != "xno"], [test_vald=yes]) AM_CONDITIONAL([cunit_support], [test "x$cunit_support" = "xyes"]) +AM_CONDITIONAL([cunit_out_xml], [test "x$cunit_out_xml" = "xyes"]) AM_CONDITIONAL([test_vald], [test "x$test_vald" = "xyes"]) AC_SUBST([CUNIT_CFLAGS]) From patchwork Fri Nov 24 13:00:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 119582 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp2139816edl; Fri, 24 Nov 2017 05:05:11 -0800 (PST) X-Google-Smtp-Source: AGs4zMYF9R/lvT0pHP98iGNLXtlkRyKqefyrlApTGcd7t5UBG/P3b0xAUVFzj3h/HsGgwBVes8k3 X-Received: by 10.55.188.6 with SMTP id m6mr5982530qkf.75.1511528711855; Fri, 24 Nov 2017 05:05:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511528711; cv=none; d=google.com; s=arc-20160816; b=NCuLs5+7bW9W/7/+AUK+qNWrr0YAnhc2sNnqXOtf4q/2HakEZTz6moKmkEOVMq4Bfv P9IDTTXC+/XosL8iHznREx2tQh/zh849TvFvGp+wI8T8SDfZVjSeIfz+FOor+VIAov7c rryT/x1IDYQ1Mkan8rMoyoQTWxP5c3vU3fHqf0KOASGUxFOf2Qnw+zu4qOyp2WtCZLnB WBkYoIzzRaXMwqrdIuj7XzyNv8uh/uy98owixhFIVlrL5ApcrWbObeHnvBT2BIa+9rXS P2GkP/1JXgC7Yg7H9aE4B/fhF+HxiSVf7IeTbLBde3TW/KTf4iIPd8aed9BjNZqJ1reQ TrFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=Jnh2BgW/KuXf01iI2rKaEKMR+5dpy/fIZzB/kw9MBZI=; b=vWvVLFnS1J4Sw97meuHQGDI13Dk7xvLnYshPdxX+TRMH/HTTWeqUOlG5TSLTAZF4mB w4zNfzyF89ABnaWEK/j5HnndhAH1PIDcfvG7pYiJRaSgUSUMGIgPPda7ftTQp0hv7x3W U0FidwH1mnrhOBOBqERtUB7d79bqvFTjvOr2MSO/4N1Pg9aOvXkdBO9EjlE4jx9zptCw MA/s0lpUQy5mCxggrqy6oncCv4TY7bvoRTFxIl+ZK8h9sI5RNUpbqLv3fQAVFgyoBW/e P6QRSlh5nWPdTZoyJNLLpV866EB2NNeugqG0X99h+h39f6gd3DENlafr0yL4GMHCFwFh 22Ew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id z7si6101194qta.265.2017.11.24.05.05.11; Fri, 24 Nov 2017 05:05:11 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 8E2E66089D; Fri, 24 Nov 2017 13:05:11 +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,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,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 1839760840; Fri, 24 Nov 2017 13:02:43 +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 2084960897; Fri, 24 Nov 2017 13:02:29 +0000 (UTC) Received: from forward104o.mail.yandex.net (forward104o.mail.yandex.net [37.140.190.179]) by lists.linaro.org (Postfix) with ESMTPS id 25EC26088A for ; Fri, 24 Nov 2017 13:00:40 +0000 (UTC) Received: from mxback3g.mail.yandex.net (mxback3g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:164]) by forward104o.mail.yandex.net (Yandex) with ESMTP id 10DC3702126 for ; Fri, 24 Nov 2017 16:00:39 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback3g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id Y4Tbh14CHh-0ckWbVOD; Fri, 24 Nov 2017 16:00:38 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 6eODFnDx2l-0cIqEKEV; Fri, 24 Nov 2017 16:00:38 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Fri, 24 Nov 2017 16:00:35 +0300 Message-Id: <1511528437-25334-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511528437-25334-1-git-send-email-odpbot@yandex.ru> References: <1511528437-25334-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 309 Subject: [lng-odp] [PATCH v3 2/4] linux-gen:test: shmem pass args to cunit 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: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Maxim Uvarov Pass args to cunit to make code commong with other tests. Signed-off-by: Maxim Uvarov --- /** Email created from pull request 309 (muvarov:devel/master_shippable2) ** https://github.com/Linaro/odp/pull/309 ** Patch: https://github.com/Linaro/odp/pull/309.patch ** Base sha: 5329e5211c447b9b823149baf76112eedfeb07fb ** Merge commit sha: 38997035d56dfa16e0d5d75e5619b47457b54638 **/ platform/linux-generic/test/validation/api/shmem/shmem_odp1.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/platform/linux-generic/test/validation/api/shmem/shmem_odp1.c b/platform/linux-generic/test/validation/api/shmem/shmem_odp1.c index 8cd89c8f7..d3b951ef7 100644 --- a/platform/linux-generic/test/validation/api/shmem/shmem_odp1.c +++ b/platform/linux-generic/test/validation/api/shmem/shmem_odp1.c @@ -76,9 +76,15 @@ odp_suiteinfo_t shmem_suites[] = { ODP_SUITE_INFO_NULL, }; -int main(void) +int main(int argc, char *argv[]) { - int ret = odp_cunit_register(shmem_suites); + int ret; + + /* parse common options: */ + if (odp_cunit_parse_options(argc, argv)) + return -1; + + ret = odp_cunit_register(shmem_suites); if (ret == 0) ret = odp_cunit_run(); From patchwork Fri Nov 24 13:00:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 119585 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp2142898edl; Fri, 24 Nov 2017 05:07:24 -0800 (PST) X-Google-Smtp-Source: AGs4zMZdu/sdDh5UvW58N8V7LLIoJUGNENsOXDFaaOGfOlkybwSsv93VTl2lfF7a7p6NbG0D+OsL X-Received: by 10.55.178.134 with SMTP id b128mr17322908qkf.21.1511528844584; Fri, 24 Nov 2017 05:07:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511528844; cv=none; d=google.com; s=arc-20160816; b=V9XnhlMWSl5b8o7KKEvzv5dSmCtYuByU2q5DXki4/vxSiM3JRecykk+sPuie24TP7x rejKM3JtLzoYl0bg/nlweHxJF02HS95DK7EyGJAR7lhA0TBqUvcWJuRy6z6+2ayYlwSy Kq2b9g4rH1WVsyn25Snnn5HjLQsEz2bUgKsH5jTA+V4kqdzuoLA+RbUSX2lnvTtPGpwY V+ZZFFdnBM4utQyjLZsKYN4j79VdE3Rc013YfiYBhdl1j3VZMvKhCuKuqJvtQy821OUx HwboXkf9Tgf9WnoQnQSZedW328TSezKJt/2U0AOTZQVj3HEeXZaL/6BQc00LUaHt27I3 XGRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=XrL/bw9fqzMnQ4uwyoLt5iq6T45vJP9QOGXuJ0OLCTg=; b=q1EA0WLiGDQkwtTVT6BMrbdT1Zu2BheX5ARoFanSioLeE7kn8ctcJFeNzHXzEEyKgC 0tY5soNsQCFgTMtDJ3wzeswX0j09mPPF4fAQoxiaugtOO8kHu9RmlSEj67k/6qICWk3H ufaKdR+g3m2nncReiY0dMlRYEu3pl94XoIIkWYfXDhVguaME4lTRkfhGo6MyJM5X1Rh3 xJHqWHI1nG0eY0k46TGH2ueJd/UCPYhkN6e9bK7CqLvEGrE1HT4S/xcqn8QpDJgby0aa XUuMH4Ur4J1bAS4HayL6fTCHnRb1PZ4sFMOJ+BhVZR5X4+1lpaR2C7NuJIjG01Ucqr2o h3dg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id r7si4569088qtd.259.2017.11.24.05.07.23; Fri, 24 Nov 2017 05:07:24 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id AC14E608A4; Fri, 24 Nov 2017 13:07:23 +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,FREEMAIL_FROM, 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 12CE4608D9; Fri, 24 Nov 2017 13:03:36 +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 5BAD6608D9; Fri, 24 Nov 2017 13:03:27 +0000 (UTC) Received: from forward106o.mail.yandex.net (forward106o.mail.yandex.net [37.140.190.187]) by lists.linaro.org (Postfix) with ESMTPS id CB2606088C for ; Fri, 24 Nov 2017 13:00:40 +0000 (UTC) Received: from mxback9g.mail.yandex.net (mxback9g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:170]) by forward106o.mail.yandex.net (Yandex) with ESMTP id B31577855A8 for ; Fri, 24 Nov 2017 16:00:39 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback9g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 2SFqpp43tD-0diedLMn; Fri, 24 Nov 2017 16:00:39 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 6eODFnDx2l-0dIe0cZr; Fri, 24 Nov 2017 16:00:39 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Fri, 24 Nov 2017 16:00:36 +0300 Message-Id: <1511528437-25334-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511528437-25334-1-git-send-email-odpbot@yandex.ru> References: <1511528437-25334-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 309 Subject: [lng-odp] [PATCH v3 3/4] test: cunit common fix header paths 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: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Maxim Uvarov Signed-off-by: Maxim Uvarov --- /** Email created from pull request 309 (muvarov:devel/master_shippable2) ** https://github.com/Linaro/odp/pull/309 ** Patch: https://github.com/Linaro/odp/pull/309.patch ** Base sha: 5329e5211c447b9b823149baf76112eedfeb07fb ** Merge commit sha: 38997035d56dfa16e0d5d75e5619b47457b54638 **/ test/common/odp_cunit_common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/common/odp_cunit_common.h b/test/common/odp_cunit_common.h index 6eaeed87d..e762a38c9 100644 --- a/test/common/odp_cunit_common.h +++ b/test/common/odp_cunit_common.h @@ -15,8 +15,8 @@ #include #include -#include "CUnit/Basic.h" -#include "CUnit/TestDB.h" +#include +#include #ifdef TEST_CUNIT_XML #include #endif From patchwork Fri Nov 24 13:00:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 119584 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp2142440edl; Fri, 24 Nov 2017 05:07:05 -0800 (PST) X-Google-Smtp-Source: AGs4zMaXiahDU1t2jPbV2ALkLcMAZb+JLuIY2Ww+cLJLxNXpcX8EB+jl9E/dc57HtNKhzboHBwlU X-Received: by 10.55.43.15 with SMTP id r15mr45912429qkh.42.1511528825449; Fri, 24 Nov 2017 05:07:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511528825; cv=none; d=google.com; s=arc-20160816; b=gUrxil9XQJbFp4UVFMYAbBNf+VooqVBJT0mxOm5n60ecNn8wq4QBHMnIZsUukbVKAP cOqHYWSUrNS1FbhwChlqXczyoXEJtNfLL6morR1+pGq6WF7YbLt50H5MnBvoVXMMeQEW 0qt7WY7rMBGe/YDQLExrqBoyVrWSogub2nA3XpKeTRh8O3BmvgzQxjmwcuTBuHrppyME 4SUshykRBYqeL9Cb28S3paFXvyESsvOhbVw31C115cW63gW0MzShpz+0xea1s7G2bvZV GEB1vtYAX1UM6Kvz1d5bjjvEI/7hzvUAH+psG+5bz+p/rY3GMs3ccVeV8jVm6kPmz2/6 tkTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=uXS7hHMGl9MTBQT7uuyOXJAo5i3K0qdnR1IJqejW9bM=; b=nyXB6spnbRh+AJoajsMgxb7STxLkhACWNq8NH8qovti3c9UdB4B8bAGxg5eUy4i3T+ lt86kVhm3uJ/4jzyOTDuxNmO0yfs07Mm6gy0gWK+M7kiiItvpZ5wpEEfbotIuZWY68f5 eil7r8qMSRJuu+yvcisNvUOow4Eb4fsWTFiyeTBUeLkxbstbyab9LcGpoydnedccZjTY 8r71QTYVvm2BxxoqKh8+hY3KC2HTA9VqWBou/8CmOeQKKaLjvS1DUdVA2DaxotQI1Jy6 4PQ0lxiC5Q8y11G19EgFHUuYay85cHna4DyAGdQFJVI7A0jmFhBP1w1c2lyS7dXQobRp bznA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id o70si13538297qki.466.2017.11.24.05.07.04; Fri, 24 Nov 2017 05:07:05 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id C3B2E608AA; Fri, 24 Nov 2017 13:07:04 +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,FREEMAIL_FROM, 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 CCA916083F; Fri, 24 Nov 2017 13:03:32 +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 4CAD2608DC; Fri, 24 Nov 2017 13:03:24 +0000 (UTC) Received: from forward101o.mail.yandex.net (forward101o.mail.yandex.net [37.140.190.181]) by lists.linaro.org (Postfix) with ESMTPS id DF1DE60879 for ; Fri, 24 Nov 2017 13:00:41 +0000 (UTC) Received: from mxback8o.mail.yandex.net (mxback8o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::22]) by forward101o.mail.yandex.net (Yandex) with ESMTP id 3A03A13463DD for ; Fri, 24 Nov 2017 16:00:40 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback8o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id XeIRgvtDLE-0eVepfZC; Fri, 24 Nov 2017 16:00:40 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 6eODFnDx2l-0dIeC2vF; Fri, 24 Nov 2017 16:00:39 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Fri, 24 Nov 2017 16:00:37 +0300 Message-Id: <1511528437-25334-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511528437-25334-1-git-send-email-odpbot@yandex.ru> References: <1511528437-25334-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 309 Subject: [lng-odp] [PATCH v3 4/4] shipabble: use xml statistics 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: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Maxim Uvarov Signed-off-by: Maxim Uvarov --- /** Email created from pull request 309 (muvarov:devel/master_shippable2) ** https://github.com/Linaro/odp/pull/309 ** Patch: https://github.com/Linaro/odp/pull/309.patch ** Base sha: 5329e5211c447b9b823149baf76112eedfeb07fb ** Merge commit sha: 38997035d56dfa16e0d5d75e5619b47457b54638 **/ .shippable.yml | 8 +++++++- scripts/Dockerfile | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.shippable.yml b/.shippable.yml index 9fbb29190..1a2959dd2 100644 --- a/.shippable.yml +++ b/.shippable.yml @@ -36,9 +36,15 @@ build: - sudo mount -t hugetlbfs nodev /mnt/huge - mkdir -p /dev/shm/odp - ./bootstrap - - ./configure --disable-test-perf + - ./configure --disable-test-perf --enable-cunit_out_xml - make - sudo env ODP_SHM_DIR=/dev/shm/odp make check + - wget https://raw.githubusercontent.com/shawnliang/cunit-to-junit/master/cunit-to-junit.xsl + - | + for FILE in `find . -name "*.xml"`; do + bname=`basename $FILE` + xsltproc cunit-to-junit.xsl $FILE > $SHIPPABLE_BUILD_DIR/shippable/testresults/${bname} + done on_failure: - cat config.log diff --git a/scripts/Dockerfile b/scripts/Dockerfile index b15282aaf..7e117971d 100644 --- a/scripts/Dockerfile +++ b/scripts/Dockerfile @@ -20,7 +20,8 @@ RUN sudo apt-get update && sudo apt-get install -yy \ libtool \ linux-headers-`uname -r` \ mscgen \ - ruby-dev + ruby-dev \ + xsltproc RUN sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10 RUN sudo ln -s /usr/bin/clang-3.8 /usr/bin/clang