<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<div>
<div>
<div dir="ltr" style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Hmmm. If that works well, we might be able to investigate carrying both and picking based on the host OS.</div>
</div>
<div id="ms-outlook-mobile-signature">
<div><br>
</div>
<div style="direction: ltr;">- Bret</div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> devel@edk2.groups.io <devel@edk2.groups.io> on behalf of Rebecca Cran via groups.io <rebecca=nuviainc.com@groups.io><br>
<b>Sent:</b> Tuesday, June 29, 2021 9:42:41 AM<br>
<b>To:</b> devel@edk2.groups.io <devel@edk2.groups.io>; steven.shi@intel.com <steven.shi@intel.com><br>
<b>Subject:</b> [EXTERNAL] Re: [edk2-devel] Do the edk2 CI unit tests work in Linux?</font>
<div> </div>
</div>
<div>
<p><font face="monospace">Your Linux distribution should have a nuget package available (e.g.
<a class="x_moz-txt-link-freetext" href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpackages.ubuntu.com%2Fhirsute%2Fnuget&data=04%7C01%7Cbret.barkelew%40microsoft.com%7C07424c8c951c4a7e7eed08d93b1cebe0%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637605817680494682%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=jvpYhiv59XPQ%2FhFkrFTbM4Ug257PPdT3HUZhVHZgZhA%3D&reserved=0" originalsrc="https://packages.ubuntu.com/hirsute/nuget" shash="FI3Fi8jZrnrYGkwVzVtAIlg3sDwrDgEvScBncVk9kwlcW6VHI+anEyKd5zq9MwS+c0fAnv+3Xg11eZ5IBLim2PIIkGrbHMDYfelbzv++GK9QvU9BiyiLF6q1tWFVLmUkyPzAFDSDC9QxXT6PY9UZPAYVPLT9xHtI24sJJy/cPNo=">
https://packages.ubuntu.com/hirsute/nuget</a>) but the EDK2 CI is designed to use the copy of nuget installed with the edk2toolext package.
<br>
</font></p>
<p><font face="monospace"><br>
</font></p>
<p><font face="monospace">-- <br>
Rebecca Cran</font></p>
<p><font face="monospace"></font><br>
</p>
<div class="x_moz-cite-prefix">On 6/29/21 9:44 AM, Steven Shi wrote:<br>
</div>
<blockquote type="cite">
<meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:DengXian}
@font-face
        {font-family:Calibri}
@font-face
        {}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:link, span.x_MsoHyperlink
        {color:#0563C1;
        text-decoration:underline}
p.x_MsoListParagraph, li.x_MsoListParagraph, div.x_MsoListParagraph
        {margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
span.x_EmailStyle21
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.x_MsoChpDefault
        {font-size:10.0pt}
div.x_WordSection1
        {}
ol
        {margin-bottom:0in}
ul
        {margin-bottom:0in}
-->
</style>
<div class="x_WordSection1">
<p class="x_MsoNormal">Cran, Thanks. I’m curious whether the .pytool has native Linux executable binary to run? It looks the edk2 CI framework has more dependency in Linux than Windows.</p>
<p class="x_MsoNormal"> </p>
<div>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Thanks</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"><b><span style="font-size:10.0pt; font-family:"Arial",sans-serif">Steven Shi</span></b><b><span style="font-size:10.0pt; font-family:"Arial",sans-serif"></span></b></p>
<p class="x_MsoNormal"><b><span style="font-size:10.0pt; font-family:"Arial",sans-serif">Intel\IAGS\SFP\FIA (Firmware Infrastructure Automation)</span></b><b><span style="font-size:12.0pt; font-family:"Arial",sans-serif"></span></b></p>
<p class="x_MsoNormal"><b><span style="font-size:12.0pt; font-family:"Arial",sans-serif"> </span></b></p>
</div>
<p class="x_MsoNormal"> </p>
<div>
<div style="border:none; border-top:solid #E1E1E1
            1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_MsoNormal"><b>From:</b> <a class="x_moz-txt-link-abbreviated" href="mailto:devel@edk2.groups.io">
devel@edk2.groups.io</a> <a class="x_moz-txt-link-rfc2396E" href="mailto:devel@edk2.groups.io">
<devel@edk2.groups.io></a> <b>On Behalf Of </b>Rebecca Cran<br>
<b>Sent:</b> Tuesday, June 29, 2021 8:13 PM<br>
<b>To:</b> <a class="x_moz-txt-link-abbreviated" href="mailto:devel@edk2.groups.io">
devel@edk2.groups.io</a>; Shi, Steven <a class="x_moz-txt-link-rfc2396E" href="mailto:steven.shi@intel.com">
<steven.shi@intel.com></a><br>
<b>Subject:</b> Re: [edk2-devel] Do the edk2 CI unit tests work in Linux?</p>
</div>
</div>
<p class="x_MsoNormal"> </p>
<p><span style="font-family:"Courier New"">NuGet.exe is a .NET assembly/executable,
</span>so on Linux you'll need to install Mono (<a href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.mono-project.com%2F&data=04%7C01%7Cbret.barkelew%40microsoft.com%7C07424c8c951c4a7e7eed08d93b1cebe0%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637605817680504642%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=KtiO4lxs%2BA8nhxpZHutQr7Y3dP0qxXPG6ToToEsPRrk%3D&reserved=0" originalsrc="https://www.mono-project.com/" shash="emcLiltqTmuvUi8btZ0DrFqYE8nyESEAOMJge12Y+9HhsL8W+Z5B/OysLWsIh39kFqYt3Z+H+9yOWVG3VWPJxeyAq9fAA8Gl50Uh+zKHF6DFFHG5kZhFXFTiY1kj/IpVBy7pcDJDo2IeDYy+eMurlw7KlbeNYwX+epfVQxLclqo=">https://www.mono-project.com/</a>).</p>
<p> </p>
<p>-- </p>
<p>Rebecca Cran</p>
<p> </p>
<p> </p>
<div>
<p class="x_MsoNormal">On 6/28/21 7:45 PM, Steven Shi wrote:</p>
</div>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="x_MsoNormal">Hello,</p>
<p class="x_MsoNormal">I’m interested in the edk2 CI unit tests(<a href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftianocore%2Fedk2%2Ftree%2Fmaster%2F.pytool&data=04%7C01%7Cbret.barkelew%40microsoft.com%7C07424c8c951c4a7e7eed08d93b1cebe0%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637605817680504642%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=49RkG1%2F%2BR%2BKWvFZvlVfgCoylFd%2FvfuLBCWl8HeEEIZk%3D&reserved=0" originalsrc="https://github.com/tianocore/edk2/tree/master/.pytool" shash="f6NUslB5iBrLxB9qKhB+WMl0rVHbLmNllQE7uGJm29AbrifjFdjv9YcjhS/4V4L3ZGcbH4m6+uJ/7NtL+1eKTCdn3Vw1jZsRKAo5ZVLIZH98VFKLZiYll05r5AKzBKTNetiYFHOuH0mDzwH5OTDe+5/AbhUZVGX6fFA7b8qdhqM=">https://github.com/tianocore/edk2/tree/master/.pytool</a>).
 I tested it in my local. It works well in Windows but does not work in Linux. It looks the NuGet in pytool only has windows version (C:\steven\unit_test_env\Lib\site-packages\edk2toolext\bin\NuGet.exe) but not support the Linux. Below is my detail test steps.
 Do the edk2 CI unit tests work in Linux?</p>
<p class="x_MsoNormal"> </p>
<ol type="1" start="1" style="margin-top:0in">
<li class="x_MsoListParagraph" style="margin-left:0in">Windows :</li></ol>
<p style="margin:0in">c:\steven>py -m venv unit_test_env</p>
<p style="margin:0in">c:\steven>cd  c:\steven\edk2</p>
<p style="margin:0in">c:\steven\edk2>c:\steven\unit_test_env\Scripts\activate.bat</p>
<p style="margin:0in">(unit_test_env) c:\steven\edk2>pip install --upgrade -r pip-requirements.txt</p>
<p style="margin:0in">(unit_test_env) c:\steven\edk2>stuart_setup -c .pytool/CISettings.py TOOL_CHAIN_TAG=VS2019</p>
<p style="margin:0in">(unit_test_env) c:\steven\edk2>stuart_update -c .pytool/CISettings.py TOOL_CHAIN_TAG=VS2019</p>
<p style="margin:0in">(unit_test_env) c:\steven\edk2>edksetup.bat </p>
<p style="margin:0in">(unit_test_env) c:\steven\edk2>edksetup.bat Rebuild </p>
<p style="margin:0in">(unit_test_env) c:\steven\edk2>stuart_ci_build -c .pytool/CISettings.py TOOL_CHAIN_TAG=VS2019 -a X64,IA32 -t DEBUG --verbose</p>
<p style="margin:0in">…</p>
<p style="margin:0in">PROGRESS - Overall Build Status: Success</p>
<p style="margin:0in">SECTION - Summary</p>
<p style="margin:0in">PROGRESS - Success</p>
<p class="x_MsoNormal"> </p>
<ol type="1" start="2" style="margin-top:0in">
<li class="x_MsoListParagraph" style="margin-left:0in">Linux:</li></ol>
<p class="x_MsoNormal">jshi19@ub2-uefi-b01:~/wksp_efi$ python3 -m venv unit_test_env</p>
<p class="x_MsoNormal">jshi19@ub2-uefi-b01:~/wksp_efi$ source unit_test_env/bin/activate</p>
<p class="x_MsoNormal">(unit_test_env) jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ pip install --upgrade -r pip-requirements.txt</p>
<p class="x_MsoNormal">(unit_test_env) jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ make -C BaseTools/</p>
<p class="x_MsoNormal">(unit_test_env) jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ stuart_setup -c .pytool/CISettings.py TOOL_CHAIN_TAG=GCC5</p>
<p class="x_MsoNormal">(unit_test_env) jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ stuart_update -c .pytool/CISettings.py TOOL_CHAIN_TAG=GCC5</p>
<p class="x_MsoNormal">SECTION - Init SDE</p>
<p class="x_MsoNormal">WARNING - Using Pip Tools based BaseTools</p>
<p class="x_MsoNormal">SECTION - Loading Plugins</p>
<p class="x_MsoNormal">SECTION - Start Invocable Tool</p>
<p class="x_MsoNormal">SECTION - Initial update of environment</p>
<p class="x_MsoNormal"><span style="color:red">UpdatingWARNING - [SDE] Failed to fetch NugetDependecy:
<a href="mailto:edk2-acpica-iasl@20200717.0.0">edk2-acpica-iasl@20200717.0.0</a>: [Nuget] We failed to install this version 20200717.0.0 of edk2-acpica-iasl</span></p>
<p class="x_MsoNormal"><span style="color:red">WARNING - [SDE] Failed to fetch NugetDependecy:
<a href="mailto:mu_nasm@2.15.05">mu_nasm@2.15.05</a>: [Nuget] We failed to install this version 2.15.05 of mu_nasm</span></p>
<p class="x_MsoNormal"><span style="color:red">. Done</span></p>
<p class="x_MsoNormal">SECTION -       Updated/Verified 3 dependencies</p>
<p class="x_MsoNormal">SECTION - Second pass update of environment</p>
<p class="x_MsoNormal">UpdatingWARNING - [SDE] Failed to fetch NugetDependecy: <a href="mailto:edk2-acpica-iasl@20200717.0.0">
edk2-acpica-iasl@20200717.0.0</a>: [Nuget] We failed to install this version 20200717.0.0 of edk2-acpica-iasl</p>
<p class="x_MsoNormal">WARNING - [SDE] Failed to fetch NugetDependecy: <a href="mailto:mu_nasm@2.15.05">
mu_nasm@2.15.05</a>: [Nuget] We failed to install this version 2.15.05 of mu_nasm</p>
<p class="x_MsoNormal">. Done</p>
<p class="x_MsoNormal">SECTION -       Updated/Verified 3 dependencies</p>
<p class="x_MsoNormal">ERROR - We were unable to successfully update 2 dependencies in environment</p>
<p class="x_MsoNormal">SECTION - Summary</p>
<p class="x_MsoNormal">ERROR - Error</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Thanks</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"><b><span style="font-size:10.0pt; font-family:"Arial",sans-serif">Steven Shi</span></b></p>
<p class="x_MsoNormal"><b><span style="font-size:12.0pt; font-family:"Arial",sans-serif"> </span></b></p>
<p class="x_MsoNormal"><b><span style="font-size:12.0pt; font-family:"Arial",sans-serif"> </span></b></p>
<p class="x_MsoNormal"> </p>
</blockquote>
<div></div>
</div>
</blockquote>

</div>
</body>
</html>


 <div width="1" style="color:white;clear:both">_._,_._,_</div> <hr>   Groups.io Links:<p>   You receive all messages sent to this group.    <p> <a target="_blank" href="https://edk2.groups.io/g/devel/message/77295">View/Reply Online (#77295)</a> |    |  <a target="_blank" href="https://groups.io/mt/83873292/1813853">Mute This Topic</a>  | <a href="https://edk2.groups.io/g/devel/post">New Topic</a><br>    <a href="https://edk2.groups.io/g/devel/editsub/1813853">Your Subscription</a> | <a href="mailto:devel+owner@edk2.groups.io">Contact Group Owner</a> |  <a href="https://edk2.groups.io/g/devel/unsub">Unsubscribe</a>  [edk2-devel-archive@redhat.com]<br> <div width="1" style="color:white;clear:both">_._,_._,_</div>