summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/runtime/cases/dnf.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/cases/dnf.py b/meta/lib/oeqa/runtime/cases/dnf.py
index eb3af07f0f..2f87296b4e 100644
--- a/meta/lib/oeqa/runtime/cases/dnf.py
+++ b/meta/lib/oeqa/runtime/cases/dnf.py
@@ -26,22 +26,27 @@ class DnfBasicTest(DnfTest):
26 'RPM is not the primary package manager') 26 'RPM is not the primary package manager')
27 @OEHasPackage(['dnf']) 27 @OEHasPackage(['dnf'])
28 @OETestDepends(['ssh.SSHTest.test_ssh']) 28 @OETestDepends(['ssh.SSHTest.test_ssh'])
29 @OETestID(1735)
29 def test_dnf_help(self): 30 def test_dnf_help(self):
30 self.dnf('--help') 31 self.dnf('--help')
31 32
32 @OETestDepends(['dnf.DnfBasicTest.test_dnf_help']) 33 @OETestDepends(['dnf.DnfBasicTest.test_dnf_help'])
34 @OETestID(1739)
33 def test_dnf_version(self): 35 def test_dnf_version(self):
34 self.dnf('--version') 36 self.dnf('--version')
35 37
36 @OETestDepends(['dnf.DnfBasicTest.test_dnf_help']) 38 @OETestDepends(['dnf.DnfBasicTest.test_dnf_help'])
39 @OETestID(1737)
37 def test_dnf_info(self): 40 def test_dnf_info(self):
38 self.dnf('info dnf') 41 self.dnf('info dnf')
39 42
40 @OETestDepends(['dnf.DnfBasicTest.test_dnf_help']) 43 @OETestDepends(['dnf.DnfBasicTest.test_dnf_help'])
44 @OETestID(1738)
41 def test_dnf_search(self): 45 def test_dnf_search(self):
42 self.dnf('search dnf') 46 self.dnf('search dnf')
43 47
44 @OETestDepends(['dnf.DnfBasicTest.test_dnf_help']) 48 @OETestDepends(['dnf.DnfBasicTest.test_dnf_help'])
49 @OETestID(1736)
45 def test_dnf_history(self): 50 def test_dnf_history(self):
46 self.dnf('history') 51 self.dnf('history')
47 52
@@ -65,6 +70,7 @@ class DnfRepoTest(DnfTest):
65 self.dnf(" ".join(cmdlinerepoopts) + " --nogpgcheck " + command) 70 self.dnf(" ".join(cmdlinerepoopts) + " --nogpgcheck " + command)
66 71
67 @OETestDepends(['dnf.DnfBasicTest.test_dnf_help']) 72 @OETestDepends(['dnf.DnfBasicTest.test_dnf_help'])
73 @OETestID(1744)
68 def test_dnf_makecache(self): 74 def test_dnf_makecache(self):
69 self.dnf_with_repo('makecache') 75 self.dnf_with_repo('makecache')
70 76
@@ -75,19 +81,23 @@ class DnfRepoTest(DnfTest):
75# self.dnf_with_repo('repolist') 81# self.dnf_with_repo('repolist')
76 82
77 @OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache']) 83 @OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache'])
84 @OETestID(1746)
78 def test_dnf_repoinfo(self): 85 def test_dnf_repoinfo(self):
79 self.dnf_with_repo('repoinfo') 86 self.dnf_with_repo('repoinfo')
80 87
81 @OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache']) 88 @OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache'])
89 @OETestID(1740)
82 def test_dnf_install(self): 90 def test_dnf_install(self):
83 self.dnf_with_repo('install -y run-postinsts-dev') 91 self.dnf_with_repo('install -y run-postinsts-dev')
84 92
85 @OETestDepends(['dnf.DnfRepoTest.test_dnf_install']) 93 @OETestDepends(['dnf.DnfRepoTest.test_dnf_install'])
94 @OETestID(1741)
86 def test_dnf_install_dependency(self): 95 def test_dnf_install_dependency(self):
87 self.dnf_with_repo('remove -y run-postinsts') 96 self.dnf_with_repo('remove -y run-postinsts')
88 self.dnf_with_repo('install -y run-postinsts-dev') 97 self.dnf_with_repo('install -y run-postinsts-dev')
89 98
90 @OETestDepends(['dnf.DnfRepoTest.test_dnf_install_dependency']) 99 @OETestDepends(['dnf.DnfRepoTest.test_dnf_install_dependency'])
100 @OETestID(1742)
91 def test_dnf_install_from_disk(self): 101 def test_dnf_install_from_disk(self):
92 self.dnf_with_repo('remove -y run-postinsts-dev') 102 self.dnf_with_repo('remove -y run-postinsts-dev')
93 self.dnf_with_repo('install -y --downloadonly run-postinsts-dev') 103 self.dnf_with_repo('install -y --downloadonly run-postinsts-dev')
@@ -96,6 +106,7 @@ class DnfRepoTest(DnfTest):
96 self.dnf_with_repo('install -y %s' % output) 106 self.dnf_with_repo('install -y %s' % output)
97 107
98 @OETestDepends(['dnf.DnfRepoTest.test_dnf_install_from_disk']) 108 @OETestDepends(['dnf.DnfRepoTest.test_dnf_install_from_disk'])
109 @OETestID(1743)
99 def test_dnf_install_from_http(self): 110 def test_dnf_install_from_http(self):
100 output = subprocess.check_output('%s %s -name run-postinsts-dev*' % (bb.utils.which(os.getenv('PATH'), "find"), 111 output = subprocess.check_output('%s %s -name run-postinsts-dev*' % (bb.utils.which(os.getenv('PATH'), "find"),
101 os.path.join(self.tc.td['WORKDIR'], 'oe-testimage-repo')), shell=True).decode("utf-8") 112 os.path.join(self.tc.td['WORKDIR'], 'oe-testimage-repo')), shell=True).decode("utf-8")
@@ -105,6 +116,7 @@ class DnfRepoTest(DnfTest):
105 self.dnf_with_repo('install -y %s' % url) 116 self.dnf_with_repo('install -y %s' % url)
106 117
107 @OETestDepends(['dnf.DnfRepoTest.test_dnf_install']) 118 @OETestDepends(['dnf.DnfRepoTest.test_dnf_install'])
119 @OETestID(1745)
108 def test_dnf_reinstall(self): 120 def test_dnf_reinstall(self):
109 self.dnf_with_repo('reinstall -y run-postinsts-dev') 121 self.dnf_with_repo('reinstall -y run-postinsts-dev')
110 122