199451b44SJordan Rupprecht"""
299451b44SJordan RupprechtMake sure we can find the binary inside an app bundle.
399451b44SJordan Rupprecht"""
499451b44SJordan Rupprecht
599451b44SJordan Rupprechtimport lldb
699451b44SJordan Rupprechtfrom lldbsuite.test.decorators import *
799451b44SJordan Rupprechtimport lldbsuite.test.lldbutil as lldbutil
899451b44SJordan Rupprechtimport lldbsuite.test.lldbplatformutil as lldbplatformutil
999451b44SJordan Rupprechtfrom lldbsuite.test.lldbtest import *
1099451b44SJordan Rupprecht
1199451b44SJordan Rupprecht@decorators.skipUnlessDarwin
1299451b44SJordan Rupprechtclass FindAppInMacOSAppBundle(TestBase):
1399451b44SJordan Rupprecht
1499451b44SJordan Rupprecht    NO_DEBUG_INFO_TESTCASE = True
1599451b44SJordan Rupprecht
1699451b44SJordan Rupprecht    def test_find_app_in_bundle(self):
1799451b44SJordan Rupprecht        """This reads in the .app, makes sure we get the right binary and can run it."""
18*7e825abdSAdrian Prantl        self.build()
19*7e825abdSAdrian Prantl        lldbutil.run_to_source_breakpoint(
20*7e825abdSAdrian Prantl            self, 'breakpoint here', lldb.SBFileSpec('main.c'),
21*7e825abdSAdrian Prantl            exe_name=self.getBuildArtifact("TestApp.app"))
22