From e90a61e3cc1ab30a2069173aee8b592933d827a1 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Tue, 23 Mar 2021 10:40:14 +0100 Subject: tests/qapi-schema: Rename pragma-*-crap to pragma-value-not-* Rename pragma-doc-required-crap to pragma-not-bool, pragma-returns-whitelist-crap to pragma-value-not-list, and pragma-name-case-whitelist-crap to pragma-value-not-list-of-str. Signed-off-by: Markus Armbruster Message-Id: <20210323094025.3569441-18-armbru@redhat.com> Reviewed-by: Eric Blake --- tests/qapi-schema/meson.build | 6 +++--- tests/qapi-schema/pragma-doc-required-crap.err | 1 - tests/qapi-schema/pragma-doc-required-crap.json | 3 --- tests/qapi-schema/pragma-doc-required-crap.out | 0 tests/qapi-schema/pragma-name-case-whitelist-crap.err | 1 - tests/qapi-schema/pragma-name-case-whitelist-crap.json | 3 --- tests/qapi-schema/pragma-name-case-whitelist-crap.out | 0 tests/qapi-schema/pragma-returns-whitelist-crap.err | 1 - tests/qapi-schema/pragma-returns-whitelist-crap.json | 3 --- tests/qapi-schema/pragma-returns-whitelist-crap.out | 0 tests/qapi-schema/pragma-value-not-bool.err | 1 + tests/qapi-schema/pragma-value-not-bool.json | 3 +++ tests/qapi-schema/pragma-value-not-bool.out | 0 tests/qapi-schema/pragma-value-not-list-of-str.err | 1 + tests/qapi-schema/pragma-value-not-list-of-str.json | 3 +++ tests/qapi-schema/pragma-value-not-list-of-str.out | 0 tests/qapi-schema/pragma-value-not-list.err | 1 + tests/qapi-schema/pragma-value-not-list.json | 3 +++ tests/qapi-schema/pragma-value-not-list.out | 0 19 files changed, 15 insertions(+), 15 deletions(-) delete mode 100644 tests/qapi-schema/pragma-doc-required-crap.err delete mode 100644 tests/qapi-schema/pragma-doc-required-crap.json delete mode 100644 tests/qapi-schema/pragma-doc-required-crap.out delete mode 100644 tests/qapi-schema/pragma-name-case-whitelist-crap.err delete mode 100644 tests/qapi-schema/pragma-name-case-whitelist-crap.json delete mode 100644 tests/qapi-schema/pragma-name-case-whitelist-crap.out delete mode 100644 tests/qapi-schema/pragma-returns-whitelist-crap.err delete mode 100644 tests/qapi-schema/pragma-returns-whitelist-crap.json delete mode 100644 tests/qapi-schema/pragma-returns-whitelist-crap.out create mode 100644 tests/qapi-schema/pragma-value-not-bool.err create mode 100644 tests/qapi-schema/pragma-value-not-bool.json create mode 100644 tests/qapi-schema/pragma-value-not-bool.out create mode 100644 tests/qapi-schema/pragma-value-not-list-of-str.err create mode 100644 tests/qapi-schema/pragma-value-not-list-of-str.json create mode 100644 tests/qapi-schema/pragma-value-not-list-of-str.out create mode 100644 tests/qapi-schema/pragma-value-not-list.err create mode 100644 tests/qapi-schema/pragma-value-not-list.json create mode 100644 tests/qapi-schema/pragma-value-not-list.out (limited to 'tests/qapi-schema') diff --git a/tests/qapi-schema/meson.build b/tests/qapi-schema/meson.build index 664f9ee22d..ffc276b765 100644 --- a/tests/qapi-schema/meson.build +++ b/tests/qapi-schema/meson.build @@ -144,12 +144,12 @@ schemas = [ 'oob-coroutine.json', 'oob-test.json', 'allow-preconfig-test.json', - 'pragma-doc-required-crap.json', 'pragma-extra-junk.json', - 'pragma-name-case-whitelist-crap.json', 'pragma-non-dict.json', 'pragma-unknown.json', - 'pragma-returns-whitelist-crap.json', + 'pragma-value-not-bool.json', + 'pragma-value-not-list-of-str.json', + 'pragma-value-not-list.json', 'qapi-schema-test.json', 'quoted-structural-chars.json', 'redefined-command.json', diff --git a/tests/qapi-schema/pragma-doc-required-crap.err b/tests/qapi-schema/pragma-doc-required-crap.err deleted file mode 100644 index 717062cb14..0000000000 --- a/tests/qapi-schema/pragma-doc-required-crap.err +++ /dev/null @@ -1 +0,0 @@ -pragma-doc-required-crap.json:3: pragma 'doc-required' must be boolean diff --git a/tests/qapi-schema/pragma-doc-required-crap.json b/tests/qapi-schema/pragma-doc-required-crap.json deleted file mode 100644 index ed763c5ffc..0000000000 --- a/tests/qapi-schema/pragma-doc-required-crap.json +++ /dev/null @@ -1,3 +0,0 @@ -# 'doc-required' must be bool - -{ 'pragma': { 'doc-required': {} } } diff --git a/tests/qapi-schema/pragma-doc-required-crap.out b/tests/qapi-schema/pragma-doc-required-crap.out deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/tests/qapi-schema/pragma-name-case-whitelist-crap.err b/tests/qapi-schema/pragma-name-case-whitelist-crap.err deleted file mode 100644 index fbea90d6c5..0000000000 --- a/tests/qapi-schema/pragma-name-case-whitelist-crap.err +++ /dev/null @@ -1 +0,0 @@ -pragma-name-case-whitelist-crap.json:3: pragma name-case-whitelist must be a list of strings diff --git a/tests/qapi-schema/pragma-name-case-whitelist-crap.json b/tests/qapi-schema/pragma-name-case-whitelist-crap.json deleted file mode 100644 index 734e1c617b..0000000000 --- a/tests/qapi-schema/pragma-name-case-whitelist-crap.json +++ /dev/null @@ -1,3 +0,0 @@ -# 'name-case-whitelist' must be list of strings - -{ 'pragma': { 'name-case-whitelist': false } } diff --git a/tests/qapi-schema/pragma-name-case-whitelist-crap.out b/tests/qapi-schema/pragma-name-case-whitelist-crap.out deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/tests/qapi-schema/pragma-returns-whitelist-crap.err b/tests/qapi-schema/pragma-returns-whitelist-crap.err deleted file mode 100644 index 69784259df..0000000000 --- a/tests/qapi-schema/pragma-returns-whitelist-crap.err +++ /dev/null @@ -1 +0,0 @@ -pragma-returns-whitelist-crap.json:3: pragma returns-whitelist must be a list of strings diff --git a/tests/qapi-schema/pragma-returns-whitelist-crap.json b/tests/qapi-schema/pragma-returns-whitelist-crap.json deleted file mode 100644 index f6b81b093f..0000000000 --- a/tests/qapi-schema/pragma-returns-whitelist-crap.json +++ /dev/null @@ -1,3 +0,0 @@ -# 'returns-whitelist' must be list of strings - -{ 'pragma': { 'returns-whitelist': [ 'good', [ 'bad' ] ] } } diff --git a/tests/qapi-schema/pragma-returns-whitelist-crap.out b/tests/qapi-schema/pragma-returns-whitelist-crap.out deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/tests/qapi-schema/pragma-value-not-bool.err b/tests/qapi-schema/pragma-value-not-bool.err new file mode 100644 index 0000000000..6247539616 --- /dev/null +++ b/tests/qapi-schema/pragma-value-not-bool.err @@ -0,0 +1 @@ +pragma-value-not-bool.json:3: pragma 'doc-required' must be boolean diff --git a/tests/qapi-schema/pragma-value-not-bool.json b/tests/qapi-schema/pragma-value-not-bool.json new file mode 100644 index 0000000000..feb489f15b --- /dev/null +++ b/tests/qapi-schema/pragma-value-not-bool.json @@ -0,0 +1,3 @@ +# pragma value must be bool + +{ 'pragma': { 'doc-required': {} } } diff --git a/tests/qapi-schema/pragma-value-not-bool.out b/tests/qapi-schema/pragma-value-not-bool.out new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/qapi-schema/pragma-value-not-list-of-str.err b/tests/qapi-schema/pragma-value-not-list-of-str.err new file mode 100644 index 0000000000..44870fe5d9 --- /dev/null +++ b/tests/qapi-schema/pragma-value-not-list-of-str.err @@ -0,0 +1 @@ +pragma-value-not-list-of-str.json:3: pragma returns-whitelist must be a list of strings diff --git a/tests/qapi-schema/pragma-value-not-list-of-str.json b/tests/qapi-schema/pragma-value-not-list-of-str.json new file mode 100644 index 0000000000..12bbbed2e8 --- /dev/null +++ b/tests/qapi-schema/pragma-value-not-list-of-str.json @@ -0,0 +1,3 @@ +# pragma value must be list of strings + +{ 'pragma': { 'returns-whitelist': [ 'good', [ 'bad' ] ] } } diff --git a/tests/qapi-schema/pragma-value-not-list-of-str.out b/tests/qapi-schema/pragma-value-not-list-of-str.out new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/qapi-schema/pragma-value-not-list.err b/tests/qapi-schema/pragma-value-not-list.err new file mode 100644 index 0000000000..21736c5723 --- /dev/null +++ b/tests/qapi-schema/pragma-value-not-list.err @@ -0,0 +1 @@ +pragma-value-not-list.json:3: pragma name-case-whitelist must be a list of strings diff --git a/tests/qapi-schema/pragma-value-not-list.json b/tests/qapi-schema/pragma-value-not-list.json new file mode 100644 index 0000000000..2c61a97dd3 --- /dev/null +++ b/tests/qapi-schema/pragma-value-not-list.json @@ -0,0 +1,3 @@ +# pragma value must be list + +{ 'pragma': { 'name-case-whitelist': false } } diff --git a/tests/qapi-schema/pragma-value-not-list.out b/tests/qapi-schema/pragma-value-not-list.out new file mode 100644 index 0000000000..e69de29bb2 -- cgit v1.2.3