Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] opkg.py Adds tests for ipk/opkg
@ 2017-07-10 20:08 libertad.cruz
  2017-07-10 20:31 ` ✗ patchtest: failure for " Patchwork
  0 siblings, 1 reply; 2+ messages in thread
From: libertad.cruz @ 2017-07-10 20:08 UTC (permalink / raw)
  To: openembedded-core; +Cc: Libertad Cruz

From: Libertad Cruz <libertad.cruz@intel.com>

Adds opkg selftest tests cases which exercises basic functional operation of the opkg package manager
[YOCTO #11488]
---
 meta/lib/oeqa/runtime/cases/opkg.py | 51 +++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)
 create mode 100644 meta/lib/oeqa/runtime/cases/opkg.py

diff --git a/meta/lib/oeqa/runtime/cases/opkg.py b/meta/lib/oeqa/runtime/cases/opkg.py
new file mode 100644
index 0000000..3e76176
--- /dev/null
+++ b/meta/lib/oeqa/runtime/cases/opkg.py
@@ -0,0 +1,51 @@
+import os
+import re
+import subprocess
+
+from oeqa.runtime.case import OERuntimeTestCase
+from oeqa.core.decorator.depends import OETestDepends
+from oeqa.core.decorator.oeid import OETestID
+from oeqa.core.decorator.data import skipIfNotDataVar, skipIfNotFeature
+from oeqa.runtime.decorator.package import OEHasPackage
+
+class opkgTest(OERuntimeTestCase):
+    def opkg(self, command, expected = 0):
+        command = 'opkg %s' % command
+        status, output = self.target.run(command, 1500)
+        message = os.linesep.join([command, output])
+        self.assertEqual(status, expected, message)
+        return output
+
+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')
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* ✗ patchtest: failure for opkg.py Adds tests for ipk/opkg
  2017-07-10 20:08 [PATCH] opkg.py Adds tests for ipk/opkg libertad.cruz
@ 2017-07-10 20:31 ` Patchwork
  0 siblings, 0 replies; 2+ messages in thread
From: Patchwork @ 2017-07-10 20:31 UTC (permalink / raw)
  To: libertad.cruz; +Cc: openembedded-core

== Series Details ==

Series: opkg.py Adds tests for ipk/opkg
Revision: 1
URL   : https://patchwork.openembedded.org/series/7654/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Patch            opkg.py Adds tests for ipk/opkg
 Issue             Shortlog does not follow expected format [test_shortlog_format] 
  Suggested fix    Commit shortlog (first line of commit message) should follow the format "<target>: <summary>"

* Patch            opkg.py Adds tests for ipk/opkg
 Issue             Patch is missing Signed-off-by [test_signed_off_by_presence] 
  Suggested fix    Sign off the patch (either manually or with "git commit --amend -s")



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite:     http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-10 20:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-10 20:08 [PATCH] opkg.py Adds tests for ipk/opkg libertad.cruz
2017-07-10 20:31 ` ✗ patchtest: failure for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox