From ca2e2b3d6973b1f942571ba65bd8b57153847777 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Wed, 14 Nov 2018 14:53:28 +0100 Subject: tests,json: Suffix .json to test pattern * tests/json/t-config.in, tests/json/t-config.out: Renamed. * t-json.c (run_test): Use new naming pattern. --- tests/json/t-config.in | 4 ---- tests/json/t-config.in.json | 4 ++++ tests/json/t-config.out | 19 ------------------- tests/json/t-config.out.json | 19 +++++++++++++++++++ tests/json/t-json.c | 4 ++-- 5 files changed, 25 insertions(+), 25 deletions(-) delete mode 100644 tests/json/t-config.in create mode 100644 tests/json/t-config.in.json delete mode 100644 tests/json/t-config.out create mode 100644 tests/json/t-config.out.json diff --git a/tests/json/t-config.in b/tests/json/t-config.in deleted file mode 100644 index 22b37ee5..00000000 --- a/tests/json/t-config.in +++ /dev/null @@ -1,4 +0,0 @@ -{ - "op": "config", - "component": "gpg" -} diff --git a/tests/json/t-config.in.json b/tests/json/t-config.in.json new file mode 100644 index 00000000..22b37ee5 --- /dev/null +++ b/tests/json/t-config.in.json @@ -0,0 +1,4 @@ +{ + "op": "config", + "component": "gpg" +} diff --git a/tests/json/t-config.out b/tests/json/t-config.out deleted file mode 100644 index fce36a0f..00000000 --- a/tests/json/t-config.out +++ /dev/null @@ -1,19 +0,0 @@ -{ - "components": [{ - "name": "gpg", - "description": "OpenPGP", - "options": [{ - "name": "Monitor", - "flags": 1, - "level": 0, - "type": 0, - "alt_type": 0 - }, { - "name": "verbose", - "description": "verbose", - "level": 0, - "type": 0, - "alt_type": 0 - }] - }] -} diff --git a/tests/json/t-config.out.json b/tests/json/t-config.out.json new file mode 100644 index 00000000..fce36a0f --- /dev/null +++ b/tests/json/t-config.out.json @@ -0,0 +1,19 @@ +{ + "components": [{ + "name": "gpg", + "description": "OpenPGP", + "options": [{ + "name": "Monitor", + "flags": 1, + "level": 0, + "type": 0, + "alt_type": 0 + }, { + "name": "verbose", + "description": "verbose", + "level": 0, + "type": 0, + "alt_type": 0 + }] + }] +} diff --git a/tests/json/t-json.c b/tests/json/t-json.c index 0bd35b5e..26f870ce 100644 --- a/tests/json/t-json.c +++ b/tests/json/t-json.c @@ -261,9 +261,9 @@ run_test (const char *test, const char *gpgme_json) exit(1); } - gpgrt_asprintf (&test_in, "%s/tests/json/%s.in", + gpgrt_asprintf (&test_in, "%s/tests/json/%s.in.json", top_srcdir, test); - gpgrt_asprintf (&test_out, "%s/tests/json/%s.out", + gpgrt_asprintf (&test_out, "%s/tests/json/%s.out.json", top_srcdir, test); printf ("Running %s...\n", test); -- cgit v1.2.3