aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorAleksey Filippov <alekseyf@google.com>2018-03-13 17:56:33 +0000
committerAleksey Filippov <alekseyf@google.com>2018-04-16 22:51:34 +0100
commitcb761718f0fad4a6ee6396149d03c5b6b1586f44 (patch)
treedfbdf4729c9d25b5f1128e7b6a7812d230a3d4c5 /run_unittests.py
parentc58dd64f8e947f4659bcbc47d75e86e65043e714 (diff)
downloadmeson-cb761718f0fad4a6ee6396149d03c5b6b1586f44.zip
meson-cb761718f0fad4a6ee6396149d03c5b6b1586f44.tar.gz
meson-cb761718f0fad4a6ee6396149d03c5b6b1586f44.tar.bz2
Generate target id based on subdirectory instead of subproject
Allows creation of targets with same name in different subdirectories. Closes #2861 and closes #1867
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 19a8c87..4ed75ea 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -1117,7 +1117,7 @@ class AllPlatformTests(BasePlatformTests):
incs = [a for a in shlex.split(execmd) if a.startswith("-I")]
self.assertEqual(len(incs), 9)
# target private dir
- self.assertPathEqual(incs[0], "-Isub4/someexe@exe")
+ self.assertPathEqual(incs[0], "-Isub4/sub4@@someexe@exe")
# target build subdir
self.assertPathEqual(incs[1], "-Isub4")
# target source subdir
@@ -2601,8 +2601,8 @@ class LinuxlikeTests(BasePlatformTests):
def test_unity_subproj(self):
testdir = os.path.join(self.common_test_dir, '49 subproject')
self.init(testdir, extra_args='--unity=subprojects')
- self.assertPathExists(os.path.join(self.builddir, 'subprojects/sublib/sublib@@simpletest@exe/simpletest-unity.c'))
- self.assertPathExists(os.path.join(self.builddir, 'subprojects/sublib/sublib@@sublib@sha/sublib-unity.c'))
+ self.assertPathExists(os.path.join(self.builddir, 'subprojects/sublib/subprojects@sublib@@simpletest@exe/simpletest-unity.c'))
+ self.assertPathExists(os.path.join(self.builddir, 'subprojects/sublib/subprojects@sublib@@sublib@sha/sublib-unity.c'))
self.assertPathDoesNotExist(os.path.join(self.builddir, 'user@exe/user-unity.c'))
self.build()