Extract tracetools_trace from tracetools_analysis

This commit is contained in:
Christophe Bedard 2019-06-06 09:28:25 +02:00
parent 6aba4109c3
commit 17fe8d2245
22 changed files with 614 additions and 272 deletions

22
test/test_tracepoints.py Normal file
View file

@ -0,0 +1,22 @@
# Test tracetools tracepoints
import unittest
from tracetools_analysis.test.utils import *
class TestTracepoints(unittest.TestCase):
def test_something(self):
self.assertTrue(True)
def test_publisher_creation(self):
session_name = 'test-session'
path = '/tmp'
package_name = ''
executable_name = ''
run_and_trace(package_name, executable_name, session_name, path)
event_names = get_trace_event_names(f'{path}/{session_name}')
self.assertTrue('ros2:rcl_publisher_init' in event_names)
if __name__ == '__main__':
unittest.main()