Public Member Functions | Static Public Attributes | Private Attributes | List of all members
test.test_bag_to_sqlite.TestBagInputSqliteOutput Class Reference
Inheritance diagram for test.test_bag_to_sqlite.TestBagInputSqliteOutput:
Inheritance graph
[legend]

Public Member Functions

def setUp (self)
 
def test_grepros (self)
 
- Public Member Functions inherited from test.testbase.TestBase
def __init__ (self, *args, **kwargs)
 
def create_publisher (self, topic, cls)
 
def init_node (self)
 
def run_command (self, communicate=True)
 
def run_rostest (cls)
 
def shutdown_node (self)
 
def spin_once (self, timeout)
 
def subTest (self, msg=None, **params)
 
def tearDown (self)
 
def verify_bags (self)
 
def verify_topics (self, topics, messages=None)
 

Static Public Attributes

 NAME = os.path.splitext(os.path.basename(__file__))[0]
 Test name used in flow logging. More...
 
string OUTPUT_LABEL = "SQLite"
 Name used in logging. More...
 
string OUTPUT_SUFFIX = ".sqlite"
 Suffix for write output files. More...
 
- Static Public Attributes inherited from test.testbase.TestBase
string BAG_SUFFIX = "1" else ".db3"
 ROS bagfile extension. More...
 
list CMD_BASE = ["grepros"] + SEARCH_WORDS + \
 Base command for running grepros. More...
 
 DATA_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "data"))
 Test bags directory. More...
 
list EXPECTED_TOPIC_BASES = ["/match/this/intarray", "/match/this/header"]
 Topics expected in output, bag name appended. More...
 
list EXPECTED_WORDS = ["match_this"]
 Words expected in matched messages, bag name appended. More...
 
string INPUT_LABEL = "ROS bags"
 Name used in flow logging. More...
 
string NAME = ""
 Test name used in flow logging. More...
 
string OUTPUT_LABEL = ""
 Name used in flow logging. More...
 
 OUTPUT_SUFFIX = None
 Suffix for write output file, if any. More...
 
list SEARCH_WORDS = ["this"]
 Words searched in bag. More...
 
list SKIPPED_TOPIC_BASES = ["/not/this/intarray", "/match/this/not"]
 Topics not expected in output, bag name appended. More...
 
list SKIPPED_WORDS = ["not_this"]
 Words not expected in matched messages, bag name appended. More...
 

Private Attributes

 _cmd
 
 _outfile
 

Additional Inherited Members

- Public Attributes inherited from test.testbase.TestBase
 maxDiff
 

Detailed Description

Tests grepping from input bags and writing matches to SQLite file.

Definition at line 26 of file test_bag_to_sqlite.py.

Member Function Documentation

◆ setUp()

def test.test_bag_to_sqlite.TestBagInputSqliteOutput.setUp (   self)
Collects bags in data directory, assembles command.

Reimplemented from test.testbase.TestBase.

Definition at line 38 of file test_bag_to_sqlite.py.

◆ test_grepros()

def test.test_bag_to_sqlite.TestBagInputSqliteOutput.test_grepros (   self)
Runs grepros on bags in data directory, verifies SQLite output.

Definition at line 43 of file test_bag_to_sqlite.py.

Member Data Documentation

◆ _cmd

test.test_bag_to_sqlite.TestBagInputSqliteOutput._cmd
private

Definition at line 41 of file test_bag_to_sqlite.py.

◆ _outfile

test.test_bag_to_sqlite.TestBagInputSqliteOutput._outfile
private

Definition at line 50 of file test_bag_to_sqlite.py.

◆ NAME

test.test_bag_to_sqlite.TestBagInputSqliteOutput.NAME = os.path.splitext(os.path.basename(__file__))[0]
static

Test name used in flow logging.

Definition at line 30 of file test_bag_to_sqlite.py.

◆ OUTPUT_LABEL

string test.test_bag_to_sqlite.TestBagInputSqliteOutput.OUTPUT_LABEL = "SQLite"
static

Name used in logging.

Definition at line 33 of file test_bag_to_sqlite.py.

◆ OUTPUT_SUFFIX

string test.test_bag_to_sqlite.TestBagInputSqliteOutput.OUTPUT_SUFFIX = ".sqlite"
static

Suffix for write output files.

Definition at line 36 of file test_bag_to_sqlite.py.


The documentation for this class was generated from the following file:


grepros
Author(s): Erki Suurjaak
autogenerated on Sat Jan 6 2024 03:11:30