diff options
author | David Robillard <d@drobilla.net> | 2021-01-01 20:49:40 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-01-01 20:49:40 +0100 |
commit | bbc9b1c424f80414eff33dd5ef513e4ef7844d93 (patch) | |
tree | a434273acb4ffe4dbcb149d13485ec8f7543371e | |
parent | bf23f48fe4ccf519bde3ea30bf3faa753b236c74 (diff) | |
download | sratom-bbc9b1c424f80414eff33dd5ef513e4ef7844d93.tar.gz sratom-bbc9b1c424f80414eff33dd5ef513e4ef7844d93.tar.bz2 sratom-bbc9b1c424f80414eff33dd5ef513e4ef7844d93.zip |
Use consistent test naming scheme
-rw-r--r-- | test/.clang-tidy (renamed from tests/.clang-tidy) | 0 | ||||
-rw-r--r-- | test/test_sratom.c (renamed from tests/sratom_test.c) | 0 | ||||
-rw-r--r-- | wscript | 8 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/.clang-tidy b/test/.clang-tidy index 0b8f64b..0b8f64b 100644 --- a/tests/.clang-tidy +++ b/test/.clang-tidy diff --git a/tests/sratom_test.c b/test/test_sratom.c index a4927b6..a4927b6 100644 --- a/tests/sratom_test.c +++ b/test/test_sratom.c @@ -161,12 +161,12 @@ def build(bld): # Unit test program bld(features = 'c cprogram', - source = 'tests/sratom_test.c', + source = 'test/test_sratom.c', includes = ['include'], use = 'libsratom_profiled', lib = test_libs, uselib = 'SERD SORD LV2', - target = 'sratom_test', + target = 'test_sratom', install_path = '', defines = defines, cflags = test_cflags, @@ -183,7 +183,7 @@ def test(tst): import sys with tst.group('Integration') as check: - check(['./sratom_test']) + check(['./test_sratom']) class LintContext(Build.BuildContext): @@ -220,7 +220,7 @@ def lint(ctx): if "CLANG_TIDY" in ctx.env and "clang" in ctx.env.CC[0]: Logs.info("Running clang-tidy") - sources = glob.glob('src/*.c') + glob.glob('tests/*.c') + sources = glob.glob('src/*.c') + glob.glob('test/*.c') sources = list(map(os.path.abspath, sources)) procs = [] for source in sources: |