summaryrefslogtreecommitdiffstats
path: root/meta-selftest/classes/test_events.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta-selftest/classes/test_events.bbclass')
-rw-r--r--meta-selftest/classes/test_events.bbclass16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta-selftest/classes/test_events.bbclass b/meta-selftest/classes/test_events.bbclass
new file mode 100644
index 0000000..35324eb
--- /dev/null
+++ b/meta-selftest/classes/test_events.bbclass
@@ -0,0 +1,16 @@
1python test1_eventhandler() {
2 bb.note("Test for bb.event.BuildStarted")
3}
4python test2_eventhandler() {
5 bb.note("Test for bb.event.BuildCompleted")
6}
7python test3_eventhandler() {
8 bb.note("Test for bb.event.InvalidEvent")
9}
10
11addhandler test1_eventhandler
12test1_eventhandler[eventmask] = "bb.event.BuildStarted"
13addhandler test2_eventhandler
14test2_eventhandler[eventmask] = "bb.event.BuildCompleted"
15addhandler test3_eventhandler
16test3_eventhandler[eventmask] = "bb.event.InvalidEvent"