From patchwork Mon Nov 27 14:00:06 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: 119711 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp308692qgn; Mon, 27 Nov 2017 06:02:49 -0800 (PST) X-Google-Smtp-Source: AGs4zMZ4dzfqCbQ4WDjdi3+vYTpMTTkpnM4Ie/RcYiLwk8MgzLnJcN8DUwTRLAUJGKI76xQTHGLq X-Received: by 10.55.20.105 with SMTP id e102mr59161616qkh.89.1511791369809; Mon, 27 Nov 2017 06:02:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511791369; cv=none; d=google.com; s=arc-20160816; b=CLmkC2H2s8oNZRsmhqkBK4M8jVLI+wW9GZz6dFCc1VQzp5CsaQy3BD2DenXtayy53m 5yd480J6LuRUHVa6PXx3J4qK0evT4LLLa0nHSGqy5VuQcLXKgNuOZAgIZxJMuIkr+CX0 xglAeGB5krx4wXuLRl6hmQ/Iir7K8xXflrhv5KF9BgUN1o4gYfg3trrQ0qu+/q2LK/Rc vnkkm3LHGhtw1UXYSKaiRht4lWDIHiB+sw9NQ+qsgiH1IrrYpdxYFQOheaR3vsLapohh heef8bY0VRg2Eo5Gw9oRjWl6Jzrma7zghigl/nPufQuJSZeSGHpkXY632sdrgfqvDf3v xZPA== 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=E7Am8LYGpfxRiibg6s8RO/gvqCBlef5e77We9oXKO88=; b=HIKHPWwSZM7eVliPXvcO/xe7ZXsdcOMFKe6LG8HG4OY8vbyQgKU5D28qy5qK0Z5iK3 JPP2CX1btR9/5OX4mJoaWQ39eJg12hXItjn1ZFb6P/qOY7C6Nxg7yhk93EbCZ+aAku+K gPD7DxR1vqDJzrxJNTF5ENTbBwwfgytQG80ccWlvamt2z4hUhjxvaSxksw7kICwcR6l9 D/LTI7o+lcMMfAKYCr+VCNzejSwPKh232ZOwN34gBvJ0wWXgvpJAr23XA6WdvoDN6Brt MG3Jt1EhWCjaIUT3R3UOi1OlAhitnLRyFIko4EHCBMaBr2dE947lsVybyYzc2PfHsbhM qDPQ== 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 t69si388458qka.111.2017.11.27.06.02.44; Mon, 27 Nov 2017 06:02:49 -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 573FF60836; Mon, 27 Nov 2017 14:02:44 +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 91E6A60688; Mon, 27 Nov 2017 14:02:23 +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 D110F606A7; Mon, 27 Nov 2017 14:02:17 +0000 (UTC) Received: from forward106j.mail.yandex.net (forward106j.mail.yandex.net [5.45.198.249]) by lists.linaro.org (Postfix) with ESMTPS id 4F025608DF for ; Mon, 27 Nov 2017 14:00:15 +0000 (UTC) Received: from mxback10g.mail.yandex.net (mxback10g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:171]) by forward106j.mail.yandex.net (Yandex) with ESMTP id 473AC1801C20 for ; Mon, 27 Nov 2017 17:00:12 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback10g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id bZt8PubUmo-0Cbibnpc; Mon, 27 Nov 2017 17:00:12 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id VVd7ThpHX4-0Bj89XXw; Mon, 27 Nov 2017 17:00:11 +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: Mon, 27 Nov 2017 17:00:06 +0300 Message-Id: <1511791209-5993-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511791209-5993-1-git-send-email-odpbot@yandex.ru> References: <1511791209-5993-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 309 Subject: [lng-odp] [PATCH v4 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: ff9199054bf3859c068a6c7702c0dfae9dd7c629 **/ .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 Mon Nov 27 14:00:07 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: 119712 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp310500qgn; Mon, 27 Nov 2017 06:03:54 -0800 (PST) X-Google-Smtp-Source: AGs4zMaIyR2K6gzn5KW/mPXcDih1fX/tM1zCVnopJGzel8VgogBXwzgmLmGOCmlmWtlqGwm+UBSq X-Received: by 10.55.41.36 with SMTP id p36mr55467421qkh.251.1511791434306; Mon, 27 Nov 2017 06:03:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511791434; cv=none; d=google.com; s=arc-20160816; b=fFlerkn0h4UEIVjQtouovZA4Y/M4fSxWqEym5lThifoeUFRTVSmQEsvBeLxOmOmolu W1Cx8z08Pp0Btwqmc1fS5xOJQ3DWMvri8+Nw3IfDqNGAIFDbXwgQbCmR3RsEYLHe7CgW bYe6turBc8sUq5qlPtCKiVNShMVA9yae7SZt7As0gLkmxQ+LVXgCKb1tIjVj1VFTlxZo 36HHyG7ZwciJiLS5pLZjBORDXNe/Dk0Ey5M596Ol8qyAx5e/rrunxah8vmrXKoCW+CTR S85dhXpjW6s1sH3ZkDFXPvuN710fkbdypA6o16Ldi78ZyOs7VTn5jTV0I5Ra3y4EHGI5 pGjA== 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=Vh2j4R/YXjpPHcBFqg8IUavdE1wmHMIe06D5QRQndGg=; b=0YnRTaHbZsjAziee73N4ejSgOPiA0SHHDixFB9wZKoswRxLUhdOXiI+mkZP/5KMG6D emuJNDceQrrJt+JcFrQeok0/riaXhb+FLmp0BRSg576wOG6G/D79/A9NkLniMk25SguG iPm4DxJXRNnIAKlYcpKFAK29cS8oxRKBCehQ2j1+ks+P8Hl3Z12QV8U3Yd6yA8cPnblO 0aTsbhuHHoMHXYXV+Gcxlhh6FBwGib3KDvTUklx6IUrMPm3LRNbsSzNKkkG1XlYXYvM9 ERINfYRN4bwbA1i0vGw+khWuvp2pEkzMyrQwi8EyEennJ8NVLVIMGSokajk62KhrnBEC o1tA== 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 c15si6798605qtk.86.2017.11.27.06.03.48; Mon, 27 Nov 2017 06:03:54 -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 18DAC606A4; Mon, 27 Nov 2017 14:03: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=-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 391CA604C8; Mon, 27 Nov 2017 14:02:34 +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 070CB60688; Mon, 27 Nov 2017 14:02:23 +0000 (UTC) Received: from forward106o.mail.yandex.net (forward106o.mail.yandex.net [37.140.190.187]) by lists.linaro.org (Postfix) with ESMTPS id F077A608DD for ; Mon, 27 Nov 2017 14:00:14 +0000 (UTC) Received: from mxback1j.mail.yandex.net (mxback1j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10a]) by forward106o.mail.yandex.net (Yandex) with ESMTP id 19AAC781BB5 for ; Mon, 27 Nov 2017 17:00:13 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback1j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id CaIfyVw7sB-0DcKefCJ; Mon, 27 Nov 2017 17:00:13 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id VVd7ThpHX4-0Cj0HYG4; Mon, 27 Nov 2017 17:00:12 +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: Mon, 27 Nov 2017 17:00:07 +0300 Message-Id: <1511791209-5993-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511791209-5993-1-git-send-email-odpbot@yandex.ru> References: <1511791209-5993-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 309 Subject: [lng-odp] [PATCH v4 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: ff9199054bf3859c068a6c7702c0dfae9dd7c629 **/ 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 Mon Nov 27 14:00:08 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: 119714 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp312011qgn; Mon, 27 Nov 2017 06:04:50 -0800 (PST) X-Google-Smtp-Source: AGs4zMa1QmD1FIb/uxfTwiQFAuidjuKIZtI+DLJOVLFn8jND8Hgpjd2o1brfFptMZDdIde1WC5Sp X-Received: by 10.37.129.210 with SMTP id n18mr24882422ybm.96.1511791490181; Mon, 27 Nov 2017 06:04:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511791490; cv=none; d=google.com; s=arc-20160816; b=t2YHG3tV1sVohEgFqqwxBk2AcXiMj61VYTlTp7Vm0uEMe0pri6ahI/axYxszImyOLy EbhZiCT/DbND533OkCoP2gqMw5BAY9UJY8oHBRdsRXrajYgvu8XGwYkE5/vj32fms3qN FVaU0p/cEWIG9NK5gHI48bMfiVFMbfX7UlxqmTibdQABFRz5JEcBGsex1k5RX3c7XtQm nSDCA+lsYda3vAFl2YfeyvU/JPuEpXWKaxTAaymhEU6SyD1B91dab+fG26c308B5gDgq YBISUPivOKWYkLjoqmJ07J+RclbtStft5BTqth1TgGXJ8Od6Is5163QbpX5cyJ/p+FPb 9AbQ== 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=gFfZfyLo9xbCVtHJ0qkRQm61uCUyMADgKqD50oX6pX8=; b=CLNOpUv9XRGye+VIzvEQnywRnaW0JZjYLRONvnjKPUxpB5pY7jSWTwrN2eJd5XivDd 23LcJSP3TsOpe8mVImF9YltEopWjXXDy+eWw+dC8yDLrfMQytnMKuZU3fhjQp0mn5+xe GahMQQ04iLlPtdtSt0OOd/qLBMhwMT9O77xXF3CUEXgIBFvc8mv+uRcnJOMcX4b409Jc F9dSfHZUssozjU642pIEOZW98bAF3dROSqVYvwD9hKW/fsWKMVncpR8j/XMWEVy8sqbG UzyGIdfdiZKNjG0bCzFRmvN8c1Futiv7WfAhM4joHcjuko1CttAOWbSEj7YL/UnEcCZP 7RmA== 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 d64si5669712ybh.764.2017.11.27.06.04.49; Mon, 27 Nov 2017 06:04:50 -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 BFCEF608DE; Mon, 27 Nov 2017 14:04:49 +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 0F01760688; Mon, 27 Nov 2017 14:02:49 +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 64F7C6073F; Mon, 27 Nov 2017 14:02: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 7FE2D608E0 for ; Mon, 27 Nov 2017 14:00:15 +0000 (UTC) Received: from mxback10o.mail.yandex.net (mxback10o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::24]) by forward101o.mail.yandex.net (Yandex) with ESMTP id D24AE134312A for ; Mon, 27 Nov 2017 17:00:13 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback10o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id IQ509M4WQo-0DeOKFPI; Mon, 27 Nov 2017 17:00:13 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id VVd7ThpHX4-0DjOr2Sc; Mon, 27 Nov 2017 17:00:13 +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: Mon, 27 Nov 2017 17:00:08 +0300 Message-Id: <1511791209-5993-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511791209-5993-1-git-send-email-odpbot@yandex.ru> References: <1511791209-5993-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 309 Subject: [lng-odp] [PATCH v4 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: ff9199054bf3859c068a6c7702c0dfae9dd7c629 **/ 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 Mon Nov 27 14:00:09 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: 119715 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp313982qgn; Mon, 27 Nov 2017 06:06:07 -0800 (PST) X-Google-Smtp-Source: AGs4zMZZyUEBJZ+Z7oddHxV0zJZhqSBMaQ+Ons995wy+mvTbfRunqrP1hkeXeF/p6qgyvXGHmxg9 X-Received: by 10.200.11.203 with SMTP id p11mr57243875qti.124.1511791567853; Mon, 27 Nov 2017 06:06:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511791567; cv=none; d=google.com; s=arc-20160816; b=D/IewZmSXmv2Y36eLEWI8Cuz8II+qi4uV1zKQCkXwtpvQee9K6+ikf947alHj+n7FM XUxrjKNpif48XMeXMLkR9gN90iYL+cy1O9rTIYGqVUKT0UksUeWLdNo/kB0F6Ca+mN6I T+Cb8Wvra7PmzhX/0h/N98gWIKuNYH31Rb/xgs/xUiO/BEtdo5UhYrMMV+T0l9U1Lz0/ 814YXqWHeQY+RPTGpRpl+kgqZ3mJ/YxHzi5YTw+OHY6cKH+eMONwy0+zkhYw0/6/GIlZ P+hMNsmRPcTx6tLmPKYLw03qD/TxTpRQ88JQznhWnRoJF0Rk8ujm8JRZFoe0Y/Lk367b Dqzw== 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=u8Qj4nAlS05yZPwNxL+X4wHXuuRLLwtHcTtp/wfEvPY=; b=yb80bKtO3CNCFoOAPBZkZR1TZF+9B8h4IAjyJC1U4cSvW0/JslSNo5vHfh19XbSvAh FQ0YOv1Adf1ZylVIHCOlySRN0+D1aV53Ywx3Gt5BEUNLTUsYMUR+TN6qEvcZKM/D5bFi iwwryCJHeXtji7vOhrjTExa8SQZuMWrR+Sbm01O32+bU1vIl92z66LFYEzNkawMiLr3J gUzRbjpSqlD2pmSBTUpYVl5poDe6fcU6gq5UX3UyNyQDtozUNe/rVL+sL7xOuxySkZAN dgIGUJoXxwj23fsCIZK2MWdTSsXpyVDa605th4sOttUUBW5pnfUUcZmTSG7Sf5vXKsFX 7WKA== 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 o15si2143034qto.231.2017.11.27.06.06.07; Mon, 27 Nov 2017 06:06:07 -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 5C1FD608A7; Mon, 27 Nov 2017 14:06:07 +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 C7664608C2; Mon, 27 Nov 2017 14:03:02 +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 C2D416079A; Mon, 27 Nov 2017 14:02:24 +0000 (UTC) Received: from forward104j.mail.yandex.net (forward104j.mail.yandex.net [5.45.198.247]) by lists.linaro.org (Postfix) with ESMTPS id 02ED4608DE for ; Mon, 27 Nov 2017 14:00:16 +0000 (UTC) Received: from mxback7o.mail.yandex.net (mxback7o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::21]) by forward104j.mail.yandex.net (Yandex) with ESMTP id 3CB1143FD9 for ; Mon, 27 Nov 2017 17:00:14 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback7o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 01sPI7SaRq-0EkKGedf; Mon, 27 Nov 2017 17:00:14 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id VVd7ThpHX4-0DjiZGNC; Mon, 27 Nov 2017 17:00:13 +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: Mon, 27 Nov 2017 17:00:09 +0300 Message-Id: <1511791209-5993-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511791209-5993-1-git-send-email-odpbot@yandex.ru> References: <1511791209-5993-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 309 Subject: [lng-odp] [PATCH v4 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: ff9199054bf3859c068a6c7702c0dfae9dd7c629 **/ .shippable.yml | 8 +++++++- scripts/Dockerfile | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.shippable.yml b/.shippable.yml index 9fbb29190..e60bfa1ad 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 ./test ./platform/ -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