зеркало из https://github.com/mozilla/gecko-dev.git
Bug 921563 - part 3 - simplify test_ipdl_sources; r=gps
This commit is contained in:
Родитель
53115a9178
Коммит
5cd2739961
|
@ -468,16 +468,17 @@ class TestRecursiveMakeBackend(BackendTester):
|
|||
|
||||
expected = [
|
||||
"ALL_IPDLSRCS := %s/bar/bar.ipdl %s/bar/bar2.ipdlh %s/foo/foo.ipdl %s/foo/foo2.ipdlh" % tuple([topsrcdir] * 4),
|
||||
"",
|
||||
"CPPSRCS := bar.cpp barChild.cpp barParent.cpp" +
|
||||
" bar2.cpp" +
|
||||
" foo.cpp fooChild.cpp fooParent.cpp" +
|
||||
" foo2.cpp",
|
||||
"",
|
||||
"IPDLDIRS := %s/bar %s/foo" % (topsrcdir, topsrcdir),
|
||||
"",
|
||||
]
|
||||
self.assertEqual(lines, expected)
|
||||
|
||||
found = [str for str in lines if str.startswith(('ALL_IPDLSRCS',
|
||||
'CPPSRCS',
|
||||
'IPDLDIRS'))]
|
||||
self.assertEqual(found, expected)
|
||||
|
||||
def test_defines(self):
|
||||
"""Test that DEFINES are written to backend.mk correctly."""
|
||||
|
|
Загрузка…
Ссылка в новой задаче