[lldb][modern-type-lookup] Add two basic tests for modern-type-lookup
authorRaphael Isemann <teemperor@gmail.com>
Wed, 25 Sep 2019 13:33:50 +0000 (13:33 +0000)
committerRaphael Isemann <teemperor@gmail.com>
Wed, 25 Sep 2019 13:33:50 +0000 (13:33 +0000)
commit6f9f8f411fe7f0fd6cf7fd39b259ba1c56569421
treed6869fe89825304ab6ec58be3e325d1d5e542a46
parent2cec4b58f5ce7d5c843dbfb753b0acb29c81cfc0
[lldb][modern-type-lookup] Add two basic tests for modern-type-lookup

The story so far: LLDB's modern type lookup mode has no (as in, 0%) test
coverage. It was supposed to be tested by hardcoding the default to 'true' and then running
the normal LLDB tests, but to my knowledge no one is doing that. As a around 130 tests
seem to fail with this mode enabled, we also can't just enable it globally for now.

As we touch the surrounding code all the time and also want to refactor parts of it, we
should be a bit more ambitious with our testing efforts.

So this patch adds two basic tests that enable this mode and do some
basic expression parsing which should hopefully be basic enough to not
break anywhere but still lets us know if this mode works at all (i.e. setting up the
ExternalASTMerger in LLDB, using its basic import functionality to move declarations
around and do some lookups).

llvm-svn: 372869
lldb/packages/Python/lldbsuite/test/functionalities/modern-type-lookup/basic-objc/Makefile [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/modern-type-lookup/basic-objc/TestBasicObjcModernTypeLookup.py [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/modern-type-lookup/basic-objc/main.m [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/modern-type-lookup/basic/Makefile [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/modern-type-lookup/basic/TestBasicModernTypeLookup.py [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/modern-type-lookup/basic/main.cpp [new file with mode: 0644]