diff options
author | RazrFalcon <razrfalcon@gmail.com> | 2018-12-16 17:18:20 +0200 |
---|---|---|
committer | RazrFalcon <razrfalcon@gmail.com> | 2018-12-16 17:18:20 +0200 |
commit | 3b596797c5515e192b4a11912c8e3b26902228f9 (patch) | |
tree | 1d458478fe0f92477512ecf0ba232b3a0f353370 /testing_tools | |
parent | 0b2514e2aad8c0740c83f41645ac1f507db96bd1 (diff) |
The usvg repo is a subproject now.
usvg is the core part of the resvg and it was troublesome to develop it in
a separate repo.
Diffstat (limited to 'testing_tools')
-rwxr-xr-x | testing_tools/run-tests.py | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/testing_tools/run-tests.py b/testing_tools/run-tests.py index b7fb3f2..6d620e9 100755 --- a/testing_tools/run-tests.py +++ b/testing_tools/run-tests.py @@ -47,7 +47,7 @@ if os.getcwd().endswith('testing_tools'): if 'TRAVIS_BUILD_DIR' in os.environ: local_test = False work_dir = Path('.').resolve() - tests_dir = Path('./resvg-test-suite/svg').resolve() + tests_dir = Path('./target/resvg-test-suite/svg').resolve() else: local_test = True work_dir = '/tmp' @@ -59,7 +59,7 @@ print('tests_dir:', tests_dir) # clone tests on CI if not local_test: - run(['git', 'clone', TESTS_URL, '--depth', '1'], check=True) + run(['git', 'clone', TESTS_URL, '--depth', '1', './target/resvg-test-suite'], check=True) if 'RESVG_QT_BACKEND' in os.environ: @@ -147,3 +147,15 @@ if 'RESVG_CAIRO_BACKEND' in os.environ: # build cairo-rs example with cd('examples/cairo-rs'): run(['cargo', 'build'], check=True) + + +if 'USVG_TESTING' in os.environ: + with cd('tools/usvg'): + run(['cargo', 'build'], check=True) + + with cd('usvg'): + run(['cargo', 'test'], check=True) + + with cd('usvg/testing_tools'): + run(['./regression.py', '--ci-mode', '../../target/resvg-test-suite/svg', + '../../target/test-suite-temp'], check=True) |