M7350/oe-core/meta-selftest/classes/test_events.bbclass

17 lines
497 B
Plaintext
Raw Normal View History

2024-09-09 08:57:42 +00:00
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"