mirror of
https://github.com/siemens-mobile-hacks/llvm-c166.git
synced 2026-11-28 11:52:25 +00:00
SWIG 4 was released in 2019 and has been the de-facto standard for a
while now. All bots are running SWIG 4.0 or later.
This was motivated by #64279 which discovered that 662548c broke the
LLDB build with SWIG 3 on Windows.
Differential revision: https://reviews.llvm.org/D156804
26 lines
625 B
Python
26 lines
625 B
Python
"""
|
|
Test that we embed the swig version into the lldb module
|
|
"""
|
|
|
|
|
|
"""
|
|
import os
|
|
import time
|
|
import re
|
|
import lldb
|
|
from lldbsuite.test.decorators import *
|
|
from lldbsuite.test import lldbutil
|
|
"""
|
|
from lldbsuite.test.lldbtest import *
|
|
|
|
|
|
class SwigVersionTestCase(TestBase):
|
|
NO_DEBUG_INFO_TESTCASE = True
|
|
|
|
def test(self):
|
|
self.assertTrue(getattr(lldb, "swig_version"))
|
|
self.assertIsInstance(lldb.swig_version, tuple)
|
|
self.assertEqual(len(lldb.swig_version), 3)
|
|
self.assertGreaterEqual(lldb.swig_version[0], 4)
|
|
for v in lldb.swig_version:
|
|
self.assertGreaterEqual(v, 0)
|