aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-05-09 15:40:09 -0400
committerDavid Robillard <d@drobilla.net>2022-05-09 15:40:09 -0400
commitbd70bc95db7b9aea77d04ffba0693a485d4af8c6 (patch)
tree79bd31cdbec873da4df56a4b7de5911d443b8162 /wscript
parent7ab1f698e8c883b23e6df6a404e7f1c33363ff2d (diff)
downloadlv2-bd70bc95db7b9aea77d04ffba0693a485d4af8c6.tar.xz
Fix incorrect spelling and test for regression with codespell
Diffstat (limited to 'wscript')
-rw-r--r--wscript18
1 files changed, 17 insertions, 1 deletions
diff --git a/wscript b/wscript
index 37a24e8..f05ae77 100644
--- a/wscript
+++ b/wscript
@@ -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: