From patchwork Fri Jul 10 19:46:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 51051 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4CEC42290A for ; Fri, 10 Jul 2015 19:46:25 +0000 (UTC) Received: by wifm2 with SMTP id m2sf7319468wif.1 for ; Fri, 10 Jul 2015 12:46:24 -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: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=4b0tAzeBtgu0IhxTJRo4tQiJ8bmxGKeR+Oi/S8ermHs=; b=MlecYlFHWrcyayKfvb1fiEbhBA+GIQFNKb4FbeWepFSWFGNfhoCamI+KkebtmgkI8w LTSTkqYSt/ruEp7owGqktUQzrDKoRNEDFtM9ZG4i8HDUz1cYF8f98JGE1tecjVLXbV43 Gv5Lf34dcTBVNfhp3WwBL1os+4sThoKoJEaFF+J+cfYwYjeIN2BxSxEkeNG7tdK7xT9K 4N+dJo+FsEHBT1UOmXB+VeeVDhw95/934NCkR4z+xq5K3065NHX6eVYIpVKyKb+9RTCm cx+AZK2bNuoOerEmhiqV1wzWaI1oRLIWSbRGZrDjfwCVmFK0/cj+x+gtC0d32qth6Z2U Ea6Q== X-Gm-Message-State: ALoCoQltfcIQ4mQxlF9bwl6OAaiIj2DimMdUU4utOzLaCEwJE8a5tmt+Ffjk9PT/GIdg5ccej3sQ X-Received: by 10.152.237.36 with SMTP id uz4mr8778480lac.1.1436557584596; Fri, 10 Jul 2015 12:46:24 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.224.162 with SMTP id rd2ls1208458lac.84.gmail; Fri, 10 Jul 2015 12:46:24 -0700 (PDT) X-Received: by 10.152.37.67 with SMTP id w3mr21307790laj.123.1436557584280; Fri, 10 Jul 2015 12:46:24 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id t8si5102171laa.17.2015.07.10.12.46.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jul 2015 12:46:24 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lblf12 with SMTP id f12so28570811lbl.2 for ; Fri, 10 Jul 2015 12:46:24 -0700 (PDT) X-Received: by 10.112.55.207 with SMTP id u15mr21240709lbp.88.1436557584137; Fri, 10 Jul 2015 12:46:24 -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 hn6csp194421lbb; Fri, 10 Jul 2015 12:46:23 -0700 (PDT) X-Received: by 10.140.237.147 with SMTP id i141mr37994158qhc.25.1436557582888; Fri, 10 Jul 2015 12:46:22 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id b65si11983585qgf.111.2015.07.10.12.46.22; Fri, 10 Jul 2015 12:46:22 -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 E1B6062082; Fri, 10 Jul 2015 19:46:21 +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 7395762060; Fri, 10 Jul 2015 19:46:20 +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 874DF62080; Fri, 10 Jul 2015 19:46:18 +0000 (UTC) Received: from mail-oi0-f53.google.com (mail-oi0-f53.google.com [209.85.218.53]) by lists.linaro.org (Postfix) with ESMTPS id C7B4261CE0 for ; Fri, 10 Jul 2015 19:46:17 +0000 (UTC) Received: by oiyy130 with SMTP id y130so218350642oiy.0 for ; Fri, 10 Jul 2015 12:46:17 -0700 (PDT) X-Received: by 10.202.54.3 with SMTP id d3mr982988oia.103.1436557577360; Fri, 10 Jul 2015 12:46:17 -0700 (PDT) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by smtp.gmail.com with ESMTPSA id yh9sm5400960obb.8.2015.07.10.12.46.16 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Jul 2015 12:46:16 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Fri, 10 Jul 2015 14:46:12 -0500 Message-Id: <1436557572-24128-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH 1/1] validation: queue: add missing tests for new APIs 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: bill.fischofer@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.217.171 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 Add validation test coverage for the following APIs: odp_queue_sched_group() odp_queue_sched_prio() odp_queue_sched_type() Signed-off-by: Bill Fischofer --- test/validation/queue/queue.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/test/validation/queue/queue.c b/test/validation/queue/queue.c index b700e88..5830d9b 100644 --- a/test/validation/queue/queue.c +++ b/test/validation/queue/queue.c @@ -51,9 +51,15 @@ static void queue_test_sunnydays(void) int nr_deq_entries = 0; int max_iteration = CONFIG_MAX_ITERATION; void *prtn = NULL; + odp_queue_param_t qparams; + + odp_queue_param_init(&qparams); + qparams.sched.prio = ODP_SCHED_PRIO_LOWEST; + qparams.sched.sync = ODP_SCHED_SYNC_NONE; + qparams.sched.group = ODP_SCHED_GROUP_WORKER; queue_creat_id = odp_queue_create("test_queue", - ODP_QUEUE_TYPE_POLL, NULL); + ODP_QUEUE_TYPE_POLL, &qparams); CU_ASSERT(ODP_QUEUE_INVALID != queue_creat_id); CU_ASSERT_EQUAL(ODP_QUEUE_TYPE_POLL, @@ -62,6 +68,11 @@ static void queue_test_sunnydays(void) queue_id = odp_queue_lookup("test_queue"); CU_ASSERT_EQUAL(queue_creat_id, queue_id); + CU_ASSERT_EQUAL(ODP_SCHED_GROUP_WORKER, + odp_queue_sched_group(queue_id)); + CU_ASSERT_EQUAL(ODP_SCHED_PRIO_LOWEST, odp_queue_sched_prio(queue_id)); + CU_ASSERT_EQUAL(ODP_SCHED_SYNC_NONE, odp_queue_sched_type(queue_id)); + CU_ASSERT(0 == odp_queue_set_context(queue_id, &queue_contest)); prtn = odp_queue_get_context(queue_id);