summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/wic.py
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2015-10-16 11:43:06 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-21 22:56:07 +0100
commit1881564cdd8f52c2d7ee46e4c2d38272c4d9820c (patch)
tree1fde62ae5056ee6ec889604b2bff266a3b78e960 /meta/lib/oeqa/selftest/wic.py
parent2ac34d2a199480eaf0bc4401a4616dc5b54e37b4 (diff)
downloadpoky-1881564cdd8f52c2d7ee46e4c2d38272c4d9820c.tar.gz
oeqa/selftest/wic: remove numbers from test names
There isn't any required ordering of tests, and the numbers meant that the tests didn't appear in oe-selftest --list-classes. (From OE-Core rev: 2a4ecc88ca10ef6abe55dddb96842b579b73497c) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/wic.py')
-rw-r--r--meta/lib/oeqa/selftest/wic.py46
1 files changed, 23 insertions, 23 deletions
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py
index ca9a5981bd..ea78e22594 100644
--- a/meta/lib/oeqa/selftest/wic.py
+++ b/meta/lib/oeqa/selftest/wic.py
@@ -56,29 +56,29 @@ class Wic(oeSelfTest):
56 rmtree(self.resultdir, ignore_errors=True) 56 rmtree(self.resultdir, ignore_errors=True)
57 57
58 @testcase(1208) 58 @testcase(1208)
59 def test01_help(self): 59 def test_help(self):
60 """Test wic --help""" 60 """Test wic --help"""
61 self.assertEqual(0, runCmd('wic --help').status) 61 self.assertEqual(0, runCmd('wic --help').status)
62 62
63 @testcase(1209) 63 @testcase(1209)
64 def test02_createhelp(self): 64 def test_createhelp(self):
65 """Test wic create --help""" 65 """Test wic create --help"""
66 self.assertEqual(0, runCmd('wic create --help').status) 66 self.assertEqual(0, runCmd('wic create --help').status)
67 67
68 @testcase(1210) 68 @testcase(1210)
69 def test03_listhelp(self): 69 def test_listhelp(self):
70 """Test wic list --help""" 70 """Test wic list --help"""
71 self.assertEqual(0, runCmd('wic list --help').status) 71 self.assertEqual(0, runCmd('wic list --help').status)
72 72
73 @testcase(1211) 73 @testcase(1211)
74 def test04_build_image_name(self): 74 def test_build_image_name(self):
75 """Test wic create directdisk --image-name core-image-minimal""" 75 """Test wic create directdisk --image-name core-image-minimal"""
76 self.assertEqual(0, runCmd("wic create directdisk " 76 self.assertEqual(0, runCmd("wic create directdisk "
77 "--image-name core-image-minimal").status) 77 "--image-name core-image-minimal").status)
78 self.assertEqual(1, len(glob(self.resultdir + "directdisk-*.direct"))) 78 self.assertEqual(1, len(glob(self.resultdir + "directdisk-*.direct")))
79 79
80 @testcase(1212) 80 @testcase(1212)
81 def test05_build_artifacts(self): 81 def test_build_artifacts(self):
82 """Test wic create directdisk providing all artifacts.""" 82 """Test wic create directdisk providing all artifacts."""
83 vars = dict((var.lower(), get_bb_var(var, 'core-image-minimal')) \ 83 vars = dict((var.lower(), get_bb_var(var, 'core-image-minimal')) \
84 for var in ('STAGING_DATADIR', 'DEPLOY_DIR_IMAGE', 84 for var in ('STAGING_DATADIR', 'DEPLOY_DIR_IMAGE',
@@ -92,40 +92,40 @@ class Wic(oeSelfTest):
92 self.assertEqual(1, len(glob(self.resultdir + "directdisk-*.direct"))) 92 self.assertEqual(1, len(glob(self.resultdir + "directdisk-*.direct")))
93 93
94 @testcase(1157) 94 @testcase(1157)
95 def test06_gpt_image(self): 95 def test_gpt_image(self):
96 """Test creation of core-image-minimal with gpt table and UUID boot""" 96 """Test creation of core-image-minimal with gpt table and UUID boot"""
97 self.assertEqual(0, runCmd("wic create directdisk-gpt " 97 self.assertEqual(0, runCmd("wic create directdisk-gpt "
98 "--image-name core-image-minimal").status) 98 "--image-name core-image-minimal").status)
99 self.assertEqual(1, len(glob(self.resultdir + "directdisk-*.direct"))) 99 self.assertEqual(1, len(glob(self.resultdir + "directdisk-*.direct")))
100 100
101 @testcase(1213) 101 @testcase(1213)
102 def test07_unsupported_subcommand(self): 102 def test_unsupported_subcommand(self):
103 """Test unsupported subcommand""" 103 """Test unsupported subcommand"""
104 self.assertEqual(1, runCmd('wic unsupported', 104 self.assertEqual(1, runCmd('wic unsupported',
105 ignore_status=True).status) 105 ignore_status=True).status)
106 106
107 @testcase(1214) 107 @testcase(1214)
108 def test08_no_command(self): 108 def test_no_command(self):
109 """Test wic without command""" 109 """Test wic without command"""
110 self.assertEqual(1, runCmd('wic', ignore_status=True).status) 110 self.assertEqual(1, runCmd('wic', ignore_status=True).status)
111 111
112 @testcase(1215) 112 @testcase(1215)
113 def test09_help_overview(self): 113 def test_help_overview(self):
114 """Test wic help overview""" 114 """Test wic help overview"""
115 self.assertEqual(0, runCmd('wic help overview').status) 115 self.assertEqual(0, runCmd('wic help overview').status)
116 116
117 @testcase(1216) 117 @testcase(1216)
118 def test10_help_plugins(self): 118 def test_help_plugins(self):
119 """Test wic help plugins""" 119 """Test wic help plugins"""
120 self.assertEqual(0, runCmd('wic help plugins').status) 120 self.assertEqual(0, runCmd('wic help plugins').status)
121 121
122 @testcase(1217) 122 @testcase(1217)
123 def test11_help_kickstart(self): 123 def test_help_kickstart(self):
124 """Test wic help kickstart""" 124 """Test wic help kickstart"""
125 self.assertEqual(0, runCmd('wic help kickstart').status) 125 self.assertEqual(0, runCmd('wic help kickstart').status)
126 126
127 @testcase(1264) 127 @testcase(1264)
128 def test12_compress_gzip(self): 128 def test_compress_gzip(self):
129 """Test compressing an image with gzip""" 129 """Test compressing an image with gzip"""
130 self.assertEqual(0, runCmd("wic create directdisk " 130 self.assertEqual(0, runCmd("wic create directdisk "
131 "--image-name core-image-minimal " 131 "--image-name core-image-minimal "
@@ -134,7 +134,7 @@ class Wic(oeSelfTest):
134 "directdisk-*.direct.gz"))) 134 "directdisk-*.direct.gz")))
135 135
136 @testcase(1265) 136 @testcase(1265)
137 def test13_compress_bzip2(self): 137 def test_compress_bzip2(self):
138 """Test compressing an image with bzip2""" 138 """Test compressing an image with bzip2"""
139 self.assertEqual(0, runCmd("wic create directdisk " 139 self.assertEqual(0, runCmd("wic create directdisk "
140 "--image-name core-image-minimal " 140 "--image-name core-image-minimal "
@@ -143,7 +143,7 @@ class Wic(oeSelfTest):
143 "directdisk-*.direct.bz2"))) 143 "directdisk-*.direct.bz2")))
144 144
145 @testcase(1266) 145 @testcase(1266)
146 def test14_compress_xz(self): 146 def test_compress_xz(self):
147 """Test compressing an image with xz""" 147 """Test compressing an image with xz"""
148 self.assertEqual(0, runCmd("wic create directdisk " 148 self.assertEqual(0, runCmd("wic create directdisk "
149 "--image-name core-image-minimal " 149 "--image-name core-image-minimal "
@@ -152,14 +152,14 @@ class Wic(oeSelfTest):
152 "directdisk-*.direct.xz"))) 152 "directdisk-*.direct.xz")))
153 153
154 @testcase(1267) 154 @testcase(1267)
155 def test15_wrong_compressor(self): 155 def test_wrong_compressor(self):
156 """Test how wic breaks if wrong compressor is provided""" 156 """Test how wic breaks if wrong compressor is provided"""
157 self.assertEqual(2, runCmd("wic create directdisk " 157 self.assertEqual(2, runCmd("wic create directdisk "
158 "--image-name core-image-minimal " 158 "--image-name core-image-minimal "
159 "-c wrong", ignore_status=True).status) 159 "-c wrong", ignore_status=True).status)
160 160
161 @testcase(1268) 161 @testcase(1268)
162 def test16_rootfs_indirect_recipes(self): 162 def test_rootfs_indirect_recipes(self):
163 """Test usage of rootfs plugin with rootfs recipes""" 163 """Test usage of rootfs plugin with rootfs recipes"""
164 wks = "directdisk-multi-rootfs" 164 wks = "directdisk-multi-rootfs"
165 self.assertEqual(0, runCmd("wic create %s " 165 self.assertEqual(0, runCmd("wic create %s "
@@ -170,7 +170,7 @@ class Wic(oeSelfTest):
170 self.assertEqual(1, len(glob(self.resultdir + "%s*.direct" % wks))) 170 self.assertEqual(1, len(glob(self.resultdir + "%s*.direct" % wks)))
171 171
172 @testcase(1269) 172 @testcase(1269)
173 def test17_rootfs_artifacts(self): 173 def test_rootfs_artifacts(self):
174 """Test usage of rootfs plugin with rootfs paths""" 174 """Test usage of rootfs plugin with rootfs paths"""
175 vars = dict((var.lower(), get_bb_var(var, 'core-image-minimal')) \ 175 vars = dict((var.lower(), get_bb_var(var, 'core-image-minimal')) \
176 for var in ('STAGING_DATADIR', 'DEPLOY_DIR_IMAGE', 176 for var in ('STAGING_DATADIR', 'DEPLOY_DIR_IMAGE',
@@ -188,7 +188,7 @@ class Wic(oeSelfTest):
188 "%(wks)s-*.direct" % vars))) 188 "%(wks)s-*.direct" % vars)))
189 189
190 @testcase(1346) 190 @testcase(1346)
191 def test18_iso_image(self): 191 def test_iso_image(self):
192 """Test creation of hybrid iso image with legacy and EFI boot""" 192 """Test creation of hybrid iso image with legacy and EFI boot"""
193 self.assertEqual(0, runCmd("wic create mkhybridiso " 193 self.assertEqual(0, runCmd("wic create mkhybridiso "
194 "--image-name core-image-minimal").status) 194 "--image-name core-image-minimal").status)
@@ -196,7 +196,7 @@ class Wic(oeSelfTest):
196 self.assertEqual(1, len(glob(self.resultdir + "HYBRID_ISO_IMG-*.iso"))) 196 self.assertEqual(1, len(glob(self.resultdir + "HYBRID_ISO_IMG-*.iso")))
197 197
198 @testcase(1347) 198 @testcase(1347)
199 def test19_image_env(self): 199 def test_image_env(self):
200 """Test generation of <image>.env files.""" 200 """Test generation of <image>.env files."""
201 image = 'core-image-minimal' 201 image = 'core-image-minimal'
202 stdir = get_bb_var('STAGING_DIR_TARGET', image) 202 stdir = get_bb_var('STAGING_DIR_TARGET', image)
@@ -219,7 +219,7 @@ class Wic(oeSelfTest):
219 self.assertTrue(content[var]) 219 self.assertTrue(content[var])
220 220
221 @testcase(1351) 221 @testcase(1351)
222 def test20_wic_image_type(self): 222 def test_wic_image_type(self):
223 """Test building wic images by bitbake""" 223 """Test building wic images by bitbake"""
224 self.assertEqual(0, bitbake('wic-image-minimal').status) 224 self.assertEqual(0, bitbake('wic-image-minimal').status)
225 225
@@ -234,7 +234,7 @@ class Wic(oeSelfTest):
234 self.assertTrue(os.path.isfile(os.path.realpath(path))) 234 self.assertTrue(os.path.isfile(os.path.realpath(path)))
235 235
236 @testcase(1348) 236 @testcase(1348)
237 def test21_qemux86_directdisk(self): 237 def test_qemux86_directdisk(self):
238 """Test creation of qemux-86-directdisk image""" 238 """Test creation of qemux-86-directdisk image"""
239 image = "qemux86-directdisk" 239 image = "qemux86-directdisk"
240 self.assertEqual(0, runCmd("wic create %s -e core-image-minimal" \ 240 self.assertEqual(0, runCmd("wic create %s -e core-image-minimal" \
@@ -242,7 +242,7 @@ class Wic(oeSelfTest):
242 self.assertEqual(1, len(glob(self.resultdir + "%s-*direct" % image))) 242 self.assertEqual(1, len(glob(self.resultdir + "%s-*direct" % image)))
243 243
244 @testcase(1349) 244 @testcase(1349)
245 def test22_mkgummidisk(self): 245 def test_mkgummidisk(self):
246 """Test creation of mkgummidisk image""" 246 """Test creation of mkgummidisk image"""
247 image = "mkgummidisk" 247 image = "mkgummidisk"
248 self.assertEqual(0, runCmd("wic create %s -e core-image-minimal" \ 248 self.assertEqual(0, runCmd("wic create %s -e core-image-minimal" \
@@ -250,7 +250,7 @@ class Wic(oeSelfTest):
250 self.assertEqual(1, len(glob(self.resultdir + "%s-*direct" % image))) 250 self.assertEqual(1, len(glob(self.resultdir + "%s-*direct" % image)))
251 251
252 @testcase(1350) 252 @testcase(1350)
253 def test23_mkefidisk(self): 253 def test_mkefidisk(self):
254 """Test creation of mkefidisk image""" 254 """Test creation of mkefidisk image"""
255 image = "mkefidisk" 255 image = "mkefidisk"
256 self.assertEqual(0, runCmd("wic create %s -e core-image-minimal" \ 256 self.assertEqual(0, runCmd("wic create %s -e core-image-minimal" \