From a36807d1e761124908bd9743465e268b3ee9668d Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Mon, 20 Oct 2025 12:34:55 -0400 Subject: [PATCH] Rename `tests` to `test` Signed-off-by: Juan Cruz Viotti --- Makefile | 8 ++++---- scripts/schemas-tests-mirror.sh | 2 +- {tests => test}/ieee/posix/path-absolute.test.json | 0 {tests => test}/ieee/posix/path-relative.test.json | 0 {tests => test}/ieee/posix/path.test.json | 0 {tests => test}/ietf/email/address.test.json | 0 {tests => test}/ietf/http/etag-strong.test.json | 0 {tests => test}/ietf/http/etag-weak.test.json | 0 {tests => test}/ietf/http/etag.test.json | 0 {tests => test}/ietf/http/http-url.test.json | 0 {tests => test}/ietf/http/https-url.test.json | 0 {tests => test}/ietf/http/method-standard.test.json | 0 {tests => test}/ietf/http/method.test.json | 0 {tests => test}/ietf/http/status-client-error.test.json | 0 {tests => test}/ietf/http/status-informational.test.json | 0 {tests => test}/ietf/http/status-redirection.test.json | 0 {tests => test}/ietf/http/status-server-error.test.json | 0 {tests => test}/ietf/http/status-standard.test.json | 0 {tests => test}/ietf/http/status-successful.test.json | 0 {tests => test}/ietf/http/status.test.json | 0 {tests => test}/ietf/ip/v4/address.test.json | 0 {tests => test}/ietf/ip/v6/address.test.json | 0 {tests => test}/ietf/jsonpointer/pointer.test.json | 0 {tests => test}/ietf/problem-details/problem.test.json | 0 {tests => test}/ietf/uri/uri-reference.test.json | 0 {tests => test}/ietf/uri/uri-relative.test.json | 0 {tests => test}/ietf/uri/uri.test.json | 0 {tests => test}/ietf/uri/url.test.json | 0 {tests => test}/ietf/uri/urn.test.json | 0 {tests => test}/iso/currency/alpha-code.test.json | 0 {tests => test}/iso/currency/alpha-currency.test.json | 0 {tests => test}/iso/currency/alpha-fund.test.json | 0 .../iso/currency/alpha-precious-metal.test.json | 0 {tests => test}/iso/currency/alpha-test.test.json | 0 {tests => test}/iso/currency/alpha-unknown.test.json | 0 .../iso/currency/historical/alpha-code.test.json | 0 .../iso/currency/historical/alpha-currency.test.json | 0 .../iso/currency/historical/numeric-code.test.json | 0 .../iso/currency/historical/numeric-currency.test.json | 0 .../iso/currency/numeric-code-additional.test.json | 0 {tests => test}/iso/currency/numeric-code.test.json | 0 {tests => test}/iso/currency/numeric-currency.test.json | 0 {tests => test}/iso/currency/numeric-fund.test.json | 0 .../iso/currency/numeric-precious-metal.test.json | 0 {tests => test}/iso/currency/numeric-test.test.json | 0 {tests => test}/iso/currency/numeric-unknown.test.json | 0 {tests => test}/iso/it/byte.test.json | 0 {tests => test}/iso/units/percentage.test.json | 0 {tests => test}/jsonrpc/v2.0/batch-request.test.json | 0 {tests => test}/jsonrpc/v2.0/batch-response.test.json | 0 {tests => test}/jsonrpc/v2.0/code-predefined.test.json | 0 {tests => test}/jsonrpc/v2.0/code.test.json | 0 {tests => test}/jsonrpc/v2.0/error.test.json | 0 {tests => test}/jsonrpc/v2.0/identifier.test.json | 0 {tests => test}/jsonrpc/v2.0/method-internal.test.json | 0 {tests => test}/jsonrpc/v2.0/method.test.json | 0 {tests => test}/jsonrpc/v2.0/notification.test.json | 0 {tests => test}/jsonrpc/v2.0/parameters.test.json | 0 {tests => test}/jsonrpc/v2.0/request.test.json | 0 {tests => test}/jsonrpc/v2.0/response.test.json | 0 {tests => test}/jsonschema/schema-like.test.json | 0 61 files changed, 5 insertions(+), 5 deletions(-) rename {tests => test}/ieee/posix/path-absolute.test.json (100%) rename {tests => test}/ieee/posix/path-relative.test.json (100%) rename {tests => test}/ieee/posix/path.test.json (100%) rename {tests => test}/ietf/email/address.test.json (100%) rename {tests => test}/ietf/http/etag-strong.test.json (100%) rename {tests => test}/ietf/http/etag-weak.test.json (100%) rename {tests => test}/ietf/http/etag.test.json (100%) rename {tests => test}/ietf/http/http-url.test.json (100%) rename {tests => test}/ietf/http/https-url.test.json (100%) rename {tests => test}/ietf/http/method-standard.test.json (100%) rename {tests => test}/ietf/http/method.test.json (100%) rename {tests => test}/ietf/http/status-client-error.test.json (100%) rename {tests => test}/ietf/http/status-informational.test.json (100%) rename {tests => test}/ietf/http/status-redirection.test.json (100%) rename {tests => test}/ietf/http/status-server-error.test.json (100%) rename {tests => test}/ietf/http/status-standard.test.json (100%) rename {tests => test}/ietf/http/status-successful.test.json (100%) rename {tests => test}/ietf/http/status.test.json (100%) rename {tests => test}/ietf/ip/v4/address.test.json (100%) rename {tests => test}/ietf/ip/v6/address.test.json (100%) rename {tests => test}/ietf/jsonpointer/pointer.test.json (100%) rename {tests => test}/ietf/problem-details/problem.test.json (100%) rename {tests => test}/ietf/uri/uri-reference.test.json (100%) rename {tests => test}/ietf/uri/uri-relative.test.json (100%) rename {tests => test}/ietf/uri/uri.test.json (100%) rename {tests => test}/ietf/uri/url.test.json (100%) rename {tests => test}/ietf/uri/urn.test.json (100%) rename {tests => test}/iso/currency/alpha-code.test.json (100%) rename {tests => test}/iso/currency/alpha-currency.test.json (100%) rename {tests => test}/iso/currency/alpha-fund.test.json (100%) rename {tests => test}/iso/currency/alpha-precious-metal.test.json (100%) rename {tests => test}/iso/currency/alpha-test.test.json (100%) rename {tests => test}/iso/currency/alpha-unknown.test.json (100%) rename {tests => test}/iso/currency/historical/alpha-code.test.json (100%) rename {tests => test}/iso/currency/historical/alpha-currency.test.json (100%) rename {tests => test}/iso/currency/historical/numeric-code.test.json (100%) rename {tests => test}/iso/currency/historical/numeric-currency.test.json (100%) rename {tests => test}/iso/currency/numeric-code-additional.test.json (100%) rename {tests => test}/iso/currency/numeric-code.test.json (100%) rename {tests => test}/iso/currency/numeric-currency.test.json (100%) rename {tests => test}/iso/currency/numeric-fund.test.json (100%) rename {tests => test}/iso/currency/numeric-precious-metal.test.json (100%) rename {tests => test}/iso/currency/numeric-test.test.json (100%) rename {tests => test}/iso/currency/numeric-unknown.test.json (100%) rename {tests => test}/iso/it/byte.test.json (100%) rename {tests => test}/iso/units/percentage.test.json (100%) rename {tests => test}/jsonrpc/v2.0/batch-request.test.json (100%) rename {tests => test}/jsonrpc/v2.0/batch-response.test.json (100%) rename {tests => test}/jsonrpc/v2.0/code-predefined.test.json (100%) rename {tests => test}/jsonrpc/v2.0/code.test.json (100%) rename {tests => test}/jsonrpc/v2.0/error.test.json (100%) rename {tests => test}/jsonrpc/v2.0/identifier.test.json (100%) rename {tests => test}/jsonrpc/v2.0/method-internal.test.json (100%) rename {tests => test}/jsonrpc/v2.0/method.test.json (100%) rename {tests => test}/jsonrpc/v2.0/notification.test.json (100%) rename {tests => test}/jsonrpc/v2.0/parameters.test.json (100%) rename {tests => test}/jsonrpc/v2.0/request.test.json (100%) rename {tests => test}/jsonrpc/v2.0/response.test.json (100%) rename {tests => test}/jsonschema/schema-like.test.json (100%) diff --git a/Makefile b/Makefile index a46f07fb..6eec0cb3 100644 --- a/Makefile +++ b/Makefile @@ -4,10 +4,10 @@ PYTHON = python3 # TODO: Extend `validate` to take a directory as argument SCHEMAS = $(shell find schemas/ -type f -name '*.json') -TESTS = $(shell find tests/ -type f -name '*.json') +TESTS = $(shell find test/ -type f -name '*.json') all: common test - $(JSONSCHEMA) fmt schemas tests conventions.json tests.json --verbose + $(JSONSCHEMA) fmt schemas test conventions.json tests.json --verbose common: .always $(JSONSCHEMA) metaschema schemas conventions.json tests.json --verbose @@ -18,10 +18,10 @@ common: .always ./scripts/schemas-tests-mirror.sh lint: common - $(JSONSCHEMA) fmt schemas tests conventions.json tests.json --verbose --check + $(JSONSCHEMA) fmt schemas test conventions.json tests.json --verbose --check test: .always - $(JSONSCHEMA) test ./tests + $(JSONSCHEMA) test ./test generate: .always $(PYTHON) scripts/generate-iso-currency.py diff --git a/scripts/schemas-tests-mirror.sh b/scripts/schemas-tests-mirror.sh index 4bbb14a3..6cba1aa0 100755 --- a/scripts/schemas-tests-mirror.sh +++ b/scripts/schemas-tests-mirror.sh @@ -4,7 +4,7 @@ set -o errexit set -o nounset SCHEMAS_DIR="$(pwd)/schemas" -TESTS_DIR="$(pwd)/tests" +TESTS_DIR="$(pwd)/test" EXIT_CODE=0 find "$SCHEMAS_DIR" -type f -name "*.json" | while IFS= read -r schema_file diff --git a/tests/ieee/posix/path-absolute.test.json b/test/ieee/posix/path-absolute.test.json similarity index 100% rename from tests/ieee/posix/path-absolute.test.json rename to test/ieee/posix/path-absolute.test.json diff --git a/tests/ieee/posix/path-relative.test.json b/test/ieee/posix/path-relative.test.json similarity index 100% rename from tests/ieee/posix/path-relative.test.json rename to test/ieee/posix/path-relative.test.json diff --git a/tests/ieee/posix/path.test.json b/test/ieee/posix/path.test.json similarity index 100% rename from tests/ieee/posix/path.test.json rename to test/ieee/posix/path.test.json diff --git a/tests/ietf/email/address.test.json b/test/ietf/email/address.test.json similarity index 100% rename from tests/ietf/email/address.test.json rename to test/ietf/email/address.test.json diff --git a/tests/ietf/http/etag-strong.test.json b/test/ietf/http/etag-strong.test.json similarity index 100% rename from tests/ietf/http/etag-strong.test.json rename to test/ietf/http/etag-strong.test.json diff --git a/tests/ietf/http/etag-weak.test.json b/test/ietf/http/etag-weak.test.json similarity index 100% rename from tests/ietf/http/etag-weak.test.json rename to test/ietf/http/etag-weak.test.json diff --git a/tests/ietf/http/etag.test.json b/test/ietf/http/etag.test.json similarity index 100% rename from tests/ietf/http/etag.test.json rename to test/ietf/http/etag.test.json diff --git a/tests/ietf/http/http-url.test.json b/test/ietf/http/http-url.test.json similarity index 100% rename from tests/ietf/http/http-url.test.json rename to test/ietf/http/http-url.test.json diff --git a/tests/ietf/http/https-url.test.json b/test/ietf/http/https-url.test.json similarity index 100% rename from tests/ietf/http/https-url.test.json rename to test/ietf/http/https-url.test.json diff --git a/tests/ietf/http/method-standard.test.json b/test/ietf/http/method-standard.test.json similarity index 100% rename from tests/ietf/http/method-standard.test.json rename to test/ietf/http/method-standard.test.json diff --git a/tests/ietf/http/method.test.json b/test/ietf/http/method.test.json similarity index 100% rename from tests/ietf/http/method.test.json rename to test/ietf/http/method.test.json diff --git a/tests/ietf/http/status-client-error.test.json b/test/ietf/http/status-client-error.test.json similarity index 100% rename from tests/ietf/http/status-client-error.test.json rename to test/ietf/http/status-client-error.test.json diff --git a/tests/ietf/http/status-informational.test.json b/test/ietf/http/status-informational.test.json similarity index 100% rename from tests/ietf/http/status-informational.test.json rename to test/ietf/http/status-informational.test.json diff --git a/tests/ietf/http/status-redirection.test.json b/test/ietf/http/status-redirection.test.json similarity index 100% rename from tests/ietf/http/status-redirection.test.json rename to test/ietf/http/status-redirection.test.json diff --git a/tests/ietf/http/status-server-error.test.json b/test/ietf/http/status-server-error.test.json similarity index 100% rename from tests/ietf/http/status-server-error.test.json rename to test/ietf/http/status-server-error.test.json diff --git a/tests/ietf/http/status-standard.test.json b/test/ietf/http/status-standard.test.json similarity index 100% rename from tests/ietf/http/status-standard.test.json rename to test/ietf/http/status-standard.test.json diff --git a/tests/ietf/http/status-successful.test.json b/test/ietf/http/status-successful.test.json similarity index 100% rename from tests/ietf/http/status-successful.test.json rename to test/ietf/http/status-successful.test.json diff --git a/tests/ietf/http/status.test.json b/test/ietf/http/status.test.json similarity index 100% rename from tests/ietf/http/status.test.json rename to test/ietf/http/status.test.json diff --git a/tests/ietf/ip/v4/address.test.json b/test/ietf/ip/v4/address.test.json similarity index 100% rename from tests/ietf/ip/v4/address.test.json rename to test/ietf/ip/v4/address.test.json diff --git a/tests/ietf/ip/v6/address.test.json b/test/ietf/ip/v6/address.test.json similarity index 100% rename from tests/ietf/ip/v6/address.test.json rename to test/ietf/ip/v6/address.test.json diff --git a/tests/ietf/jsonpointer/pointer.test.json b/test/ietf/jsonpointer/pointer.test.json similarity index 100% rename from tests/ietf/jsonpointer/pointer.test.json rename to test/ietf/jsonpointer/pointer.test.json diff --git a/tests/ietf/problem-details/problem.test.json b/test/ietf/problem-details/problem.test.json similarity index 100% rename from tests/ietf/problem-details/problem.test.json rename to test/ietf/problem-details/problem.test.json diff --git a/tests/ietf/uri/uri-reference.test.json b/test/ietf/uri/uri-reference.test.json similarity index 100% rename from tests/ietf/uri/uri-reference.test.json rename to test/ietf/uri/uri-reference.test.json diff --git a/tests/ietf/uri/uri-relative.test.json b/test/ietf/uri/uri-relative.test.json similarity index 100% rename from tests/ietf/uri/uri-relative.test.json rename to test/ietf/uri/uri-relative.test.json diff --git a/tests/ietf/uri/uri.test.json b/test/ietf/uri/uri.test.json similarity index 100% rename from tests/ietf/uri/uri.test.json rename to test/ietf/uri/uri.test.json diff --git a/tests/ietf/uri/url.test.json b/test/ietf/uri/url.test.json similarity index 100% rename from tests/ietf/uri/url.test.json rename to test/ietf/uri/url.test.json diff --git a/tests/ietf/uri/urn.test.json b/test/ietf/uri/urn.test.json similarity index 100% rename from tests/ietf/uri/urn.test.json rename to test/ietf/uri/urn.test.json diff --git a/tests/iso/currency/alpha-code.test.json b/test/iso/currency/alpha-code.test.json similarity index 100% rename from tests/iso/currency/alpha-code.test.json rename to test/iso/currency/alpha-code.test.json diff --git a/tests/iso/currency/alpha-currency.test.json b/test/iso/currency/alpha-currency.test.json similarity index 100% rename from tests/iso/currency/alpha-currency.test.json rename to test/iso/currency/alpha-currency.test.json diff --git a/tests/iso/currency/alpha-fund.test.json b/test/iso/currency/alpha-fund.test.json similarity index 100% rename from tests/iso/currency/alpha-fund.test.json rename to test/iso/currency/alpha-fund.test.json diff --git a/tests/iso/currency/alpha-precious-metal.test.json b/test/iso/currency/alpha-precious-metal.test.json similarity index 100% rename from tests/iso/currency/alpha-precious-metal.test.json rename to test/iso/currency/alpha-precious-metal.test.json diff --git a/tests/iso/currency/alpha-test.test.json b/test/iso/currency/alpha-test.test.json similarity index 100% rename from tests/iso/currency/alpha-test.test.json rename to test/iso/currency/alpha-test.test.json diff --git a/tests/iso/currency/alpha-unknown.test.json b/test/iso/currency/alpha-unknown.test.json similarity index 100% rename from tests/iso/currency/alpha-unknown.test.json rename to test/iso/currency/alpha-unknown.test.json diff --git a/tests/iso/currency/historical/alpha-code.test.json b/test/iso/currency/historical/alpha-code.test.json similarity index 100% rename from tests/iso/currency/historical/alpha-code.test.json rename to test/iso/currency/historical/alpha-code.test.json diff --git a/tests/iso/currency/historical/alpha-currency.test.json b/test/iso/currency/historical/alpha-currency.test.json similarity index 100% rename from tests/iso/currency/historical/alpha-currency.test.json rename to test/iso/currency/historical/alpha-currency.test.json diff --git a/tests/iso/currency/historical/numeric-code.test.json b/test/iso/currency/historical/numeric-code.test.json similarity index 100% rename from tests/iso/currency/historical/numeric-code.test.json rename to test/iso/currency/historical/numeric-code.test.json diff --git a/tests/iso/currency/historical/numeric-currency.test.json b/test/iso/currency/historical/numeric-currency.test.json similarity index 100% rename from tests/iso/currency/historical/numeric-currency.test.json rename to test/iso/currency/historical/numeric-currency.test.json diff --git a/tests/iso/currency/numeric-code-additional.test.json b/test/iso/currency/numeric-code-additional.test.json similarity index 100% rename from tests/iso/currency/numeric-code-additional.test.json rename to test/iso/currency/numeric-code-additional.test.json diff --git a/tests/iso/currency/numeric-code.test.json b/test/iso/currency/numeric-code.test.json similarity index 100% rename from tests/iso/currency/numeric-code.test.json rename to test/iso/currency/numeric-code.test.json diff --git a/tests/iso/currency/numeric-currency.test.json b/test/iso/currency/numeric-currency.test.json similarity index 100% rename from tests/iso/currency/numeric-currency.test.json rename to test/iso/currency/numeric-currency.test.json diff --git a/tests/iso/currency/numeric-fund.test.json b/test/iso/currency/numeric-fund.test.json similarity index 100% rename from tests/iso/currency/numeric-fund.test.json rename to test/iso/currency/numeric-fund.test.json diff --git a/tests/iso/currency/numeric-precious-metal.test.json b/test/iso/currency/numeric-precious-metal.test.json similarity index 100% rename from tests/iso/currency/numeric-precious-metal.test.json rename to test/iso/currency/numeric-precious-metal.test.json diff --git a/tests/iso/currency/numeric-test.test.json b/test/iso/currency/numeric-test.test.json similarity index 100% rename from tests/iso/currency/numeric-test.test.json rename to test/iso/currency/numeric-test.test.json diff --git a/tests/iso/currency/numeric-unknown.test.json b/test/iso/currency/numeric-unknown.test.json similarity index 100% rename from tests/iso/currency/numeric-unknown.test.json rename to test/iso/currency/numeric-unknown.test.json diff --git a/tests/iso/it/byte.test.json b/test/iso/it/byte.test.json similarity index 100% rename from tests/iso/it/byte.test.json rename to test/iso/it/byte.test.json diff --git a/tests/iso/units/percentage.test.json b/test/iso/units/percentage.test.json similarity index 100% rename from tests/iso/units/percentage.test.json rename to test/iso/units/percentage.test.json diff --git a/tests/jsonrpc/v2.0/batch-request.test.json b/test/jsonrpc/v2.0/batch-request.test.json similarity index 100% rename from tests/jsonrpc/v2.0/batch-request.test.json rename to test/jsonrpc/v2.0/batch-request.test.json diff --git a/tests/jsonrpc/v2.0/batch-response.test.json b/test/jsonrpc/v2.0/batch-response.test.json similarity index 100% rename from tests/jsonrpc/v2.0/batch-response.test.json rename to test/jsonrpc/v2.0/batch-response.test.json diff --git a/tests/jsonrpc/v2.0/code-predefined.test.json b/test/jsonrpc/v2.0/code-predefined.test.json similarity index 100% rename from tests/jsonrpc/v2.0/code-predefined.test.json rename to test/jsonrpc/v2.0/code-predefined.test.json diff --git a/tests/jsonrpc/v2.0/code.test.json b/test/jsonrpc/v2.0/code.test.json similarity index 100% rename from tests/jsonrpc/v2.0/code.test.json rename to test/jsonrpc/v2.0/code.test.json diff --git a/tests/jsonrpc/v2.0/error.test.json b/test/jsonrpc/v2.0/error.test.json similarity index 100% rename from tests/jsonrpc/v2.0/error.test.json rename to test/jsonrpc/v2.0/error.test.json diff --git a/tests/jsonrpc/v2.0/identifier.test.json b/test/jsonrpc/v2.0/identifier.test.json similarity index 100% rename from tests/jsonrpc/v2.0/identifier.test.json rename to test/jsonrpc/v2.0/identifier.test.json diff --git a/tests/jsonrpc/v2.0/method-internal.test.json b/test/jsonrpc/v2.0/method-internal.test.json similarity index 100% rename from tests/jsonrpc/v2.0/method-internal.test.json rename to test/jsonrpc/v2.0/method-internal.test.json diff --git a/tests/jsonrpc/v2.0/method.test.json b/test/jsonrpc/v2.0/method.test.json similarity index 100% rename from tests/jsonrpc/v2.0/method.test.json rename to test/jsonrpc/v2.0/method.test.json diff --git a/tests/jsonrpc/v2.0/notification.test.json b/test/jsonrpc/v2.0/notification.test.json similarity index 100% rename from tests/jsonrpc/v2.0/notification.test.json rename to test/jsonrpc/v2.0/notification.test.json diff --git a/tests/jsonrpc/v2.0/parameters.test.json b/test/jsonrpc/v2.0/parameters.test.json similarity index 100% rename from tests/jsonrpc/v2.0/parameters.test.json rename to test/jsonrpc/v2.0/parameters.test.json diff --git a/tests/jsonrpc/v2.0/request.test.json b/test/jsonrpc/v2.0/request.test.json similarity index 100% rename from tests/jsonrpc/v2.0/request.test.json rename to test/jsonrpc/v2.0/request.test.json diff --git a/tests/jsonrpc/v2.0/response.test.json b/test/jsonrpc/v2.0/response.test.json similarity index 100% rename from tests/jsonrpc/v2.0/response.test.json rename to test/jsonrpc/v2.0/response.test.json diff --git a/tests/jsonschema/schema-like.test.json b/test/jsonschema/schema-like.test.json similarity index 100% rename from tests/jsonschema/schema-like.test.json rename to test/jsonschema/schema-like.test.json