qapi: Enforce event naming rules
authorMarkus Armbruster <armbru@redhat.com>
Tue, 23 Mar 2021 09:40:10 +0000 (10:40 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 23 Mar 2021 21:31:05 +0000 (22:31 +0100)
commitd4f4cae8de19d2bdfcf09cdc4676e9b99857dcf2
tree09dcfca6c1af3795cc7902b7a0282f5f78182fcc
parent00ffe242d64f7622965c52c62adb06fd9664ada8
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>
scripts/qapi/expr.py
tests/qapi-schema/doc-good.json
tests/qapi-schema/doc-good.out
tests/qapi-schema/doc-good.txt
tests/qapi-schema/doc-invalid-return.json
tests/qapi-schema/event-case.err
tests/qapi-schema/event-case.json
tests/qapi-schema/event-case.out
tests/qapi-schema/qapi-schema-test.json
tests/qapi-schema/qapi-schema-test.out
tests/unit/test-qmp-event.c