tests/qapi-schema: Rename tests from data- to args-
authorMarkus Armbruster <armbru@redhat.com>
Fri, 31 Jul 2015 11:30:50 +0000 (13:30 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 4 Sep 2015 13:47:15 +0000 (15:47 +0200)
Since every schema entity has 'data', the data- prefix conveys no
information.  These tests actually exercise commands.  Only commands
have arguments, so change the prefix to to args-.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
32 files changed:
tests/Makefile
tests/qapi-schema/args-array-empty.err [moved from tests/qapi-schema/data-array-empty.err with 50% similarity]
tests/qapi-schema/args-array-empty.exit [moved from tests/qapi-schema/data-unknown.exit with 100% similarity]
tests/qapi-schema/args-array-empty.json [moved from tests/qapi-schema/data-array-empty.json with 100% similarity]
tests/qapi-schema/args-array-empty.out [moved from tests/qapi-schema/data-unknown.out with 100% similarity]
tests/qapi-schema/args-array-unknown.err [moved from tests/qapi-schema/data-array-unknown.err with 50% similarity]
tests/qapi-schema/args-array-unknown.exit [moved from tests/qapi-schema/data-member-unknown.exit with 100% similarity]
tests/qapi-schema/args-array-unknown.json [moved from tests/qapi-schema/data-array-unknown.json with 100% similarity]
tests/qapi-schema/args-array-unknown.out [moved from tests/qapi-schema/data-member-unknown.out with 100% similarity]
tests/qapi-schema/args-int.err [new file with mode: 0644]
tests/qapi-schema/args-int.exit [moved from tests/qapi-schema/data-member-array-bad.exit with 100% similarity]
tests/qapi-schema/args-int.json [moved from tests/qapi-schema/data-int.json with 100% similarity]
tests/qapi-schema/args-int.out [moved from tests/qapi-schema/data-member-array.err with 100% similarity]
tests/qapi-schema/args-member-array-bad.err [moved from tests/qapi-schema/data-member-array-bad.err with 52% similarity]
tests/qapi-schema/args-member-array-bad.exit [moved from tests/qapi-schema/data-int.exit with 100% similarity]
tests/qapi-schema/args-member-array-bad.json [moved from tests/qapi-schema/data-member-array-bad.json with 100% similarity]
tests/qapi-schema/args-member-array-bad.out [moved from tests/qapi-schema/data-member-array-bad.out with 100% similarity]
tests/qapi-schema/args-member-array.err [moved from tests/qapi-schema/data-int.out with 100% similarity]
tests/qapi-schema/args-member-array.exit [moved from tests/qapi-schema/data-member-array.exit with 100% similarity]
tests/qapi-schema/args-member-array.json [moved from tests/qapi-schema/data-member-array.json with 100% similarity]
tests/qapi-schema/args-member-array.out [moved from tests/qapi-schema/data-member-array.out with 100% similarity]
tests/qapi-schema/args-member-unknown.err [new file with mode: 0644]
tests/qapi-schema/args-member-unknown.exit [moved from tests/qapi-schema/data-array-unknown.exit with 100% similarity]
tests/qapi-schema/args-member-unknown.json [moved from tests/qapi-schema/data-member-unknown.json with 100% similarity]
tests/qapi-schema/args-member-unknown.out [moved from tests/qapi-schema/data-array-unknown.out with 100% similarity]
tests/qapi-schema/args-unknown.err [new file with mode: 0644]
tests/qapi-schema/args-unknown.exit [moved from tests/qapi-schema/data-array-empty.exit with 100% similarity]
tests/qapi-schema/args-unknown.json [moved from tests/qapi-schema/data-unknown.json with 100% similarity]
tests/qapi-schema/args-unknown.out [moved from tests/qapi-schema/data-array-empty.out with 100% similarity]
tests/qapi-schema/data-int.err [deleted file]
tests/qapi-schema/data-member-unknown.err [deleted file]
tests/qapi-schema/data-unknown.err [deleted file]

index 5271123..0d560c5 100644 (file)
@@ -229,9 +229,9 @@ check-qapi-schema-y := $(addprefix tests/qapi-schema/, \
        redefined-type.json redefined-command.json redefined-builtin.json \
        redefined-event.json command-int.json bad-data.json event-max.json \
        type-bypass.json type-bypass-no-gen.json type-bypass-bad-gen.json \
-       data-array-empty.json data-array-unknown.json data-int.json \
-       data-unknown.json data-member-unknown.json data-member-array.json \
-       data-member-array-bad.json returns-array-bad.json returns-int.json \
+       args-array-empty.json args-array-unknown.json args-int.json \
+       args-unknown.json args-member-unknown.json args-member-array.json \
+       args-member-array-bad.json returns-array-bad.json returns-int.json \
        returns-unknown.json returns-alternate.json returns-whitelist.json \
        missing-colon.json missing-comma-list.json missing-comma-object.json \
        nested-struct-data.json nested-struct-returns.json non-objects.json \
similarity index 50%
rename from tests/qapi-schema/data-array-empty.err
rename to tests/qapi-schema/args-array-empty.err
index f713f14..cb7ed33 100644 (file)
@@ -1 +1 @@
-tests/qapi-schema/data-array-empty.json:2: Member 'empty' of 'data' for command 'oops': array type must contain single type name
+tests/qapi-schema/args-array-empty.json:2: Member 'empty' of 'data' for command 'oops': array type must contain single type name
similarity index 50%
rename from tests/qapi-schema/data-array-unknown.err
rename to tests/qapi-schema/args-array-unknown.err
index 8b731bb..7834d11 100644 (file)
@@ -1 +1 @@
-tests/qapi-schema/data-array-unknown.json:2: Member 'array' of 'data' for command 'oops' uses unknown type 'array of NoSuchType'
+tests/qapi-schema/args-array-unknown.json:2: Member 'array' of 'data' for command 'oops' uses unknown type 'array of NoSuchType'
diff --git a/tests/qapi-schema/args-int.err b/tests/qapi-schema/args-int.err
new file mode 100644 (file)
index 0000000..dc1d250
--- /dev/null
@@ -0,0 +1 @@
+tests/qapi-schema/args-int.json:2: 'data' for command 'oops' cannot use built-in type 'int'
similarity index 52%
rename from tests/qapi-schema/data-member-array-bad.err
rename to tests/qapi-schema/args-member-array-bad.err
index 2c072d5..881b4d9 100644 (file)
@@ -1 +1 @@
-tests/qapi-schema/data-member-array-bad.json:2: Member 'member' of 'data' for command 'oops': array type must contain single type name
+tests/qapi-schema/args-member-array-bad.json:2: Member 'member' of 'data' for command 'oops': array type must contain single type name
diff --git a/tests/qapi-schema/args-member-unknown.err b/tests/qapi-schema/args-member-unknown.err
new file mode 100644 (file)
index 0000000..f6f8282
--- /dev/null
@@ -0,0 +1 @@
+tests/qapi-schema/args-member-unknown.json:2: Member 'member' of 'data' for command 'oops' uses unknown type 'NoSuchType'
diff --git a/tests/qapi-schema/args-unknown.err b/tests/qapi-schema/args-unknown.err
new file mode 100644 (file)
index 0000000..4d91ec8
--- /dev/null
@@ -0,0 +1 @@
+tests/qapi-schema/args-unknown.json:2: 'data' for command 'oops' uses unknown type 'NoSuchType'
diff --git a/tests/qapi-schema/data-int.err b/tests/qapi-schema/data-int.err
deleted file mode 100644 (file)
index 1a9b077..0000000
+++ /dev/null
@@ -1 +0,0 @@
-tests/qapi-schema/data-int.json:2: 'data' for command 'oops' cannot use built-in type 'int'
diff --git a/tests/qapi-schema/data-member-unknown.err b/tests/qapi-schema/data-member-unknown.err
deleted file mode 100644 (file)
index ab905db..0000000
+++ /dev/null
@@ -1 +0,0 @@
-tests/qapi-schema/data-member-unknown.json:2: Member 'member' of 'data' for command 'oops' uses unknown type 'NoSuchType'
diff --git a/tests/qapi-schema/data-unknown.err b/tests/qapi-schema/data-unknown.err
deleted file mode 100644 (file)
index 5b07277..0000000
+++ /dev/null
@@ -1 +0,0 @@
-tests/qapi-schema/data-unknown.json:2: 'data' for command 'oops' uses unknown type 'NoSuchType'