diff options
author | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2021-11-27 13:01:52 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2021-11-27 13:01:52 +0000 |
commit | e79cc01fb51b23b64b75dd09831989a41ea4f7d3 (patch) | |
tree | 62249bc5c5a3b6a47bffc723dc21849f8f83689f /check | |
parent | e3a8468282771369b5fb37be5c6e23c1e2833433 (diff) | |
parent | 99c0d2c80a476e13866cbd74b6e35ff95a1e5d58 (diff) | |
download | subplot-e79cc01fb51b23b64b75dd09831989a41ea4f7d3.tar.gz |
Merge branch 'subplotlib-buildrs' into 'main'
refactor: use build.rs for testing subplotlib subplots
Closes #242
See merge request subplot/subplot!237
Diffstat (limited to 'check')
-rwxr-xr-x | check | 21 |
1 files changed, 0 insertions, 21 deletions
@@ -321,27 +321,6 @@ def check_subplotlib(r): # Run Rust doctests for the subplotlib library. r.runcmd(["cargo", "test", "--doc"], cwd="subplotlib") - # Find subplots for subplotlib. - mds = find_files("subplotlib/*.md", lambda f: True) - - os.makedirs("subplotlib/tests", exist_ok=True) - for md0 in mds: - r.title(f"checking subplot {md0}") - dirname = os.path.dirname(md0) - md = os.path.basename(md0) - base, _ = os.path.splitext(md) - test_rs = os.path.join("tests", base + ".rs") - r.codegen(md, test_rs, cwd=dirname) - r.docgen(md, os.path.join(output, base + ".html"), cwd=dirname) - r.docgen(md, os.path.join(output, base + ".pdf"), cwd=dirname) - - # Format the code once more to keep things clean - r.title("Formatting subplotlib") - r.cargo(["fmt", "-p", "subplotlib"], cwd=dirname) - # Run all of the integration suites (many of which have come from the above) - r.title("Running subplotlib integration tests") - r.cargo(["test", "-p", "subplotlib", "--tests"]) - def check_tooling(r): """Check build environment for tooling the test suite needs""" |