diff options
Diffstat (limited to 'bitbake/lib/bb/tests/parse.py')
-rw-r--r-- | bitbake/lib/bb/tests/parse.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/parse.py b/bitbake/lib/bb/tests/parse.py index 72d1962e7e..d076fcc208 100644 --- a/bitbake/lib/bb/tests/parse.py +++ b/bitbake/lib/bb/tests/parse.py | |||
@@ -179,6 +179,15 @@ python () { | |||
179 | addtask do_patch after do_foo after do_unpack before do_configure before do_compile | 179 | addtask do_patch after do_foo after do_unpack before do_configure before do_compile |
180 | addtask do_fetch do_patch | 180 | addtask do_fetch do_patch |
181 | 181 | ||
182 | addtask do_myplaintask | ||
183 | addtask do_myplaintask2 | ||
184 | deltask do_myplaintask2 | ||
185 | addtask do_mytask# comment | ||
186 | addtask do_mytask2 # comment2 | ||
187 | addtask do_mytask3 | ||
188 | deltask do_mytask3# comment | ||
189 | deltask do_mytask4 # comment2 | ||
190 | |||
182 | MYVAR = "do_patch" | 191 | MYVAR = "do_patch" |
183 | EMPTYVAR = "" | 192 | EMPTYVAR = "" |
184 | deltask do_fetch ${MYVAR} ${EMPTYVAR} | 193 | deltask do_fetch ${MYVAR} ${EMPTYVAR} |
@@ -195,6 +204,7 @@ deltask ${EMPTYVAR} | |||
195 | self.assertTrue("addtask contained multiple 'before' keywords" in output) | 204 | self.assertTrue("addtask contained multiple 'before' keywords" in output) |
196 | self.assertTrue("addtask contained multiple 'after' keywords" in output) | 205 | self.assertTrue("addtask contained multiple 'after' keywords" in output) |
197 | self.assertTrue('addtask ignored: " do_patch"' in output) | 206 | self.assertTrue('addtask ignored: " do_patch"' in output) |
207 | self.assertEqual(['do_myplaintask', 'do_mytask', 'do_mytask2'], d.getVar("__BBTASKS")) | ||
198 | #self.assertTrue('dependent task do_foo for do_patch does not exist' in output) | 208 | #self.assertTrue('dependent task do_foo for do_patch does not exist' in output) |
199 | 209 | ||
200 | broken_multiline_comment = """ | 210 | broken_multiline_comment = """ |