summaryrefslogtreecommitdiff
path: root/json-glib/tests
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2017-04-13 11:38:35 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2017-06-03 12:26:17 +0100
commite942fd476b69f15d53a04c2c292c5e80fa444ff9 (patch)
treebe6e3914df76e1c1f0b3eb9c542525005409161f /json-glib/tests
parent5c631b7c435066f13684a8a28faf7c3609a2d020 (diff)
downloadjson-glib-e942fd476b69f15d53a04c2c292c5e80fa444ff9.tar.gz
build: Move ancillary build scripts to a separate directory
Avoid cluttering the source directories, and makes finding things easier.
Diffstat (limited to 'json-glib/tests')
-rw-r--r--json-glib/tests/gen-installed-test.py19
-rw-r--r--json-glib/tests/meson.build3
2 files changed, 0 insertions, 22 deletions
diff --git a/json-glib/tests/gen-installed-test.py b/json-glib/tests/gen-installed-test.py
deleted file mode 100644
index 8fe4265..0000000
--- a/json-glib/tests/gen-installed-test.py
+++ /dev/null
@@ -1,19 +0,0 @@
-import sys
-import os
-import argparse
-
-def write_template(filename, data):
- with open(filename, 'w') as f:
- f.write(data)
-
-def build_template(testdir, testname):
- return "[Test]\nType=session\nExec={}\n".format(os.path.join(testdir, testname))
-
-argparser = argparse.ArgumentParser(description='Generate installed-test data.')
-argparser.add_argument('--testdir', metavar='dir', required=True, help='Installed test directory')
-argparser.add_argument('--testname', metavar='name', required=True, help='Installed test name')
-argparser.add_argument('--outfile', metavar='file', required=True, help='Output file')
-argparser.add_argument('--outdir', metavar='dir', required=True, help='Output directory')
-args = argparser.parse_args()
-
-write_template(os.path.join(args.outdir, args.outfile), build_template(args.testdir, args.testname))
diff --git a/json-glib/tests/meson.build b/json-glib/tests/meson.build
index 25cb3da..c1cfee2 100644
--- a/json-glib/tests/meson.build
+++ b/json-glib/tests/meson.build
@@ -15,9 +15,6 @@ tests = [
'serialize-full',
]
-python3 = import('python3').find_python()
-gen_installed_test = join_paths(meson.current_source_dir(), 'gen-installed-test.py')
-
test_data = [
'stream-load.json',
]