On 10 July 2017 at 21:22, <libertad.c...@intel.com> wrote: > +class opkgBasicTest(opkgTest): > + @skipIfNotFeature('package-management', 'Test requires > package-management to be in IMAGE_FEATURES') > + @skipIfNotDataVar('IMAGE_PKGTYPE','ipk', 'IPK is not the primary > package manager') > + @OEHasPackage(['opkg']) > + > + @OETestDepends(['ssh.SSHTest.test_ssh']) > + @OETestID(1841) > + def test_opkg_list(self): > + self.opkg('list') > + > + @OETestID(1842) > + def test_opkg_list_installed(self): > + self.opkg('list-installed') > + > + @OETestID(1843) > + def test_opkg_depends(self): > + self.opkg('depends opkg') > + > + @OETestID(1837) > + def test_opkg_whatdepends(self): > + self.opkg('whatdepends opkg') > + > + @OETestID(1838) > + def test_opkg_status(self): > + self.opkg('status') > + > + @OETestID(1839) > + def test_opkg_info(self): > + self.opkg('info opkg') > + > + @OETestID(1840) > + def test_opkg_print_architecture(self): > + self.opkg('print-architecture') >
I'd feel a lot happier that this was a selftest if it was exercising more than "opkg doesn't crash". If opkg is replaced by a script that does "echo haha; exit 0" this test case would pass, so can it verify the output too. Ross
-- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core