diff options
| author | David Robillard <d@drobilla.net> | 2022-05-09 15:40:09 -0400 | 
|---|---|---|
| committer | David Robillard <d@drobilla.net> | 2022-05-09 15:40:09 -0400 | 
| commit | bd70bc95db7b9aea77d04ffba0693a485d4af8c6 (patch) | |
| tree | 79bd31cdbec873da4df56a4b7de5911d443b8162 /wscript | |
| parent | 7ab1f698e8c883b23e6df6a404e7f1c33363ff2d (diff) | |
| download | lv2-bd70bc95db7b9aea77d04ffba0693a485d4af8c6.tar.xz | |
Fix incorrect spelling and test for regression with codespell
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 18 | 
1 files changed, 17 insertions, 1 deletions
@@ -9,7 +9,7 @@ from waflib.extras import autowaf as autowaf  # Mandatory waf variables  APPNAME = 'lv2'     # Package name for waf dist -VERSION = '1.18.2'  # Package version for waf dist +VERSION = '1.18.3'  # Package version for waf dist  top     = '.'       # Source directory  out     = 'build'   # Build directory @@ -196,6 +196,7 @@ def configure(conf):      if conf.env.BUILD_TESTS:          conf.find_program('serdi', mandatory=False)          conf.find_program('sord_validate', mandatory=False) +        conf.find_program('codespell', mandatory=False)      autowaf.set_lib_env(conf, 'lv2', VERSION, has_objects=False)      autowaf.set_local_lib(conf, 'lv2', has_objects=False) @@ -719,6 +720,21 @@ def test(tst):              all_files = schemas + spec_files + plugin_files + bld_files              check(tst.env.SORD_VALIDATE + all_files) +        if "CODESPELL" in tst.env: +            spell_ignore = [ +                "../doc/pygments.css", +                "../lv2specgen/DTD/*", +                "../schemas.lv2/doap.ttl", +                "../waflib", +            ] + +            check(tst.env.CODESPELL + [ +                "-d", +                "-q", "3", +                "-S", ','.join(spell_ignore), +                '..', +            ]) +          try:              test_vocabularies(check, specs, spec_files)          except ImportError as e:  |