]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests/qapi-schema: Rename pragma-*-crap to pragma-value-not-*
authorMarkus Armbruster <armbru@redhat.com>
Tue, 23 Mar 2021 09:40:14 +0000 (10:40 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 23 Mar 2021 21:31:05 +0000 (22:31 +0100)
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 <armbru@redhat.com>
Message-Id: <20210323094025.3569441-18-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
13 files changed:
tests/qapi-schema/meson.build
tests/qapi-schema/pragma-doc-required-crap.err [deleted file]
tests/qapi-schema/pragma-name-case-whitelist-crap.err [deleted file]
tests/qapi-schema/pragma-returns-whitelist-crap.err [deleted file]
tests/qapi-schema/pragma-value-not-bool.err [new file with mode: 0644]
tests/qapi-schema/pragma-value-not-bool.json [moved from tests/qapi-schema/pragma-doc-required-crap.json with 55% similarity]
tests/qapi-schema/pragma-value-not-bool.out [moved from tests/qapi-schema/pragma-doc-required-crap.out with 100% similarity]
tests/qapi-schema/pragma-value-not-list-of-str.err [new file with mode: 0644]
tests/qapi-schema/pragma-value-not-list-of-str.json [moved from tests/qapi-schema/pragma-returns-whitelist-crap.json with 57% similarity]
tests/qapi-schema/pragma-value-not-list-of-str.out [moved from tests/qapi-schema/pragma-name-case-whitelist-crap.out with 100% similarity]
tests/qapi-schema/pragma-value-not-list.err [new file with mode: 0644]
tests/qapi-schema/pragma-value-not-list.json [moved from tests/qapi-schema/pragma-name-case-whitelist-crap.json with 50% similarity]
tests/qapi-schema/pragma-value-not-list.out [moved from tests/qapi-schema/pragma-returns-whitelist-crap.out with 100% similarity]

index 664f9ee22dc7428e56704f82aa8e6afb89be2cd0..ffc276b765e7b440b979cacde34fa087c3defc27 100644 (file)
@@ -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 (file)
index 717062c..0000000
+++ /dev/null
@@ -1 +0,0 @@
-pragma-doc-required-crap.json:3: pragma 'doc-required' must be boolean
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 (file)
index fbea90d..0000000
+++ /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-returns-whitelist-crap.err b/tests/qapi-schema/pragma-returns-whitelist-crap.err
deleted file mode 100644 (file)
index 6978425..0000000
+++ /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-value-not-bool.err b/tests/qapi-schema/pragma-value-not-bool.err
new file mode 100644 (file)
index 0000000..6247539
--- /dev/null
@@ -0,0 +1 @@
+pragma-value-not-bool.json:3: pragma 'doc-required' must be boolean
similarity index 55%
rename from tests/qapi-schema/pragma-doc-required-crap.json
rename to tests/qapi-schema/pragma-value-not-bool.json
index ed763c5ffc4c823c8484df8c7024b31411bc7982..feb489f15b62e5cae91229d7b544e09a68dc10f5 100644 (file)
@@ -1,3 +1,3 @@
-# 'doc-required' must be bool
+# pragma value must be bool
 
 { 'pragma': { 'doc-required': {} } }
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 (file)
index 0000000..44870fe
--- /dev/null
@@ -0,0 +1 @@
+pragma-value-not-list-of-str.json:3: pragma returns-whitelist must be a list of strings
similarity index 57%
rename from tests/qapi-schema/pragma-returns-whitelist-crap.json
rename to tests/qapi-schema/pragma-value-not-list-of-str.json
index f6b81b093fd90aa2abdf08e6dec002a6544cccbf..12bbbed2e8ff0742eb59883986aea9deedca9248 100644 (file)
@@ -1,3 +1,3 @@
-# 'returns-whitelist' must be list of strings
+# pragma value must be list of strings
 
 { 'pragma': { 'returns-whitelist': [ 'good', [ 'bad' ] ] } }
diff --git a/tests/qapi-schema/pragma-value-not-list.err b/tests/qapi-schema/pragma-value-not-list.err
new file mode 100644 (file)
index 0000000..21736c5
--- /dev/null
@@ -0,0 +1 @@
+pragma-value-not-list.json:3: pragma name-case-whitelist must be a list of strings
similarity index 50%
rename from tests/qapi-schema/pragma-name-case-whitelist-crap.json
rename to tests/qapi-schema/pragma-value-not-list.json
index 734e1c617b431da85eb213d1b32e52f31828c999..2c61a97dd3640e036c4abceef531315e18c10625 100644 (file)
@@ -1,3 +1,3 @@
-# 'name-case-whitelist' must be list of strings
+# pragma value must be list
 
 { 'pragma': { 'name-case-whitelist': false } }