diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-09-07 21:38:02 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-09-11 14:50:35 +0530 |
commit | db199b06e65ddb1dc3cb674cad31d872b60aee56 (patch) | |
tree | 0887da16cf0b5206b78fd6b64746fa4c7d27f63b /run_unittests.py | |
parent | 5b1babd611e32e131bd8695b484a5eb67e1026c4 (diff) | |
download | meson-db199b06e65ddb1dc3cb674cad31d872b60aee56.zip meson-db199b06e65ddb1dc3cb674cad31d872b60aee56.tar.gz meson-db199b06e65ddb1dc3cb674cad31d872b60aee56.tar.bz2 |
Add a test for the custom target incdirs change
https://github.com/mesonbuild/meson/pull/2291
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/run_unittests.py b/run_unittests.py index 08ec774..6487496 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -899,7 +899,7 @@ class AllPlatformTests(BasePlatformTests): raise Exception('Could not find someexe and somfxe commands') # Check include order for 'someexe' incs = [a for a in shlex.split(execmd) if a.startswith("-I")] - self.assertEqual(len(incs), 8) + self.assertEqual(len(incs), 9) # target private dir self.assertPathEqual(incs[0], "-Isub4/someexe@exe") # target build subdir @@ -916,6 +916,8 @@ class AllPlatformTests(BasePlatformTests): self.assertPathEqual(incs[6], "-Isub1") # target internal dependency include_directories: source dir self.assertPathBasenameEqual(incs[7], 'sub1') + # custom target include dir + self.assertPathEqual(incs[8], '-Ictsub') # Check include order for 'somefxe' incs = [a for a in shlex.split(fxecmd) if a.startswith('-I')] self.assertEqual(len(incs), 9) |