• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"""
2Test that we embed the swig version into the lldb module
3"""
4
5
6"""
7import os
8import time
9import re
10import lldb
11from lldbsuite.test.decorators import *
12from lldbsuite.test import lldbutil
13"""
14from lldbsuite.test.lldbtest import *
15
16class SwigVersionTestCase(TestBase):
17
18    mydir = TestBase.compute_mydir(__file__)
19    NO_DEBUG_INFO_TESTCASE = True
20
21    def test(self):
22        self.assertTrue(getattr(lldb, "swig_version"))
23        self.assertIsInstance(lldb.swig_version, tuple)
24        self.assertEqual(len(lldb.swig_version), 3)
25        self.assertGreaterEqual(lldb.swig_version[0], 1)
26        for v in lldb.swig_version:
27            self.assertGreaterEqual(v, 0)
28