Public Member Functions | Static Public Attributes | Private Attributes | List of all members
test.test_bag_to_sql.TestBagInputSqlOutput Class Reference
Inheritance diagram for test.test_bag_to_sql.TestBagInputSqlOutput:
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 = "SQL"
 Name used in logging. More...
 
string OUTPUT_SUFFIX = ".sql"
 Suffix for write output file. 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
 

Additional Inherited Members

- Public Attributes inherited from test.testbase.TestBase
 maxDiff
 

Detailed Description

Tests grepping from input bags and writing schema to SQL file.

Definition at line 25 of file test_bag_to_sql.py.

Member Function Documentation

◆ setUp()

def test.test_bag_to_sql.TestBagInputSqlOutput.setUp (   self)
Collects bags in data directory, assembles command.

Reimplemented from test.testbase.TestBase.

Definition at line 37 of file test_bag_to_sql.py.

◆ test_grepros()

def test.test_bag_to_sql.TestBagInputSqlOutput.test_grepros (   self)
Runs grepros on bags in data directory, verifies HTML output.

Definition at line 43 of file test_bag_to_sql.py.

Member Data Documentation

◆ _cmd

test.test_bag_to_sql.TestBagInputSqlOutput._cmd
private

Definition at line 40 of file test_bag_to_sql.py.

◆ NAME

test.test_bag_to_sql.TestBagInputSqlOutput.NAME = os.path.splitext(os.path.basename(__file__))[0]
static

Test name used in flow logging.

Definition at line 29 of file test_bag_to_sql.py.

◆ OUTPUT_LABEL

string test.test_bag_to_sql.TestBagInputSqlOutput.OUTPUT_LABEL = "SQL"
static

Name used in logging.

Definition at line 32 of file test_bag_to_sql.py.

◆ OUTPUT_SUFFIX

string test.test_bag_to_sql.TestBagInputSqlOutput.OUTPUT_SUFFIX = ".sql"
static

Suffix for write output file.

Definition at line 35 of file test_bag_to_sql.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