Bug 921563 - part 3 - simplify test_ipdl_sources; r=gps

This commit is contained in:
Nathan Froyd 2013-09-30 11:10:32 -04:00
Родитель 53115a9178
Коммит 5cd2739961
1 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -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."""