From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0068.outbound.protection.outlook.com [104.47.36.68]) by dpdk.org (Postfix) with ESMTP id A0F047D30 for ; Mon, 8 Jan 2018 12:17:55 +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=eLT5PtyN4a2HqE5rTSEPqDkgN/YhyXaJkmDK+7FlMvE=; b=esaz0atDo46i5KYdgfygLceSDaQJVsaVFPaf9qZcLBm7NLJ8bHNouXpjfpQ8Xrw86clFmGXCISDBJyZ0CSJK7ggyGA+OsvtMuZwbo+UEyIVrFgDQ9Yo7fRrIdUzWLe4OTKaB7Gqu0P7EHFTWDiFdqe+sRl/S1xpIpfCyBF7SZio= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (171.61.92.144) by BN3PR07MB2515.namprd07.prod.outlook.com (10.167.4.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.366.8; Mon, 8 Jan 2018 11:17:52 +0000 Date: Mon, 8 Jan 2018 16:47:33 +0530 From: Jerin Jacob To: Pavan Nikhilesh Cc: harry.van.haaren@intel.com, gage.eads@intel.com, liang.j.ma@intel.com, dev@dpdk.org Message-ID: <20180108111731.GF24213@jerin> References: <20171212192713.17620-1-pbhagavatula@caviumnetworks.com> <20171225191738.17151-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171225191738.17151-1-pbhagavatula@caviumnetworks.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-Originating-IP: [171.61.92.144] X-ClientProxiedBy: BM1PR0101CA0049.INDPRD01.PROD.OUTLOOK.COM (10.174.220.139) To BN3PR07MB2515.namprd07.prod.outlook.com (10.167.4.140) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 351627ba-1c8b-4f8b-a9c3-08d5568976cd X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:BN3PR07MB2515; X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2515; 3:9NuuQjYJyjh6Tw3/fNiOOa/w82IXKUKeJOevRZKtIRj5JYsXoTg7tkBnZ5E+tEkOFry8Bx5IavdWuyJrp8SbXj2FjbTIDicUlUx2li4zdH1yAfBEixLk+A/+ykkrb6UofccWTdPCeEj6TvGKnTdKE9U6/4zsEC/aLQuZ0GAv2JayIaTg7IweOR6AeBpG50zR6koyCIbGa5kS+D0S4uRHh8T3zkmLN2ESJv8KQptqbkaEWvdWdL1uR9jkQgdZp+rx; 25:J3ePWZRx6KAQXD9NmIUHDZfg4VJBwQrOlphz/f8qAYIcs7JId3EBJa5/rPyhrcfmE8bDCRwCj6F+qEG2GRWZeQ4VaFWZnU+t2yNgVu4dRdomH1dQzXWKLjVV/DGiYWnZky1K2i1lkdH9MZW1cq55dgE3cSZBt+HYV6UXFjTQBtvY1tuyamRSBIoBEicw4rKfUdYsI7kgMWVdr8ozNKaq59a7opE+nNQvIT92LXo5AjhXw1eRwL+UcOKql1+OpnS60n0Xb1r2w3jZJaymKi2tiW5nQpnMbO029R5URplqiAfw9DWCltfjFSXOOc/SUm8sMoi+0morRQUB8tqEBuqk0Q==; 31:AZttbRnrTuNkWcdGXkygUZ0XEuTC51fG1zIUfmrEsewd1qzzo6Q3/E6W1Uh235PaxWfr7Cx5YyWQCHe3bAbPrvrxuFvjXIaqv64K2UodUXabBywZtCjzy358KmLdOm5QOsF0SZM9WMbuYQ/m++YmWkuYbSg6kg31ASxfvIsBw9BuuIHPYccoUSIAuFzq6/zVdjBUhcFR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oft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(3231023)(944501075)(3002001)(10201501046)(93006095)(6041268)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:BN3PR07MB2515; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:BN3PR07MB2515; X-Forefront-PRVS: 054642504A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(346002)(39380400002)(39850400004)(366004)(396003)(189003)(13464003)(199004)(3846002)(68736007)(25786009)(229853002)(52116002)(58126008)(97736004)(23726003)(33896004)(4326008)(59450400001)(6246003)(16586007)(6496006)(316002)(72206003)(6666003)(42882006)(6862004)(6116002)(53936002)(83506002)(386003)(1076002)(33716001)(7736002)(16526018)(47776003)(81156014)(33656002)(8676002)(55016002)(105586002)(2906002)(8936002)(5660300001)(50466002)(9686003)(6636002)(478600001)(76176011)(106356001)(81166006)(66066001)(305945005)(2950100002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR07MB2515; H:jerin; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR07MB2515; 23:hvpjphF+fAVktXKl8FwQEGMdlOj+estajbzJ0DfXb?= =?us-ascii?Q?Nez2txZsp/AHHSc8SW1mcgC0eEvqc4GVloEWJUe2050CxwYq1lVVvCc4px9o?= =?us-ascii?Q?r1JRZN5CXMqskC7P9ZrpnoR1YPtjQxdOhsM/hLdZZAEVb0a1L4Ss1ok9ikpb?= =?us-ascii?Q?WhKTkEdx9lzZqWEKUoMZIoX3QKrCd79qbm9VbocZWqErfP9D+WfW0gcJrdA1?= =?us-ascii?Q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OcYQrWKG4nHFgcprHdLRPdoVQo2d0jwX2MnyO2RtKZEfcyq+3q7U5IpgDIgY4nKV6/F/fcOXrBAcNQ6xfjAkmFNSvcpFdxQ9XPOHFCPvnQCKdSilqq6mJ0PyL0+TU1jVzu3Pmoww SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jan 2018 11:17:52.3835 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 351627ba-1c8b-4f8b-a9c3-08d5568976cd X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR07MB2515 Subject: Re: [dpdk-dev] [PATCH v3 01/11] eal: add common test assert macros 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: Mon, 08 Jan 2018 11:17:56 -0000 -----Original Message----- > Date: Tue, 26 Dec 2017 00:47:28 +0530 > From: Pavan Nikhilesh > To: jerin.jacob@caviumnetworks.com, harry.van.haaren@intel.com, > gage.eads@intel.com, liang.j.ma@intel.com > Cc: dev@dpdk.org, Pavan Nikhilesh > Subject: [dpdk-dev] [PATCH v3 01/11] eal: add common test assert macros > X-Mailer: git-send-email 2.14.1 > > Adding common test assertion macros for unit testing. > Taken from test/test.h. > > Signed-off-by: Pavan Nikhilesh > --- > diff --git a/lib/librte_eal/common/include/rte_test.h b/lib/librte_eal/common/include/rte_test.h > new file mode 100644 > index 000000000..256117f79 > --- /dev/null > +++ b/lib/librte_eal/common/include/rte_test.h > @@ -0,0 +1,97 @@ > +/*- > + * BSD LICENSE > + * > + * Copyright(c) 2017 Cavium, Inc. All rights reserved. > + * > + * Redistribution and use in source and binary forms, with or without > + * modification, are permitted provided that the following conditions > + * are met: > + * > + * * Redistributions of source code must retain the above copyright > + * notice, this list of conditions and the following disclaimer. > + * * Redistributions in binary form must reproduce the above copyright > + * notice, this list of conditions and the following disclaimer in > + * the documentation and/or other materials provided with the > + * distribution. > + * * Neither the name of Cavium, Inc nor the names of its > + * contributors may be used to endorse or promote products derived > + * from this software without specific prior written permission. > + * > + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS > + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT > + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR > + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT > + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, > + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT > + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, > + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY > + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT > + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE > + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. > + */ > + Use SPDX license plate. With above change: Acked-by: Jerin Jacob