xref: /llvm-project/lldb/test/API/macosx/universal64/TestUniversal64.py (revision baffaf000fd4667f33b3756d0d3b645b1d926b44)
1from lldbsuite.test.decorators import *
2from lldbsuite.test.lldbtest import *
3from lldbsuite.test import lldbutil
4
5
6class Universal64TestCase(TestBase):
7    NO_DEBUG_INFO_TESTCASE = True
8
9    def do_test(self):
10        exe = self.getBuildArtifact("fat.out")
11        target = self.dbg.CreateTarget(exe)
12
13        # Make sure the binary and the dSYM are in the image list.
14        self.expect("image list", patterns=["fat.out", "fat.out.dSYM"])
15
16        # The dynamic loader doesn't support fat64 executables so we can't
17        # actually launch them here.
18
19    # The Makefile manually invokes clang.
20    @skipIfLLVMTargetMissing("X86")
21    @skipIfAsan
22    @skipUnlessDarwin
23    @skipIfDarwinEmbedded
24    def test_universal64_executable(self):
25        """Test fat64 universal executable"""
26        self.build(debug_info="dsym")
27        self.do_test()
28
29    # The Makefile manually invokes clang.
30    @skipIfLLVMTargetMissing("X86")
31    @skipIfAsan
32    @skipUnlessDarwin
33    @skipIfDarwinEmbedded
34    def test_universal64_dsym(self):
35        """Test fat64 universal dSYM"""
36        self.build(debug_info="dsym", dictionary={"FAT64_DSYM": "1"})
37        self.do_test()
38