From patchwork Fri Dec 18 15:54:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Haslam X-Patchwork-Id: 58726 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp1111153lbb; Fri, 18 Dec 2015 07:54:49 -0800 (PST) X-Received: by 10.55.71.146 with SMTP id u140mr5870825qka.14.1450454089639; Fri, 18 Dec 2015 07:54:49 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id q15si16689114qkh.128.2015.12.18.07.54.49; Fri, 18 Dec 2015 07:54:49 -0800 (PST) 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; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 21D8261697; Fri, 18 Dec 2015 15:54:49 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=GgaIiN6F; dkim-adsp=none (unprotected policy); dkim-atps=neutral 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.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, 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 B59AC61691; Fri, 18 Dec 2015 15:54: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 F24326168B; Fri, 18 Dec 2015 15:54:41 +0000 (UTC) Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by lists.linaro.org (Postfix) with ESMTPS id 708C46168B for ; Fri, 18 Dec 2015 15:54:17 +0000 (UTC) Received: by mail-wm0-f41.google.com with SMTP id l126so70959710wml.1 for ; Fri, 18 Dec 2015 07:54:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id; bh=XVwf4D+YFwSU/BPUiF+G8ADe+CCOY3BM2+MT1t5HgOg=; b=GgaIiN6FzWXD8nCJBqf3x/4kVVoxwxl1rbcRPymZAVqtjuY685q1yMUnrSnGiYDS+/ Vyiy9V3mv5J+eMRBbyDERJIQ4U+Pqcrs45+U9nY0lFBG8KOp0GjNRfWxvy6aSzdD+5f0 JAwRtEK6NCbhdfYCyB4oboKFrTFzROfyPNyFE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=XVwf4D+YFwSU/BPUiF+G8ADe+CCOY3BM2+MT1t5HgOg=; b=MoFsu3HUXEDpDv2DH/Wnvh4pFhhmozwRoQcDnZMWiJsIrZZ85iF8ybuKB5NrnfeMS2 n9qFM0K1d+FSzNm84M1uOZ913Om25nvzcgY6tGe0BgoR0V240IfuZSyHrVHHkW7tmrjC SMccNwVCTM7IYammiU+n7i/KiqznWT49Wfb3eE2kt3Gnl6r1DXPUYky5DKYktcDzZzEI bVkmj+5wdH43DcolGVPT7V/O4I6kzWwl0Gd6KDSx/y4rv7HSaZNVCFgXpqnlQBGCBnse vj6pteb/ciLE0l2570lGVGfw7HH4cvL1hWGTPu+ZILWXio0o25VpNAhwON72wXjdCKL9 MF3A== X-Gm-Message-State: ALoCoQnwkxemrk5WlBn6OAPpaSzFyXgpt6hDtfjhuh7KvcrVQ24aQdbrruv/SFFYRwvfbBAfwYwtdjGeEWC7gvr473BPbnJyYA== X-Received: by 10.194.201.134 with SMTP id ka6mr4939159wjc.116.1450454056667; Fri, 18 Dec 2015 07:54:16 -0800 (PST) Received: from e106441.emea.arm.com ([2001:41d0:a:3cb4::abcd]) by smtp.gmail.com with ESMTPSA id c143sm2150029wmd.2.2015.12.18.07.54.15 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 18 Dec 2015 07:54:16 -0800 (PST) From: Stuart Haslam To: lng-odp@lists.linaro.org Date: Fri, 18 Dec 2015 15:54:07 +0000 Message-Id: <1450454047-20719-1-git-send-email-stuart.haslam@linaro.org> X-Mailer: git-send-email 2.1.1 X-Topics: patch Subject: [lng-odp] [PATCH] validation: export missing test functions 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: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" All test functions should be non-static and declared in the module's header file. Signed-off-by: Stuart Haslam Reviewed-by: Christophe Milard --- test/validation/classification/classification.h | 6 ++++++ test/validation/classification/odp_classification_test_pmr.c | 10 +++++----- test/validation/pktio/pktio.c | 10 +++++----- test/validation/pktio/pktio.h | 5 +++++ 4 files changed, 21 insertions(+), 10 deletions(-) diff --git a/test/validation/classification/classification.h b/test/validation/classification/classification.h index 6a7e8a5..99dbd65 100644 --- a/test/validation/classification/classification.h +++ b/test/validation/classification/classification.h @@ -70,6 +70,12 @@ void classification_test_pmr_terms_cap(void); void classification_test_pktio_configure(void); void classification_test_pktio_test(void); +void classification_test_pmr_term_tcp_dport(void); +void classification_test_pmr_term_tcp_sport(void); +void classification_test_pmr_term_udp_dport(void); +void classification_test_pmr_term_udp_sport(void); +void classification_test_pmr_term_ipproto(void); + /* test arrays: */ extern odp_testinfo_t classification_suite_basic[]; extern odp_testinfo_t classification_suite[]; diff --git a/test/validation/classification/odp_classification_test_pmr.c b/test/validation/classification/odp_classification_test_pmr.c index 1502b9a..5a6272e 100644 --- a/test/validation/classification/odp_classification_test_pmr.c +++ b/test/validation/classification/odp_classification_test_pmr.c @@ -108,7 +108,7 @@ int classification_suite_pmr_term(void) return retcode; } -static void classification_test_pmr_term_tcp_dport(void) +void classification_test_pmr_term_tcp_dport(void) { odp_packet_t pkt; odph_tcphdr_t *tcp; @@ -197,7 +197,7 @@ static void classification_test_pmr_term_tcp_dport(void) odp_pktio_close(pktio); } -static void classification_test_pmr_term_tcp_sport(void) +void classification_test_pmr_term_tcp_sport(void) { odp_packet_t pkt; odph_tcphdr_t *tcp; @@ -284,7 +284,7 @@ static void classification_test_pmr_term_tcp_sport(void) odp_pktio_close(pktio); } -static void classification_test_pmr_term_udp_dport(void) +void classification_test_pmr_term_udp_dport(void) { odp_packet_t pkt; odph_udphdr_t *udp; @@ -372,7 +372,7 @@ static void classification_test_pmr_term_udp_dport(void) odp_pktio_close(pktio); } -static void classification_test_pmr_term_udp_sport(void) +void classification_test_pmr_term_udp_sport(void) { odp_packet_t pkt; odph_udphdr_t *udp; @@ -459,7 +459,7 @@ static void classification_test_pmr_term_udp_sport(void) odp_pktio_close(pktio); } -static void classification_test_pmr_term_ipproto(void) +void classification_test_pmr_term_ipproto(void) { odp_packet_t pkt; uint32_t seqno; diff --git a/test/validation/pktio/pktio.c b/test/validation/pktio/pktio.c index 05ddd68..c98361c 100644 --- a/test/validation/pktio/pktio.c +++ b/test/validation/pktio/pktio.c @@ -743,7 +743,7 @@ void pktio_test_inq(void) CU_ASSERT(odp_pktio_close(pktio) == 0); } -static void pktio_test_start_stop(void) +void pktio_test_start_stop(void) { odp_pktio_t pktio[MAX_NUM_IFACES]; odp_packet_t pkt; @@ -882,7 +882,7 @@ static void pktio_test_start_stop(void) * biggest packet we can allocate then the test won't be able to * attempt to send packets larger than the MTU, so skip the test. */ -static int pktio_check_send_failure(void) +int pktio_check_send_failure(void) { odp_pktio_t pktio_tx; int mtu; @@ -908,7 +908,7 @@ static int pktio_check_send_failure(void) return (mtu <= ODP_CONFIG_PACKET_BUF_LEN_MAX - 32); } -static void pktio_test_send_failure(void) +void pktio_test_send_failure(void) { odp_pktio_t pktio_tx, pktio_rx; odp_packet_t pkt_tbl[TX_BATCH_LEN]; @@ -1043,7 +1043,7 @@ static void pktio_test_send_failure(void) CU_ASSERT(odp_pool_destroy(pkt_pool) == 0); } -static void pktio_test_recv_on_wonly(void) +void pktio_test_recv_on_wonly(void) { odp_pktio_t pktio; odp_packet_t pkt; @@ -1073,7 +1073,7 @@ static void pktio_test_recv_on_wonly(void) CU_ASSERT_FATAL(ret == 0); } -static void pktio_test_send_on_ronly(void) +void pktio_test_send_on_ronly(void) { odp_pktio_t pktio; odp_packet_t pkt; diff --git a/test/validation/pktio/pktio.h b/test/validation/pktio/pktio.h index f22ff25..58fdbca 100644 --- a/test/validation/pktio/pktio.h +++ b/test/validation/pktio/pktio.h @@ -24,6 +24,11 @@ void pktio_test_inq_remdef(void); void pktio_test_open(void); void pktio_test_lookup(void); void pktio_test_inq(void); +void pktio_test_start_stop(void); +int pktio_check_send_failure(void); +void pktio_test_send_failure(void); +void pktio_test_recv_on_wonly(void); +void pktio_test_send_on_ronly(void); /* test arrays: */ extern odp_testinfo_t pktio_suite[];