citadel/meta-selftest/classes/test_events.bbclass
brl 098b8f982b Squashed 'poky/' content from commit 4469acdf1d
git-subtree-dir: poky
git-subtree-split: 4469acdf1d0338220f3fe2ecb5e079eea6fda375
2017-12-04 16:35:29 -05:00

17 lines
497 B
Plaintext

python test1_eventhandler() {
bb.note("Test for bb.event.BuildStarted")
}
python test2_eventhandler() {
bb.note("Test for bb.event.BuildCompleted")
}
python test3_eventhandler() {
bb.note("Test for bb.event.InvalidEvent")
}
addhandler test1_eventhandler
test1_eventhandler[eventmask] = "bb.event.BuildStarted"
addhandler test2_eventhandler
test2_eventhandler[eventmask] = "bb.event.BuildCompleted"
addhandler test3_eventhandler
test3_eventhandler[eventmask] = "bb.event.InvalidEvent"