From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0074.outbound.protection.outlook.com [104.47.32.74]) by dpdk.org (Postfix) with ESMTP id 0D75DF97C for ; Fri, 3 Mar 2017 18:31:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=5xWvEUExgvAQ7A0G6JBtEC5jyjQ43Fp6XIs0+1G7N5I=; b=cI9CcNo09+WO6FfaxK781kEOTVFVKrIiD19q6oS0XZstFoa9OXf032a0vi7zXhv25qoVetApptHbQ5hmfazoGQOUpgvbFCdiSMq2gG4wkM9RXzFcuxnz72AafDu+Vpw7kyiO3MWl/MNi2Bop4YrvFv6g32YT1dz7NUHMxjcsHWw= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain.localdomain (14.140.2.178) by BN3PR0701MB1719.namprd07.prod.outlook.com (10.163.39.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.933.12; Fri, 3 Mar 2017 17:31:27 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: thomas.monjalon@6wind.com, bruce.richardson@intel.com, harry.van.haaren@intel.com, hemant.agrawal@nxp.com, gage.eads@intel.com, nipun.gupta@nxp.com, santosh.shukla@caviumnetworks.com, Jerin Jacob Date: Fri, 3 Mar 2017 22:58:20 +0530 Message-Id: <1488562101-6658-39-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1488562101-6658-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1488562101-6658-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: BMXPR01CA0021.INDPRD01.PROD.OUTLOOK.COM (10.174.214.159) To BN3PR0701MB1719.namprd07.prod.outlook.com (10.163.39.18) X-MS-Office365-Filtering-Correlation-Id: 24c06d4e-7a59-42f8-8771-08d4625b2172 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN3PR0701MB1719; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 3:9sTie6cDI5Fnx1OXONfcQ7n7Lj4HbsT1hpkAjPa9Riy99hjsNDC58uPNVQj813+yb/nM7gwjWpc35amx0lFOG+oPtDFCWdwxGFyjV/Lik7e1ufmGQkmi2YRMsNYZs0PxSrvMmD9/lf0eM81ScRPhGjUFpgwxmOPbd00I+DFNlV7DyTZKb9C5wpwgMCoKg2m9bqVogCzK2n/ebQNqVBDaUmX2+6rSCgcyYrZ3sq0DwrZOS7GYVi0MHg84Rhci6VzPVBCV7n+rJUe5T02ldWFzsg==; 25:udcbisEuhAx/FNBn4JNWjYhw4hoEFm8PdF98kRiME4b8kQb4WiGCT3D4u8683sBDierMnwgS7+iOQHZ1BbLRqObkDtBMA/d+m0eLjib8Hc/HnDaDvIkdS+KJxhWKy+5hPa+VwzK+7tt64SvjzYhoZNxHMm29FLoUfEM4KaFo+AdKL+/MKGaMK84mQvIOBiESR2KvksY+dwL9tNChYHFW81CYvar5yoDyVL1zVY2MtrAs4b4o5hqMbJTZrGKxWv7g0z5N3BBJWfCp1e3a4D2KHyq31hxtzEGs2BHMfvmtOdwTJGWPhGSU5TbvWoznms6ekBqgKe05sx6ThTsRvtjCfyZha7cvCcDNw8aBIGfcVJzlEnlwc2KWDyTniPdLgt/QAJ40zBxqvPhE108HddqSQC8+uJ+2av/Tl/2ki1VxIe9jH6s9rutv2YjhZstRs9m5yuVOHIOgn2mo2Bxoo0qKCw== X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 31:SrCxjCCulJ1ioufLh3M8YGAup5wLeAQ+gSW6DIdIjVnMjU8Fm+rrqYJNc6d9bIrYyFDIBNwIAtyqe2E93t0Mjd3/moC+JWJxXoa+RJ7Y+NYv3ROTCLYa68M+IKi1aJJbY4sXlWlen4mX0X5oo5769O2Re7NIeug08m+pVM/etPjm5A9APD42lRI7yHUCasLLv9sZgoKXymGFdxqjxGaVTPZfAjiMYAb7kCTq4p5HPwNOgWRccm3g99GGMagftV+l; 20:xdkcKXOIqbrRBo9FJJWF0q/C4JHgSibyzzIWPoWUMn/aci7cMALXRTe+G2FoTWa3zzN6d7MR/1YyMAjOVftPE1+rH8JxGirMVdrAGi1g1H1hb+HF4Hl9N/3fOXYceM9vOUdXYzOzbgY0QQ7Nxi85Lr1tlmGe394pZeMyDpsJX3ScRLrWDMnXtmHhl7pvEBCf91UJw4LOThR4ezZ3JkpOoaxVg78CkqDdgHm0XJ6ZDXbs4V/nDSgGkO6RthqOV0WrMwHHJpMZv+nSjdyUlorcFRU9fkNyy8DkG1spS8HaHFVoFQjP0l9maQevRpAEjcpxPF8mKDjuXjnQ7q37UynEEvM/Bw9CqUJCgC9Cytf99ankJGruHMRQJpACZg8qENUiFpBfamQCqnRmSgiHR5mwi3TREdcEQ36M4DjeYnCTWDd3S/FlEn2Cy/TBIwSRhuYhUuf692jI+f/aQgwumuYANymZ78zmrrnXCa8hPHCESDbfP9tzwz+vLywCsjhnih6Y5zJORuMXwvkWz+D1f6K+3aFKo7o90ZoLu7KV7rX5l0XAkbJgYQOM2LvqBhYMFASWD7nTQ7xtrv+ZpfkFzpymJnFXhUOLmmenc846b2XsDRw= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041248)(20161123555025)(20161123560025)(20161123562025)(20161123558025)(20161123564025)(6072148); SRVR:BN3PR0701MB1719; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1719; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 4:Z7veRZFFPdlQFc5/WCDWnvU332yNgHJvHjslWa0ScFm9IvjXxQFPrZKgIN/TMJ4QpIjOeFBSyo2GB83fL5kzXuTd5G4RKJzW5BxA35Rex/cDfyPN6qVRrXnMGreXYh9G58nqGrdRT2yXrsPQFyeX9daP8eyNoyCKeiiwhiUsjb/d4kpJyZUVSvqZmBFVGihUYFgj01MD1Lcv98JvbajNhFPD6eO+ek1DGKc4mnXTt7MLSAYjnFggxowlf4SkrH065hquO76RbuIKvF/RAzoeT3TtiteMoYFvnaA3Kv/tpjHqINesoaRrXQxadSdgkNP+N6HnPOPpOxCuNRGti2+eaKur6kZo8NsxxKu+iXFSw55VX2+Jk0XG/RnIJVMUwHLQZVkDALWIJUgYitHzSIxua3+TZiUPir8spwxPatoVDnsh/GAuF/H6dxIlct6UA2sr4eXsY0D5p/K/DYrrTDd6Ja4kCMdqPvobXESSayyHC2geJgBWv3J9CWTKDhqpvtlKe/EVBzypThxX+Kxwinemjra88d7TXAHtCFh0/4iUu16ge6rkuZZXHIre1mf+cYMJKuOqW0fBvpbnXFo/EQ3WwMR/0KoV53ZGXYiGKW0Ukj4= X-Forefront-PRVS: 0235CBE7D0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(39450400003)(3846002)(50986999)(6116002)(36756003)(81166006)(6512007)(97736004)(2361001)(2351001)(6506006)(5660300001)(42186005)(50226002)(8676002)(6666003)(106356001)(8656002)(2950100002)(2906002)(25786008)(47776003)(6486002)(76176999)(33646002)(7736002)(107886003)(42882006)(66066001)(110136004)(4326008)(38730400002)(6916009)(305945005)(48376002)(92566002)(5009440100003)(5003940100001)(50466002)(189998001)(53936002)(7099028)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1719; H:localhost.localdomain.localdomain; FPR:; SPF:None; MLV:nov; PTR:InfoNoRecords; LANG:en; X-Microsoft-Exchange-Diag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dYzJnDIi3h1fFm40b2KmFok= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 7:HSLC+TFzzlDgQ15x1rL3jBRODgoIus0xlXphbEqw5KfTf7YrEVzNgrm/YEYadgG1JMHvjrcvL2Nnqzt0Iq6ZnUaXmnvXYEI6mpg0wH0uRpgBGLNJFrTI1tVXaXREQoRD7aZwPdY1vkkgi5pi69FZ5umSreSf661FTb6uppN72feNxDmDP45P6slGvmjzGjRqAPU+MZP6lbADOdx27IEewKhkBujGE5qTw7byNfWAu2d7JjDicikRKqveg30HJGtdkO/oj+xQ4nOjUXzZuo5yQjYZtvwObMogCoIpx86vUduJYVAHHaqxV0Sh0LMxeO6zvETlqGueUzMMYRBjVEQnrA== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Mar 2017 17:31:27.5187 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1719 Subject: [dpdk-dev] [PATCH 38/39] app/test: add remaining tests based on existing helpers X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Mar 2017 17:31:32 -0000 Add the following tests based existing helper functions - Queue based producer-consumer ingress order test - Run existing queue and flow based ordering test in dequeue timeout mode Signed-off-by: Jerin Jacob --- app/test/test_eventdev_octeontx.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/test/test_eventdev_octeontx.c b/app/test/test_eventdev_octeontx.c index e54279e..4123cd5 100644 --- a/app/test/test_eventdev_octeontx.c +++ b/app/test/test_eventdev_octeontx.c @@ -1305,6 +1305,14 @@ test_flow_producer_consumer_ingress_order_test(void) worker_flow_based_pipeline); } +/* Queue based producer consumer ingress order test */ +static int +test_queue_producer_consumer_ingress_order_test(void) +{ + return test_producer_consumer_ingress_order_test( + worker_group_based_pipeline); +} + static struct unit_test_suite eventdev_octeontx_testsuite = { .suite_name = "eventdev octeontx unit test suite", .setup = testsuite_setup, @@ -1370,6 +1378,13 @@ static struct unit_test_suite eventdev_octeontx_testsuite = { test_multi_port_mixed_max_stages_random_sched_type), TEST_CASE_ST(eventdev_setup, eventdev_teardown, test_flow_producer_consumer_ingress_order_test), + TEST_CASE_ST(eventdev_setup, eventdev_teardown, + test_queue_producer_consumer_ingress_order_test), + /* Tests with dequeue timeout */ + TEST_CASE_ST(eventdev_setup_dequeue_timeout, eventdev_teardown, + test_multi_port_flow_ordered_to_atomic), + TEST_CASE_ST(eventdev_setup_dequeue_timeout, eventdev_teardown, + test_multi_port_queue_ordered_to_atomic), TEST_CASES_END() /**< NULL terminate unit test array */ } }; -- 2.5.5