A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
Examples as tests test suite

Runs several examples as tests in order to test ExampleAsTestSuite and ExampleAsTestCase. More...

+ Collaboration diagram for Examples as tests test suite:

Files

file  examples-as-tests-test-suite.cc
 Examples-as-tests test suite.
 

Classes

class  ns3::tests::CommandLineExampleTestCase
 Run command line example as a test case. More...
 
class  ns3::tests::ExamplesAsTestsTestSuite
 Run examples as tests, checking stdout for regressions. More...
 

Variables

static ExampleAsTestSuite ns3::tests::g_exampleCommandLineTest ("core-example-simulator", "sample-simulator", NS_TEST_SOURCEDIR)
 ExampleTestSuite instance variables.
 
static ExamplesAsTestsTestSuite ns3::tests::g_examplesAsTestsTestSuite
 ExampleAsTestsTestSuite instance variable.
 

Detailed Description

Runs several examples as tests in order to test ExampleAsTestSuite and ExampleAsTestCase.

Variable Documentation

◆ g_exampleCommandLineTest

ExampleAsTestSuite ns3::tests::g_exampleCommandLineTest("core-example-simulator", "sample-simulator", NS_TEST_SOURCEDIR) ( "core-example-simulator"  ,
"sample-simulator"  ,
NS_TEST_SOURCEDIR   
)
static

ExampleTestSuite instance variables.

Tests ExampleTestSuite which runs a single example as test suite as specified in constructor arguments.

◆ g_examplesAsTestsTestSuite

ExamplesAsTestsTestSuite ns3::tests::g_examplesAsTestsTestSuite
static

ExampleAsTestsTestSuite instance variable.

Tests multiple examples in a single TestSuite using AddTestCase to add the examples to the suite.

Definition at line 122 of file examples-as-tests-test-suite.cc.