qapi: Enforce event naming rules

Event names should be ALL_CAPS with words separated by underscore.
Enforce this.  The only offenders are in tests/.  Fix them.  Existing
test event-case covers the new error.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20210323094025.3569441-14-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
Markus Armbruster 2021-03-23 10:40:10 +01:00
parent 00ffe242d6
commit d4f4cae8de
11 changed files with 22 additions and 34 deletions

View file

@ -0,0 +1,2 @@
event-case.json: In event 'oops':
event-case.json:1: name of event must not use lowercase or '-'