summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/tests/parse.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/tests/parse.py')
-rw-r--r--bitbake/lib/bb/tests/parse.py10
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 () {
179addtask do_patch after do_foo after do_unpack before do_configure before do_compile 179addtask do_patch after do_foo after do_unpack before do_configure before do_compile
180addtask do_fetch do_patch 180addtask do_fetch do_patch
181 181
182addtask do_myplaintask
183addtask do_myplaintask2
184deltask do_myplaintask2
185addtask do_mytask# comment
186addtask do_mytask2 # comment2
187addtask do_mytask3
188deltask do_mytask3# comment
189deltask do_mytask4 # comment2
190
182MYVAR = "do_patch" 191MYVAR = "do_patch"
183EMPTYVAR = "" 192EMPTYVAR = ""
184deltask do_fetch ${MYVAR} ${EMPTYVAR} 193deltask 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 = """