<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">This tests are made for runtime/cases, I believe it is the format other runtime test are script, they only check for return code == 0 . Should we consider opening
 another bug to add opkg testcases to selftest? <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Best Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Libertad G.
<o:p></o:p></span></p>
<p class="MsoNormal"><a name="_MailEndCompose"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></a></p>
<p class="MsoNormal"><a name="_____replyseparator"></a><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> Burton, Ross [mailto:ross.burton@intel.com]
<br>
<b>Sent:</b> Monday, July 17, 2017 7:28 AM<br>
<b>To:</b> Cruz, Libertad &lt;libertad.cruz@intel.com&gt;<br>
<b>Cc:</b> OE-core &lt;openembedded-core@lists.openembedded.org&gt;<br>
<b>Subject:</b> Re: [OE-core] [PATCH v2] opkg.py Adds tests for ipk/opkg<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">On 10 July 2017 at 21:22, &lt;<a href="mailto:libertad.cruz@intel.com" target="_blank">libertad.cruz@intel.com</a>&gt; wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<p class="MsoNormal">&#43;class opkgBasicTest(opkgTest):<br>
&#43;&nbsp; &nbsp; @skipIfNotFeature('package-management', 'Test requires package-management to be in IMAGE_FEATURES')<br>
&#43;&nbsp; &nbsp; @skipIfNotDataVar('IMAGE_PKGTYPE','ipk', 'IPK is not the primary package manager')<br>
&#43;&nbsp; &nbsp; @OEHasPackage(['opkg'])<br>
&#43;<br>
&#43;&nbsp; &nbsp; @OETestDepends(['ssh.SSHTest.test_ssh'])<br>
&#43;&nbsp; &nbsp; @OETestID(1841)<br>
&#43;&nbsp; &nbsp; def test_opkg_list(self):<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp;self.opkg('list')<br>
&#43;<br>
&#43;&nbsp; &nbsp; @OETestID(1842)<br>
&#43;&nbsp; &nbsp; def test_opkg_list_installed(self):<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp;self.opkg('list-installed')<br>
&#43;<br>
&#43;&nbsp; &nbsp; @OETestID(1843)<br>
&#43;&nbsp; &nbsp; def test_opkg_depends(self):<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp;self.opkg('depends opkg')<br>
&#43;<br>
&#43;&nbsp; &nbsp; @OETestID(1837)<br>
&#43;&nbsp; &nbsp; def test_opkg_whatdepends(self):<br>
&#43;&nbsp; &nbsp; &nbsp; self.opkg('whatdepends opkg')<br>
&#43;<br>
&#43;&nbsp; &nbsp; @OETestID(1838)<br>
&#43;&nbsp; &nbsp; def test_opkg_status(self):<br>
&#43;&nbsp; &nbsp; &nbsp; self.opkg('status')<br>
&#43;<br>
&#43;&nbsp; &nbsp; @OETestID(1839)<br>
&#43;&nbsp; &nbsp; def test_opkg_info(self):<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; self.opkg('info opkg')<br>
&#43;<br>
&#43;&nbsp; &nbsp; @OETestID(1840)<br>
&#43;&nbsp; &nbsp; def test_opkg_print_architecture(self):<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; self.opkg('print-architecture')<o:p></o:p></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><br>
I'd feel a lot happier that this was a selftest if it was exercising more than &quot;opkg doesn't crash&quot;.&nbsp; If opkg is replaced by a script that does &quot;echo haha; exit 0&quot; this test case would pass, so can it verify the output too.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Ross<o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>