From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (NAM11-CO1-obe.outbound.protection.outlook.com [40.107.220.134]) by mx.groups.io with SMTP id smtpd.web11.6020.1601001540069003959 for ; Thu, 24 Sep 2020 19:39:00 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=GJ9gPGqB; spf=pass (domain: microsoft.com, ip: 40.107.220.134, mailfrom: bret.barkelew@microsoft.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WA5h9es/VJn8+jvKHn6W1V7zMFYDSGcWS40lHOvO4zJHexP+wnuxOy4BKgAuMZIftkK/neDiqpiT0FLjGMzmtvz2T2EbIvjs4Wd+P5AmJVLG/mxIU1cpPLSLVFi9RPGLDF+yMHZjEeExhcm9cDX//3hxYSdPtmKhDkYJYX1iy7Zg+eBzE3bkXHzPtik7sW40/JJgrZ19baRNfef+dM0KvcKafnw9KKqFwI1wBtcs5lGLBHRHmHAD9xC31WN2Ub/Sm2E4R66J0veZgLkfXBC4MNSrcz849JGSfJmJr7+EhmeD64smmgbkK0l8A2AFKhrvouByxzWpqc8jX0vHgGGt0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sZ0CYnYa6pN9oJJ6Ib+Vwa7Ja+qhU96IqllAVuIKunI=; b=WVh2FwvPPcL6flL2OmALCKASewZJY0MYhQ4+SOFW8tiBy/wxMTxor7HHCBNFw9/SbtAXAi5pukJ9KOSaBygKDlbacaTLeH9fwmE4bhOQPFbCHsa1uFmRx7wt9FTVSo6fqbpHTtIllZgiwXgjghp14Mddc9DrikP0m+43hdg1cJjUtfcyRsJphcSOPU1NiNa7sKHuFUOeXre9kji09USuHaXMPfOnjFVQq/Ib8EfoO4eX0050a+GUH7staG3CMfhyU6xijhPvA8xCFBcHGDpXVpGmllByEECwM4rdheH1pY+k+WvGcYYR9qUZYO/9l0GXl40sEXqLP8rNRG7LuD583Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sZ0CYnYa6pN9oJJ6Ib+Vwa7Ja+qhU96IqllAVuIKunI=; b=GJ9gPGqBe68wTJk0WO2vjKPkYlsfsdoP2AuANvqVUCLNGdtX3YYChNU/PTctmXfQINvYRJr01oF1CWaRIAeboVBUxHh7+SKV7Cz/tt4DzAozrw2gHtcREBo/6esTl79HZHAoU3R8/1+yFGORGJ6ak6dOK369gxw7Wt1wU053RQI= Received: from MW4PR21MB1857.namprd21.prod.outlook.com (2603:10b6:303:74::12) by MW4PR21MB1858.namprd21.prod.outlook.com (2603:10b6:303:73::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.7; Fri, 25 Sep 2020 02:38:58 +0000 Received: from MW4PR21MB1857.namprd21.prod.outlook.com ([fe80::2967:7434:51bb:e234]) by MW4PR21MB1857.namprd21.prod.outlook.com ([fe80::2967:7434:51bb:e234%4]) with mapi id 15.20.3433.018; Fri, 25 Sep 2020 02:38:58 +0000 From: "Bret Barkelew" To: "devel@edk2.groups.io" Subject: ECC: main function entry point in host-based unit tests Thread-Topic: ECC: main function entry point in host-based unit tests Thread-Index: AQHWkuR4UKPwLw6YOUys9ck3htXzdA== Date: Fri, 25 Sep 2020 02:38:58 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2020-09-25T02:35:03.0166579Z;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Privileged authentication-results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=microsoft.com; x-originating-ip: [174.21.140.128] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: e7985018-b7c4-449d-49e4-08d860fc2793 x-ms-traffictypediagnostic: MW4PR21MB1858: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: C8QjoqLq0fAwEbbvOltaIs4R0V5/pCGQrDRwP2bdc4ab4tZZNbWB3RQ0AsM5XhumPoW9Nj/OhAcuRN/+6uCP8pEC0Kzfu7H+OwpT8/89rcYam4sFWEbiUssUf1geZzHd9PbAK56pT8UcS8we0PwQIyzaJSMTn/FX2LS/79zOkfPucfA5ZRmY7q2Tv9cyjNmJd54QOq8Iuxj4tL5a9LUAMCrkts+lFS2+QiYQfUtWsFdtuPZ10cP8hkcAsKzRSysr8xsZCoMXyDx/rVLIdlLr20idjOHCwvull3vriDcy/PQa55NbdmOukT3TfNxQiJCwUeQOKjZ0emAKbvbiRFXM0w== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW4PR21MB1857.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(396003)(376002)(39860400002)(366004)(136003)(346002)(10290500003)(8990500004)(7696005)(82960400001)(82950400001)(6506007)(316002)(6916009)(4744005)(186003)(26005)(2906002)(5660300002)(9686003)(33656002)(8676002)(478600001)(86362001)(8936002)(66476007)(66946007)(52536014)(66556008)(64756008)(55016002)(66446008)(76116006)(71200400001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: 617qgizVyah26nJyiMEhuMc35dILjuMakTO10cPjpx4YdPD2jHQt0DlN9grlUFHlWKc62yZIX5/Bowhfr0H5yzq3rQ0EGdfv37dYJYNK0vkY6hSfKjnjz6KLnNwBX6JliwlXMPnUcB1svoEGGUwbY8RpL7QesSmYbvs0L/WZaqTFiVcAnqclY/T+G41UTqpYWE950qi4bH6nQwcNfAxw5A1TBUaAvs6ZxrsHC8oBvWEiYFGc6zwfZ6corpYl1lVimXLE/9kou3YwjKLdoDEiKyT76tM06WpMnmecf9C9gBp758/OSN56UmgIaYCpMhTI0naycIUMbk6xKDdg6F4cVx22oStaLhoWIYk0S0Kcto2s6dLl09sQh3YlzkGJaxUkU5oAVhZEvjM+4NGz32hHP3dPTc0qwaVg4MJNIOZNlNqkB6E5UNHWDKeeQwsIceSzd6dzMKSyjlY/K0GEyngmpv+DGweoKGVVuRubkgWrZwIS3KMaXU7ugctC29c2EQojmw/KYAQhQq3FcsegDYl3ab6WrIk47zjySyNAwba4ixr6IiJSeQ/eny6c7Ra+uCIMTA/qB6lN3Nd6cTXjl1nIasPv6W76/GjbF5yKb9Qf2uGGonVEZbHEQVOW/udcHWxQSaXQJnLxaiB0epSIgC/J5g== x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW4PR21MB1857.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e7985018-b7c4-449d-49e4-08d860fc2793 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Sep 2020 02:38:58.3470 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: B1eS4vK+XfUVvYkUtZRBRKtpqI35f2gyp8+6gAiPm0PWU4l9wGGT5Gjff076axx5AGH76me/mRHNbQ+/PFwqsA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR21MB1858 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_MW4PR21MB18576EABAC4F07663BB24192EF360MW4PR21MB1857namp_" --_000_MW4PR21MB18576EABAC4F07663BB24192EF360MW4PR21MB1857namp_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable ERROR - EFI coding style error ERROR - *Error code: 7001 ERROR - *There should be no use of int, unsigned, char, void, long in any .= c, .h or .asl files ERROR - *file: //home/corthon/_uefi/edk2_qemu_ci/edk2/MdeModulePkg/Library/= VariablePolicyLib/VariablePolicyUnitTest/VariablePolicyUnitTest.c ERROR - *Line number: 763 ERROR - *[main] Return type int ERROR - ERROR - EFI coding style error ERROR - *Error code: 8006 ERROR - *Function name does not follow the rules: 1. First character should= be upper case 2. Must contain lower case characters 3. No white space char= acters ERROR - *file: //home/corthon/_uefi/edk2_qemu_ci/edk2/MdeModulePkg/Library/= VariablePolicyLib/VariablePolicyUnitTest/VariablePolicyUnitTest.c ERROR - *Line number: 2253 ERROR - *The function name [main] does not follow the rules Currently, the host-based unit tests are using a standard C entry point: int main () That=92s going to break both of these. Another thing to override/figure out for host-based tests - Bret --_000_MW4PR21MB18576EABAC4F07663BB24192EF360MW4PR21MB1857namp_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

ERROR - EFI coding style error

ERROR - *Error code: 7001

ERROR - *There should be no use of int, unsigned, ch= ar, void, long in any .c, .h or .asl files

ERROR - *file: //home/corthon/_uefi/edk2_qemu_ci/edk= 2/MdeModulePkg/Library/VariablePolicyLib/VariablePolicyUnitTest/VariablePol= icyUnitTest.c

ERROR - *Line number: 763

ERROR - *[main] Return type int

ERROR -

ERROR - EFI coding style error

ERROR - *Error code: 8006

ERROR - *Function name does not follow the rules: 1.= First character should be upper case 2. Must contain lower case characters= 3. No white space characters

ERROR - *file: //home/corthon/_uefi/edk2_qemu_ci/edk= 2/MdeModulePkg/Library/VariablePolicyLib/VariablePolicyUnitTest/VariablePol= icyUnitTest.c

ERROR - *Line number: 2253

ERROR - *The function name [main] does not follow th= e rules

 

Currently, the host-based unit tests are using a sta= ndard C entry point:

int

main ()

 

That=92s going to break both of these.

 

Another thing to override/figure out for host-based = tests

 

- Bret

 

--_000_MW4PR21MB18576EABAC4F07663BB24192EF360MW4PR21MB1857namp_--