Files
clang-p2996/lldb/test/API/macosx/find-app-in-bundle/TestFindAppInBundle.py
Adrian Prantl 7e825abd57 Repair support for launching ios/tv/watch simulator binaries through platform
and delete a bunch (but not all) redundant code. If you compare the remaining implementations of Platform*Simulator.cpp, there is still an obvious leftover cleanup task.

Specifically, this patch

- removes SDK initialization from dotest (there is equivalent but more
  complete code in Makefile.rules)

- make Platform*Simulator inherit the generic implementation of
  PlatformAppleSimulator (more can be done here)

- simplify the platform logic in Makefile.rules

- replace the custom SDK finding logic in Platform*Simulator with XcodeSDK

- adds a test for each supported simulator

Differential Revision: https://reviews.llvm.org/D81980
2020-06-19 09:42:44 -07:00

24 lines
724 B
Python

"""
Make sure we can find the binary inside an app bundle.
"""
import lldb
from lldbsuite.test.decorators import *
import lldbsuite.test.lldbutil as lldbutil
import lldbsuite.test.lldbplatformutil as lldbplatformutil
from lldbsuite.test.lldbtest import *
@decorators.skipUnlessDarwin
class FindAppInMacOSAppBundle(TestBase):
mydir = TestBase.compute_mydir(__file__)
NO_DEBUG_INFO_TESTCASE = True
def test_find_app_in_bundle(self):
"""This reads in the .app, makes sure we get the right binary and can run it."""
self.build()
lldbutil.run_to_source_breakpoint(
self, 'breakpoint here', lldb.SBFileSpec('main.c'),
exe_name=self.getBuildArtifact("TestApp.app"))