You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1007 B
35 lines
1007 B
import lldb
|
|
from lldbsuite.test.lldbtest import *
|
|
from lldbsuite.test import lldbutil
|
|
from lldbsuite.test.decorators import *
|
|
|
|
class TestTraceLoad(TestBase):
|
|
|
|
mydir = TestBase.compute_mydir(__file__)
|
|
NO_DEBUG_INFO_TESTCASE = True
|
|
|
|
def setUp(self):
|
|
TestBase.setUp(self)
|
|
if 'intel-pt' not in configuration.enabled_plugins:
|
|
self.skipTest("The intel-pt test plugin is not enabled")
|
|
|
|
|
|
def testSchema(self):
|
|
self.expect("trace schema intel-pt", substrs=["trace", "triple", "threads", "traceFile"])
|
|
|
|
def testInvalidPluginSchema(self):
|
|
self.expect("trace schema invalid-plugin", error=True,
|
|
substrs=['error: no trace plug-in matches the specified type: "invalid-plugin"'])
|
|
|
|
def testAllSchemas(self):
|
|
self.expect("trace schema all", substrs=['''{
|
|
"trace": {
|
|
"type": "intel-pt",
|
|
"pt_cpu": {
|
|
"vendor": "intel" | "unknown",
|
|
"family": integer,
|
|
"model": integer,
|
|
"stepping": integer
|
|
}
|
|
},'''])
|