diff options
-rwxr-xr-x | run_unittests.py | 6 | ||||
-rw-r--r-- | test cases/unit/20 warning location/a.c | 0 | ||||
-rw-r--r-- | test cases/unit/20 warning location/b.c | 0 | ||||
-rw-r--r-- | test cases/unit/20 warning location/main.c | 0 | ||||
-rw-r--r-- | test cases/unit/20 warning location/meson.build | 5 | ||||
-rw-r--r-- | test cases/unit/20 warning location/sub/c.c | 0 | ||||
-rw-r--r-- | test cases/unit/20 warning location/sub/d.c | 0 | ||||
-rw-r--r-- | test cases/unit/20 warning location/sub/meson.build | 3 | ||||
-rw-r--r-- | test cases/unit/20 warning location/sub/sub.c | 0 |
9 files changed, 14 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index cf229da..036ddd2 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -1707,6 +1707,12 @@ int main(int argc, char **argv) { self.init(workdir) self.build() + def test_warning_location(self): + tdir = os.path.join(self.unit_test_dir, '20 warning location') + out = self.init(tdir) + self.assertRegex(out, r'WARNING: Keyword argument "link_with" defined multiple times in file meson.build, line 4') + self.assertRegex(out, r'WARNING: Keyword argument "link_with" defined multiple times in file sub' + re.escape(os.path.sep) + r'meson.build, line 3') + class FailureTests(BasePlatformTests): ''' diff --git a/test cases/unit/20 warning location/a.c b/test cases/unit/20 warning location/a.c new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test cases/unit/20 warning location/a.c diff --git a/test cases/unit/20 warning location/b.c b/test cases/unit/20 warning location/b.c new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test cases/unit/20 warning location/b.c diff --git a/test cases/unit/20 warning location/main.c b/test cases/unit/20 warning location/main.c new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test cases/unit/20 warning location/main.c diff --git a/test cases/unit/20 warning location/meson.build b/test cases/unit/20 warning location/meson.build new file mode 100644 index 0000000..7a2e5a7 --- /dev/null +++ b/test cases/unit/20 warning location/meson.build @@ -0,0 +1,5 @@ +project('duplicate kwarg', 'c') +a = library('liba', 'a.c') +b = library('libb', 'b.c') +executable('main', 'main.c', link_with: a, link_with: b) +subdir('sub') diff --git a/test cases/unit/20 warning location/sub/c.c b/test cases/unit/20 warning location/sub/c.c new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test cases/unit/20 warning location/sub/c.c diff --git a/test cases/unit/20 warning location/sub/d.c b/test cases/unit/20 warning location/sub/d.c new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test cases/unit/20 warning location/sub/d.c diff --git a/test cases/unit/20 warning location/sub/meson.build b/test cases/unit/20 warning location/sub/meson.build new file mode 100644 index 0000000..c23d8e7 --- /dev/null +++ b/test cases/unit/20 warning location/sub/meson.build @@ -0,0 +1,3 @@ +c = library('libc', 'c.c') +d = library('libd', 'd.c') +executable('sub', 'sub.c', link_with: c, link_with: d) diff --git a/test cases/unit/20 warning location/sub/sub.c b/test cases/unit/20 warning location/sub/sub.c new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test cases/unit/20 warning location/sub/sub.c |