encapsulates test code More...
#include <test.h>
Inherited by AddressAllocator6TestCase, AddressAllocatorHelperTestCase, AddressAllocatorTestCase, AddressCollision6TestCase, AddressCollisionTestCase, AlternateFindTestCase, AttributeTestCase< T >, BasicAddTestCase, BasicCallbackTestCase, BasicEnergyDepletionTest, BasicEnergyUpdateTest, BasicFindTestCase, BasicRandomNumberTestCase, BasicRenameTestCase, BasicTracedCallbackTestCase, BatteryLifetimeTest, BufferTest, BurstErrorModelSimple, CallbackValueTestCase, CommandLineTestCaseBase, CsmaBridgeTestCase, CsmaBroadcastTestCase, CsmaMulticastTestCase, CsmaOneSubnetTestCase, CsmaPacketSocketTestCase, CsmaPingTestCase, CsmaRawIpSocketTestCase, CsmaStarTestCase, CtrlBAckResponseHeaderTest, DiffTestCase, DropTailQueueTestCase, DsaRequestTestCase, DualStackTestCase, DynamicGlobalRoutingTestCase, ErrorModelSimple, ExampleAddress6GeneratorTestCase, ExampleAddressGeneratorTestCase, FileHeaderTestCase, FindPathTestCase, FiveDoublesAverageTestCase, FiveDoublesTestCase, FiveIntegersAverageTestCase, FiveIntegersTestCase, FlameRegressionTest, FriisPropagationLossModelTestCase, FullyQualifiedAddTestCase, FullyQualifiedFindTestCase, FullyQualifiedRenameTestCase, GlobalRouteManagerImplTestCase, GlobalRoutingSlash32TestCase, HwmpDoRfRegressionTest, HwmpProactiveRegressionTest, HwmpReactiveRegressionTest, HwmpSimplestRegressionTest, Int64x64ArithmeticTestCase, Int64x64Bug455TestCase, Int64x64Bug863TestCase, Int64x64CompareTestCase, Int64x64FracTestCase, Int64x64InputOutputTestCase, Int64x64InputTestCase, Int64x64InvertTestCase, IntegerTraceSourceAttributeTestCase, IntegerTraceSourceTestCase, IpAddressHelperTestCasev4, IpAddressHelperTestCasev6, Ipv4ForwardingTest, Ipv4FragmentationTest, Ipv4HeaderTest, Ipv4ListRoutingNegativeTestCase, Ipv4ListRoutingPositiveTestCase, Ipv4PacketInfoTagTest, Ipv4RawSocketImplTest, Ipv6AddressTestCase1, Ipv6ForwardingTest, Ipv6FragmentationTest, Ipv6ListRoutingNegativeTestCase, Ipv6ListRoutingPositiveTestCase, Ipv6PacketInfoTagTest, Ipv6RawSocketImplTest, LenaFdMtFfMacSchedulerTestCase, LenaTdMtFfMacSchedulerTestCase, LenaTtaFfMacSchedulerTestCase, LogDistancePropagationLossModelTestCase, MakeBoundCallbackTestCase, MakeCallbackTemplatesTestCase, MakeCallbackTestCase, ManyUniformRandomVariablesOneGetValueCallTestCase, MatrixPropagationLossModelTestCase, MobilityTraceTestCase, NetworkAllocatorHelperTestCase, NetworkAndAddress6TestCase, NetworkAndAddressTestCase, NetworkNumber6AllocatorTestCase, NetworkNumberAllocatorTestCase, ns3::AbstractAnimationInterfaceTestCase, ns3::AcousticModemEnergyDepletionTestCase, ns3::AcousticModemEnergyTestCase, ns3::AggregateObjectTestCase, ns3::aodv::AodvRqueueTest, ns3::aodv::AodvRtableEntryTest, ns3::aodv::AodvRtableTest, ns3::aodv::Bug772ChainTest, ns3::aodv::ChainRegressionTest, ns3::aodv::IdCacheTest, ns3::aodv::LoopbackTestCase, ns3::aodv::NeighborTest, ns3::aodv::QueueEntryTest, ns3::aodv::RerrHeaderTest, ns3::aodv::RrepAckHeaderTest, ns3::aodv::RrepHeaderTest, ns3::aodv::RreqHeaderTest, ns3::aodv::TypeHeaderTest, ns3::BriteTopologyFunctionTestCase, ns3::BriteTopologyStructureTestCase, ns3::Bug555TestCase, ns3::BuildingsHelperOneTestCase, ns3::BuildingsPathlossTestCase, ns3::BuildingsShadowingTestCase, ns3::CollisionTestCase, ns3::CosineAntennaModelTestCase, ns3::CreateObjectTestCase, ns3::DcfManagerTest, ns3::DegreesToRadiansTestCase, ns3::dot11s::HwmpRtableTest, ns3::dot11s::MeshHeaderTest, ns3::dot11s::PeerLinkFrameStartTest, ns3::DsdvHeaderTestCase, ns3::DsdvTableTestCase, ns3::dsr::DsrAckHeaderTest, ns3::dsr::DsrAckReqHeaderTest, ns3::dsr::DsrCacheEntryTest, ns3::dsr::DsrFsHeaderTest, ns3::dsr::DsrRerrHeaderTest, ns3::dsr::DsrRrepHeaderTest, ns3::dsr::DsrRreqHeaderTest, ns3::dsr::DsrRreqTableTest, ns3::dsr::DsrSendBuffTest, ns3::dsr::DsrSRHeaderTest, ns3::EpcS1uDlTestCase, ns3::EpcS1uUlTestCase, ns3::EpcTftClassifierTestCase, ns3::EpsGtpuHeaderTestCase, ns3::EventGarbageCollectorTestCase, ns3::flame::FlameHeaderTest, ns3::flame::FlameRtableTest, ns3::GlobalValueTestCase, ns3::HashTestCase, ns3::HistogramTestCase, ns3::InterferenceHelperSequenceTest, ns3::Ipv4L3ProtocolTestCase, ns3::Ipv6L3ProtocolTestCase, ns3::IsotropicAntennaModelTestCase, ns3::ItuR1411LosPropagationLossModelTestCase, ns3::ItuR1411NlosOverRooftopPropagationLossModelTestCase, ns3::Kun2600MhzPropagationLossModelTestCase, ns3::LenaDataPhyErrorModelTestCase, ns3::LenaDlCtrlPhyErrorModelTestCase, ns3::LenaFdBetFfMacSchedulerTestCase1, ns3::LenaFdBetFfMacSchedulerTestCase2, ns3::LenaFdTbfqFfMacSchedulerTestCase1, ns3::LenaFdTbfqFfMacSchedulerTestCase2, ns3::LenaHarqTestCase, ns3::LenaMimoTestCase, ns3::LenaPfFfMacSchedulerTestCase1, ns3::LenaPfFfMacSchedulerTestCase2, ns3::LenaPssFfMacSchedulerTestCase1, ns3::LenaPssFfMacSchedulerTestCase2, ns3::LenaRrFfMacSchedulerTestCase, ns3::LenaTdBetFfMacSchedulerTestCase1, ns3::LenaTdBetFfMacSchedulerTestCase2, ns3::LenaTdTbfqFfMacSchedulerTestCase1, ns3::LenaTdTbfqFfMacSchedulerTestCase2, ns3::LiIonEnergyTestCase, ns3::LookupTimeTestCase, ns3::LteCellSelectionTestCase, ns3::LteDownlinkCtrlSinrTestCase, ns3::LteDownlinkDataSinrTestCase, ns3::LteEarfcnTestCase, ns3::LteEnbAntennaTestCase, ns3::LteEpcE2eDataTestCase, ns3::LteFadingSystemTestCase, ns3::LteFadingTestCase, ns3::LteHandoverDelayTestCase, ns3::LteHandoverTargetTestCase, ns3::LteInterferenceTestCase, ns3::LteLinkAdaptationTestCase, ns3::LteNoisePsdTestCase, ns3::LtePathlossModelSystemTestCase, ns3::LteRlcAmE2eTestCase, ns3::LteRlcAmTransmitterTestCase, ns3::LteRlcUmE2eTestCase, ns3::LteRlcUmTransmitterTestCase, ns3::LteRrcConnectionEstablishmentTestCase, ns3::LteSpectrumModelTestCase, ns3::LteTxPsdTestCase, ns3::LteUeMeasurementsHandoverTestCase, ns3::LteUeMeasurementsPiecewiseTestCase1, ns3::LteUeMeasurementsPiecewiseTestCase2, ns3::LteUeMeasurementsTestCase, ns3::LteUplinkDataSinrTestCase, ns3::LteUplinkSrsSinrTestCase, ns3::LteX2HandoverMeasuresTestCase, ns3::LteX2HandoverTestCase, ns3::MeshInformationElementVectorBist, ns3::Ns2MobilityHelperTest, ns3::ObjectFactoryTestCase, ns3::OkumuraHataPropagationLossModelTestCase, ns3::olsr::Bug780Test, ns3::olsr::HelloRegressionTest, ns3::olsr::OlsrMprTestCase, ns3::olsr::TcRegressionTest, ns3::OlsrEmfTestCase, ns3::OlsrHelloTestCase, ns3::OlsrHnaTestCase, ns3::OlsrMidTestCase, ns3::OlsrTcTestCase, ns3::OneVectorConstructorTestCase, ns3::ParabolicAntennaModelTestCase, ns3::QosUtilsIsOldPacketTest, ns3::RadiansToDegreesTestCase, ns3::RandomRoomPositionAllocatorTestCase, ns3::RocketfuelTopologyReaderTest, ns3::RrcHeaderTestCase, ns3::SameRoomPositionAllocatorTestCase, ns3::SpectrumIdealPhyTestCase, ns3::SpectrumInterferenceTestCase, ns3::SpectrumValueTestCase, ns3::SteadyStateRandomWaypointTest, ns3::TestSuite, ns3::TwoVectorsConstructorTestCase, ns3::TxDurationTest, ns3::UniqueTypeIdTestCase, ns3::WaypointMobilityModelNotifyTest, ns3::WifiTest, Ns3TcpCwndTestCase1, Ns3TcpCwndTestCase2, Ns3TcpInteroperabilityTestCase, Ns3TcpLossTestCase, Ns3TcpNoDelayTestCase, Ns3TcpSocketTestCase1, Ns3TcpSocketTestCase2, Ns3TcpStateTestCase, Ns3WimaxCsParamTlvTestCase, Ns3WimaxFragmentationTestCase, Ns3WimaxManagementConnectionsTestCase, Ns3WimaxNetworkEntryTestCase, Ns3WimaxSchedulingTestCase, Ns3WimaxSfCreationTestCase, Ns3WimaxSfTlvTestCase, Ns3WimaxSFTypeTestCase, Ns3WimaxSimpleOFDMTestCase, Ns3WimaxSNRtoBLERTestCase, NscTcpLossTestCase1, NscTcpLossTestCase2, NullifyCallbackTestCase, ObjectMapAttributeTestCase, ObjectVectorAttributeTestCase, ObjectVectorConfigTestCase, ObjectVectorTraceConfigTestCase, OcbWifiMacTestCase, OneIntegerAverageTestCase, OneIntegerTestCase, OneUniformRandomVariableManyGetValueCallsTestCase, PacketBufferingCaseA, PacketBufferingCaseB, PacketLossCounterTestCase, PacketMetadataTest, PacketTagListTest, PacketTest, PbbTestCase, PeerManagementProtocolRegressionTest, PointerAttributeTestCase, PointToPointTest, ProbeTestCase1, PtrTestCase, RandomNumberSerializationTestCase, RandomVariableStreamAttributeTestCase, RandomVariableStreamConstantTestCase, RandomVariableStreamDeterministicTestCase, RandomVariableStreamEmpiricalAntitheticTestCase, RandomVariableStreamEmpiricalTestCase, RandomVariableStreamErlangAntitheticTestCase, RandomVariableStreamErlangTestCase, RandomVariableStreamExponentialAntitheticTestCase, RandomVariableStreamExponentialTestCase, RandomVariableStreamGammaAntitheticTestCase, RandomVariableStreamGammaTestCase, RandomVariableStreamLogNormalAntitheticTestCase, RandomVariableStreamLogNormalTestCase, RandomVariableStreamNormalAntitheticTestCase, RandomVariableStreamNormalTestCase, RandomVariableStreamParetoAntitheticTestCase, RandomVariableStreamParetoTestCase, RandomVariableStreamSequentialTestCase, RandomVariableStreamUniformAntitheticTestCase, RandomVariableStreamUniformTestCase, RandomVariableStreamWeibullAntitheticTestCase, RandomVariableStreamWeibullTestCase, RandomVariableStreamZetaAntitheticTestCase, RandomVariableStreamZetaTestCase, RandomVariableStreamZipfAntitheticTestCase, RandomVariableStreamZipfTestCase, RangePropagationLossModelTestCase, ReadFileTestCase, ReadModeCreateTestCase, RecordHeaderTestCase, RedQueueTestCase, RelativeAddTestCase, RelativeFindTestCase, RelativeRenameTestCase, ResetAllocatorHelperTestCase, RngExponentialTestCase, RngNormalTestCase, RngParetoTestCase, RngUniformTestCase, RootNamespaceConfigTestCase, RttTestCase, SampleTestCase1, SequenceNumberTestCase, SimulatorEventsTestCase, SimulatorTemplateTestCase, SixlowpanFragmentationTest, SixlowpanHc1ImplTest, SixlowpanIphcImplTest, StaticRoutingSlash32TestCase, StringContextAddTestCase, StringContextFindTestCase, StringContextRenameTestCase, SwitchFlowTableTestCase, TcpTestCase, TestEmptyOptionField, TestFulfilledAlignment, TestOptionWithAlignment, TestOptionWithoutAlignment, ThreadedSimulatorEventsTestCase, TimerStateTestCase, TimerTemplateTestCase, TimeSimpleTestCase, TimesWithSignsTestCase, TracedCallbackTestCase, TwoRayGroundPropagationLossModelTestCase, TypeTraitsTestCase, UanTest, Udp6SocketImplTest, Udp6SocketLoopbackTest, UdpClientServerTestCase, UdpEchoClientSetFillTestCase, UdpSocketImplTest, UdpSocketLoopbackTest, UdpTraceClientServerTestCase, UnderRootNamespaceConfigTestCase, WatchdogTestCase, WaypointInitialPositionIsWaypoint, WaypointLazyNotifyFalse, WaypointLazyNotifyTrue, WaypointMobilityModelViaHelper, WifiInterferenceTestCase, WifiMsduAggregatorThroughputTest, and WriteModeCreateTestCase.
Classes | |
struct | Result |
Public Types | |
enum | TestDuration { QUICK = 1, EXTENSIVE = 2, TAKES_FOREVER = 3 } |
How long the test takes to execute. More... | |
Public Member Functions | |
virtual | ~TestCase () |
Destructor. More... | |
Protected Member Functions | |
TestCase (std::string name) | |
void | AddTestCase (TestCase *testCase) NS_DEPRECATED |
Add an individual child TestCase case to this TestCase. More... | |
void | AddTestCase (TestCase *testCase, enum TestDuration duration) |
Add an individual child TestCase to this test suite. More... | |
std::string | CreateDataDirFilename (std::string filename) |
std::string | CreateTempDirFilename (std::string filename) |
bool | GetErrorStatus (void) const NS_DEPRECATED |
std::string | GetName (void) const |
bool | IsStatusFailure (void) const |
bool | IsStatusSuccess (void) const |
bool | MustAssertOnFailure (void) const |
bool | MustContinueOnFailure (void) const |
void | ReportTestFailure (std::string cond, std::string actual, std::string limit, std::string message, std::string file, int32_t line) |
void | SetDataDir (std::string directory) |
Private Member Functions | |
TestCase (TestCase &tc) | |
virtual void | DoRun (void)=0 |
Implementation to actually run this TestCase. More... | |
virtual void | DoSetup (void) |
Implementation to do any local setup required for this TestCase. More... | |
virtual void | DoTeardown (void) |
Implementation to do any local setup required for this TestCase. More... | |
bool | IsFailed (void) const |
TestCase & | operator= (TestCase &tc) |
void | Run (TestRunnerImpl *runner) |
Private Attributes | |
std::vector< TestCase * > | m_children |
Vector of my children. More... | |
std::string | m_dataDir |
My data directory. More... | |
enum TestDuration | m_duration |
TestCase duration. More... | |
std::string | m_name |
TestCase name. More... | |
TestCase * | m_parent |
Pointer to my parent TestCase. More... | |
struct Result * | m_result |
Results data. More... | |
TestRunnerImpl * | m_runner |
Pointer to the TestRunner. More... | |
Friends | |
class | TestRunnerImpl |
encapsulates test code
To allow a new test to be run within the ns-3 test framework, users need to create subclasses of this base class, override the DoRun method, and use the NS_TEST_* macros within DoRun.
|
virtual |
Destructor.
Definition at line 159 of file test.cc.
References m_children, m_parent, m_result, m_runner, NS_ASSERT, and NS_LOG_FUNCTION.
|
protected |
name | the name of the new TestCase created |
Definition at line 148 of file test.cc.
References NS_LOG_FUNCTION.
|
private |
|
protected |
Add an individual child TestCase case to this TestCase.
testCase | Pointer to the TestCase object to be added. |
Definition at line 173 of file test.cc.
References QUICK.
Referenced by ns3::AnglesTestSuite::AnglesTestSuite(), ns3::AnimationInterfaceTestSuite::AnimationInterfaceTestSuite(), ns3::aodv::AodvRegressionTestSuite::AodvRegressionTestSuite(), ns3::aodv::AodvTestSuite::AodvTestSuite(), ns3::Asn1EncodingSuite::Asn1EncodingSuite(), AttributesTestSuite::AttributesTestSuite(), AverageTestSuite::AverageTestSuite(), BasicDataCalculatorsTestSuite::BasicDataCalculatorsTestSuite(), BasicEnergyModelTestSuite::BasicEnergyModelTestSuite(), BasicRandomNumberTestSuite::BasicRandomNumberTestSuite(), BlockAckTestSuite::BlockAckTestSuite(), ns3::BriteTestSuite::BriteTestSuite(), BufferTestSuite::BufferTestSuite(), ns3::BuildingPositionAllocatorTestSuite::BuildingPositionAllocatorTestSuite(), ns3::BuildingsHelperTestSuite::BuildingsHelperTestSuite(), ns3::BuildingsPathlossTestSuite::BuildingsPathlossTestSuite(), ns3::BuildingsShadowingTestSuite::BuildingsShadowingTestSuite(), CallbackTestSuite::CallbackTestSuite(), CommandLineTestSuite::CommandLineTestSuite(), ConfigTestSuite::ConfigTestSuite(), ns3::CosineAntennaModelTestSuite::CosineAntennaModelTestSuite(), CsmaSystemTestSuite::CsmaSystemTestSuite(), ns3::DcfTestSuite::DcfTestSuite(), ns3::DegreesRadiansTestSuite::DegreesRadiansTestSuite(), ns3::dot11s::Dot11sTestSuite::Dot11sTestSuite(), DropTailQueueTestSuite::DropTailQueueTestSuite(), ns3::DsdvTestSuite::DsdvTestSuite(), ns3::dsr::DsrTestSuite::DsrTestSuite(), ns3::EpcS1uDlTestSuite::EpcS1uDlTestSuite(), ns3::EpcS1uUlTestSuite::EpcS1uUlTestSuite(), ns3::EpcTftClassifierTestSuite::EpcTftClassifierTestSuite(), ns3::EpsGtpuTestSuite::EpsGtpuTestSuite(), ErrorModelTestSuite::ErrorModelTestSuite(), ns3::EventGarbageCollectorTestSuite::EventGarbageCollectorTestSuite(), ns3::flame::FlameTestSuite::FlameTestSuite(), GlobalRouteManagerImplTestSuite::GlobalRouteManagerImplTestSuite(), GlobalRoutingTestSuite::GlobalRoutingTestSuite(), ns3::GlobalValueTestSuite::GlobalValueTestSuite(), ns3::HashTestSuite::HashTestSuite(), ns3::HistogramTestSuite::HistogramTestSuite(), ns3::aodv::IdCacheTestSuite::IdCacheTestSuite(), Int64x64128TestSuite::Int64x64128TestSuite(), Ipv4AddressGeneratorTestSuite::Ipv4AddressGeneratorTestSuite(), Ipv4AddressHelperTestSuite::Ipv4AddressHelperTestSuite(), Ipv4ForwardingTestSuite::Ipv4ForwardingTestSuite(), Ipv4FragmentationTestSuite::Ipv4FragmentationTestSuite(), Ipv4HeaderTestSuite::Ipv4HeaderTestSuite(), ns3::IPv4L3ProtocolTestSuite::IPv4L3ProtocolTestSuite(), Ipv4ListRoutingTestSuite::Ipv4ListRoutingTestSuite(), Ipv4PacketInfoTagTestSuite::Ipv4PacketInfoTagTestSuite(), Ipv4RawTestSuite::Ipv4RawTestSuite(), Ipv6AddressGeneratorTestSuite::Ipv6AddressGeneratorTestSuite(), Ipv6AddressHelperTestSuite::Ipv6AddressHelperTestSuite(), Ipv6AddressTestSuite::Ipv6AddressTestSuite(), Ipv6DualStackTestSuite::Ipv6DualStackTestSuite(), Ipv6ForwardingTestSuite::Ipv6ForwardingTestSuite(), Ipv6FragmentationTestSuite::Ipv6FragmentationTestSuite(), ns3::IPv6L3ProtocolTestSuite::IPv6L3ProtocolTestSuite(), Ipv6ListRoutingTestSuite::Ipv6ListRoutingTestSuite(), Ipv6PacketInfoTagTestSuite::Ipv6PacketInfoTagTestSuite(), Ipv6RawTestSuite::Ipv6RawTestSuite(), ns3::IsotropicAntennaModelTestSuite::IsotropicAntennaModelTestSuite(), ns3::ItuR1411LosPropagationLossModelTestSuite::ItuR1411LosPropagationLossModelTestSuite(), ns3::ItuR1411NlosOverRooftopPropagationLossModelTestSuite::ItuR1411NlosOverRooftopPropagationLossModelTestSuite(), ns3::Kun2600MhzPropagationLossModelTestSuite::Kun2600MhzPropagationLossModelTestSuite(), ns3::LenaTestFdBetFfMacSchedulerSuite::LenaTestFdBetFfMacSchedulerSuite(), LenaTestFdMtFfMacSchedulerSuite::LenaTestFdMtFfMacSchedulerSuite(), ns3::LenaTestFdTbfqFfMacSchedulerSuite::LenaTestFdTbfqFfMacSchedulerSuite(), ns3::LenaTestHarqSuite::LenaTestHarqSuite(), ns3::LenaTestMimoSuite::LenaTestMimoSuite(), ns3::LenaTestPfFfMacSchedulerSuite::LenaTestPfFfMacSchedulerSuite(), ns3::LenaTestPhyErrorModelSuite::LenaTestPhyErrorModelSuite(), ns3::LenaTestPssFfMacSchedulerSuite::LenaTestPssFfMacSchedulerSuite(), ns3::LenaTestRrFfMacSchedulerSuite::LenaTestRrFfMacSchedulerSuite(), ns3::LenaTestTdBetFfMacSchedulerSuite::LenaTestTdBetFfMacSchedulerSuite(), LenaTestTdMtFfMacSchedulerSuite::LenaTestTdMtFfMacSchedulerSuite(), ns3::LenaTestTdTbfqFfMacSchedulerSuite::LenaTestTdTbfqFfMacSchedulerSuite(), LenaTestTtaFfMacSchedulerSuite::LenaTestTtaFfMacSchedulerSuite(), ns3::LiIonEnergySourceTestSuite::LiIonEnergySourceTestSuite(), ns3::LteAntennaTestSuite::LteAntennaTestSuite(), ns3::LteCellSelectionTestSuite::LteCellSelectionTestSuite(), ns3::LteDownlinkSinrTestSuite::LteDownlinkSinrTestSuite(), ns3::LteEarfcnTestSuite::LteEarfcnTestSuite(), ns3::LteEpcE2eDataTestSuite::LteEpcE2eDataTestSuite(), ns3::LteFadingTestSuite::LteFadingTestSuite(), ns3::LteHandoverDelayTestSuite::LteHandoverDelayTestSuite(), ns3::LteHandoverTargetTestSuite::LteHandoverTargetTestSuite(), ns3::LteInterferenceTestSuite::LteInterferenceTestSuite(), ns3::LteLinkAdaptationTestSuite::LteLinkAdaptationTestSuite(), ns3::LtePathlossModelTestSuite::LtePathlossModelTestSuite(), ns3::LteRlcAmE2eTestSuite::LteRlcAmE2eTestSuite(), ns3::LteRlcAmTransmitterTestSuite::LteRlcAmTransmitterTestSuite(), ns3::LteRlcUmE2eTestSuite::LteRlcUmE2eTestSuite(), ns3::LteRlcUmTransmitterTestSuite::LteRlcUmTransmitterTestSuite(), ns3::LteRrcTestSuite::LteRrcTestSuite(), ns3::LteSpectrumValueHelperTestSuite::LteSpectrumValueHelperTestSuite(), ns3::LteUeMeasurementsHandoverTestSuite::LteUeMeasurementsHandoverTestSuite(), ns3::LteUeMeasurementsPiecewiseTestSuite1::LteUeMeasurementsPiecewiseTestSuite1(), ns3::LteUeMeasurementsPiecewiseTestSuite2::LteUeMeasurementsPiecewiseTestSuite2(), ns3::LteUeMeasurementsTestSuite::LteUeMeasurementsTestSuite(), ns3::LteUplinkSinrTestSuite::LteUplinkSinrTestSuite(), ns3::LteX2HandoverMeasuresTestSuite::LteX2HandoverMeasuresTestSuite(), ns3::LteX2HandoverTestSuite::LteX2HandoverTestSuite(), ManyUniformRandomVariablesOneGetValueCallTestSuite::ManyUniformRandomVariablesOneGetValueCallTestSuite(), ns3::MeshTestSuite::MeshTestSuite(), MobilityTestSuite::MobilityTestSuite(), MobilityTraceTestSuite::MobilityTraceTestSuite(), NamesTestSuite::NamesTestSuite(), ns3::Ns2MobilityHelperTestSuite::Ns2MobilityHelperTestSuite(), Ns3TcpCwndTestSuite::Ns3TcpCwndTestSuite(), Ns3TcpInteroperabilityTestSuite::Ns3TcpInteroperabilityTestSuite(), Ns3TcpLossTestSuite::Ns3TcpLossTestSuite(), Ns3TcpNoDelayTestSuite::Ns3TcpNoDelayTestSuite(), Ns3TcpSocketTestSuite::Ns3TcpSocketTestSuite(), Ns3TcpStateTestSuite::Ns3TcpStateTestSuite(), Ns3WimaxFragmentationTestSuite::Ns3WimaxFragmentationTestSuite(), Ns3WimaxMacMessagesTestSuite::Ns3WimaxMacMessagesTestSuite(), Ns3WimaxPhyTestSuite::Ns3WimaxPhyTestSuite(), Ns3WimaxQoSTestSuite::Ns3WimaxQoSTestSuite(), Ns3WimaxServiceFlowTestSuite::Ns3WimaxServiceFlowTestSuite(), Ns3WimaxSSMacTestSuite::Ns3WimaxSSMacTestSuite(), Ns3WimaxTlvTestSuite::Ns3WimaxTlvTestSuite(), NscTcpLossTestSuite::NscTcpLossTestSuite(), ns3::ObjectTestSuite::ObjectTestSuite(), OcbTestSuite::OcbTestSuite(), ns3::OkumuraHataPropagationLossModelTestSuite::OkumuraHataPropagationLossModelTestSuite(), ns3::olsr::OlsrProtocolTestSuite::OlsrProtocolTestSuite(), ns3::OlsrTestSuite::OlsrTestSuite(), OneUniformRandomVariableManyGetValueCallsTestSuite::OneUniformRandomVariableManyGetValueCallsTestSuite(), PacketMetadataTestSuite::PacketMetadataTestSuite(), PacketTestSuite::PacketTestSuite(), ns3::ParabolicAntennaModelTestSuite::ParabolicAntennaModelTestSuite(), PbbTestSuite::PbbTestSuite(), PcapFileTestSuite::PcapFileTestSuite(), PointToPointTestSuite::PointToPointTestSuite(), ProbeTestSuite::ProbeTestSuite(), PropagationLossModelsTestSuite::PropagationLossModelsTestSuite(), PtrTestSuite::PtrTestSuite(), RandomVariableStreamTestSuite::RandomVariableStreamTestSuite(), RedQueueTestSuite::RedQueueTestSuite(), ns3::olsr::RegressionTestSuite::RegressionTestSuite(), RngTestSuite::RngTestSuite(), ns3::RocketfuelTopologyReaderTestSuite::RocketfuelTopologyReaderTestSuite(), RttTestSuite::RttTestSuite(), RvBatteryModelTestSuite::RvBatteryModelTestSuite(), SampleTestSuite::SampleTestSuite(), SequenceNumberTestSuite::SequenceNumberTestSuite(), SimulatorTestSuite::SimulatorTestSuite(), SixlowpanFragmentationTestSuite::SixlowpanFragmentationTestSuite(), SixlowpanHc1TestSuite::SixlowpanHc1TestSuite(), SixlowpanIphcTestSuite::SixlowpanIphcTestSuite(), ns3::SpectrumConverterTestSuite::SpectrumConverterTestSuite(), ns3::SpectrumIdealPhyTestSuite::SpectrumIdealPhyTestSuite(), ns3::SpectrumInterferenceTestSuite::SpectrumInterferenceTestSuite(), ns3::SpectrumValueTestSuite::SpectrumValueTestSuite(), StaticRoutingTestSuite::StaticRoutingTestSuite(), ns3::SteadyStateRandomWaypointTestSuite::SteadyStateRandomWaypointTestSuite(), SwitchTestSuite::SwitchTestSuite(), TcpTestSuite::TcpTestSuite(), ThreadedSimulatorTestSuite::ThreadedSimulatorTestSuite(), TimerTestSuite::TimerTestSuite(), TimeTestSuite::TimeTestSuite(), TracedCallbackTestSuite::TracedCallbackTestSuite(), ns3::TxDurationTestSuite::TxDurationTestSuite(), ns3::TypeIdPerformanceSuite::TypeIdPerformanceSuite(), ns3::TypeIdTestSuite::TypeIdTestSuite(), TypeTraitsTestSuite::TypeTraitsTestSuite(), ns3::UanEnergyModelTestSuite::UanEnergyModelTestSuite(), UanTestSuite::UanTestSuite(), UdpClientServerTestSuite::UdpClientServerTestSuite(), UdpTestSuite::UdpTestSuite(), WatchdogTestSuite::WatchdogTestSuite(), ns3::WaypointMobilityModelTestSuite::WaypointMobilityModelTestSuite(), WifiInterferenceTestSuite::WifiInterferenceTestSuite(), WifiMsduAggregatorTestSuite::WifiMsduAggregatorTestSuite(), and ns3::WifiTestSuite::WifiTestSuite().
|
protected |
Add an individual child TestCase to this test suite.
testCase | Pointer to the TestCase object to be added. |
duration | Amount of time this test takes to execute. |
Definition at line 179 of file test.cc.
References current, m_children, m_duration, m_name, m_parent, NS_FATAL_ERROR, and NS_LOG_FUNCTION.
|
protected |
filename | the bare (no path) file name |
Definition at line 278 of file test.cc.
References ns3::SystemPath::Append(), current, ns3::TestRunnerImpl::GetTopLevelSourceDir(), m_dataDir, m_parent, m_runner, NS_FATAL_ERROR, and NS_LOG_FUNCTION.
Referenced by CreateTempDirFilename(), MobilityTraceTestCase::DoRun(), ReadFileTestCase::DoRun(), DiffTestCase::DoRun(), and Ns3TcpLossTestCase::DoSetup().
|
protected |
filename | the bare (no path) file name |
Definition at line 296 of file test.cc.
References ns3::SystemPath::Append(), CreateDataDirFilename(), current, ns3::TestRunnerImpl::GetTempDir(), ns3::SystemPath::Join(), m_name, m_parent, m_runner, ns3::SystemPath::MakeDirectories(), ns3::TestRunnerImpl::MustUpdateData(), and NS_LOG_FUNCTION.
Referenced by PeerManagementProtocolRegressionTest::CreateDevices(), ns3::aodv::Bug772ChainTest::CreateDevices(), FlameRegressionTest::CreateDevices(), HwmpProactiveRegressionTest::CreateDevices(), HwmpDoRfRegressionTest::CreateDevices(), HwmpSimplestRegressionTest::CreateDevices(), HwmpReactiveRegressionTest::CreateDevices(), ns3::aodv::ChainRegressionTest::CreateDevices(), ns3::olsr::Bug780Test::CreateNodes(), ns3::olsr::HelloRegressionTest::CreateNodes(), ns3::olsr::TcRegressionTest::CreateNodes(), MobilityTraceTestCase::DoRun(), WriteModeCreateTestCase::DoSetup(), ReadModeCreateTestCase::DoSetup(), FileHeaderTestCase::DoSetup(), RecordHeaderTestCase::DoSetup(), and ns3::Ns2MobilityHelperTest::WriteTrace().
|
privatepure virtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implemented in RandomVariableStreamEmpiricalAntitheticTestCase, RandomVariableStreamEmpiricalTestCase, RandomVariableStreamDeterministicTestCase, RandomVariableStreamZetaAntitheticTestCase, RandomVariableStreamZetaTestCase, RandomVariableStreamZipfAntitheticTestCase, RandomVariableStreamZipfTestCase, RandomVariableStreamErlangAntitheticTestCase, RandomVariableStreamErlangTestCase, RandomVariableStreamGammaAntitheticTestCase, RandomVariableStreamGammaTestCase, RandomVariableStreamLogNormalAntitheticTestCase, RandomVariableStreamLogNormalTestCase, RandomVariableStreamWeibullAntitheticTestCase, CallbackValueTestCase, RandomVariableStreamWeibullTestCase, PointerAttributeTestCase, TracedCallbackTestCase, DiffTestCase, ns3::TestSuite, RandomVariableStreamParetoAntitheticTestCase, IntegerTraceSourceTestCase, ReadFileTestCase, IntegerTraceSourceAttributeTestCase, RandomVariableStreamParetoTestCase, ns3::MeasurementReportTestCase, CsmaStarTestCase, AlternateFindTestCase, ObjectMapAttributeTestCase, ns3::RrcConnectionRejectTestCase, RelativeFindTestCase, ns3::RrcConnectionReestablishmentCompleteTestCase, ObjectVectorAttributeTestCase, CsmaRawIpSocketTestCase, RandomVariableStreamExponentialAntitheticTestCase, ns3::RrcConnectionReestablishmentTestCase, FullyQualifiedFindTestCase, RandomVariableStreamAttributeTestCase, ns3::RrcConnectionReestablishmentRequestTestCase, StringContextFindTestCase, CsmaPingTestCase, AttributeTestCase< T >, RandomVariableStreamExponentialTestCase, RecordHeaderTestCase, ns3::HandoverPreparationInfoTestCase, BasicFindTestCase, AttributeTestCase< T >, AttributeTestCase< T >, MakeCallbackTemplatesTestCase, FindPathTestCase, CsmaPacketSocketTestCase, RandomVariableStreamNormalAntitheticTestCase, NullifyCallbackTestCase, AttributeTestCase< T >, RelativeRenameTestCase, ns3::dsr::DsrRreqTableTest, ObjectVectorTraceConfigTestCase, ns3::aodv::AodvRtableTest, PacketTagListTest, FullyQualifiedRenameTestCase, CsmaOneSubnetTestCase, ns3::RrcConnectionReconfigurationTestCase, FileHeaderTestCase, RandomVariableStreamNormalTestCase, RangePropagationLossModelTestCase, AttributeTestCase< T >, Udp6SocketImplTest, ns3::aodv::AodvRtableEntryTest, ns3::dsr::DsrSendBuffTest, StringContextRenameTestCase, ns3::RrcConnectionReconfigurationCompleteTestCase, Ns3TcpCwndTestCase2, ns3::Bug555TestCase, MatrixPropagationLossModelTestCase, ns3::ObjectFactoryTestCase, RandomVariableStreamSequentialTestCase, ns3::RrcConnectionSetupCompleteTestCase, ns3::dsr::DsrCacheEntryTest, ns3::LteUeMeasurementsHandoverTestCase, RngParetoTestCase, BasicRenameTestCase, AttributeTestCase< T >, ns3::IncrementalTestCase, ObjectVectorConfigTestCase, ns3::dsr::DsrAckHeaderTest, ns3::aodv::AodvRqueueTest, RandomVariableStreamConstantTestCase, MakeBoundCallbackTestCase, ns3::RrcConnectionSetupTestCase, ns3::Hash64FunctionPtrTestCase, GlobalRoutingSlash32TestCase, WaypointMobilityModelViaHelper, CsmaMulticastTestCase, AttributeTestCase< T >, ns3::EpcS1uUlTestCase, LogDistancePropagationLossModelTestCase, UdpEchoClientSetFillTestCase, Int64x64InvertTestCase, RelativeAddTestCase, ns3::aodv::QueueEntryTest, ns3::dsr::DsrAckReqHeaderTest, ns3::Hash32FunctionPtrTestCase, PacketMetadataTest, ns3::OlsrHnaTestCase, ns3::RrcConnectionRequestTestCase, Int64x64CompareTestCase, AddressCollisionTestCase, ns3::Ns2MobilityHelperTest, RngExponentialTestCase, ns3::aodv::RerrHeaderTest, ns3::LteUeMeasurementsPiecewiseTestCase2, ns3::dsr::DsrRerrHeaderTest, PacketTest, ns3::InterferenceHelperSequenceTest, CtrlBAckResponseHeaderTest, BasicEnergyDepletionTest, ns3::OlsrTcTestCase, ns3::aodv::RrepAckHeaderTest, ns3::dot11s::PeerLinkFrameStartTest, AddressCollision6TestCase, Int64x64Bug863TestCase, CommandLineStringTestCase, UnderRootNamespaceConfigTestCase, ReadModeCreateTestCase, ns3::AcousticModemEnergyDepletionTestCase, FullyQualifiedAddTestCase, ns3::LookupTimeTestCase, UdpSocketImplTest, PacketLossCounterTestCase, ns3::QosUtilsIsOldPacketTest, ExampleAddressGeneratorTestCase, TestFulfilledAlignment, ns3::aodv::ChainRegressionTest, IpAddressHelperTestCasev4, ns3::Murmur3TestCase, RandomVariableStreamUniformAntitheticTestCase, FiveDoublesTestCase, Ns3TcpCwndTestCase1, ns3::AggregateObjectTestCase, ns3::dsr::DsrSRHeaderTest, Int64x64Bug455TestCase, SimulatorTemplateTestCase, FiveDoublesAverageTestCase, CommandLineUnsignedIntTestCase, ns3::aodv::RrepHeaderTest, MakeCallbackTestCase, Ns3WimaxSFTypeTestCase, ExampleAddress6GeneratorTestCase, CsmaBroadcastTestCase, NscTcpLossTestCase2, WaypointInitialPositionIsWaypoint, Ns3TcpSocketTestCase2, ns3::OlsrHelloTestCase, ns3::SameRoomPositionAllocatorTestCase, ns3::Fnv1aTestCase, Udp6SocketLoopbackTest, BurstErrorModelSimple, RootNamespaceConfigTestCase, PacketBufferingCaseB, Ns3WimaxSfTlvTestCase, TestOptionWithAlignment, TwoRayGroundPropagationLossModelTestCase, RngNormalTestCase, ns3::dsr::DsrRrepHeaderTest, CommandLineIntTestCase, StringContextAddTestCase, Ns3WimaxSNRtoBLERTestCase, NetworkAndAddressTestCase, ns3::LteUeMeasurementsPiecewiseTestCase1, UdpTraceClientServerTestCase, ns3::aodv::RreqHeaderTest, NetworkAndAddress6TestCase, ns3::CollisionTestCase, ResetAllocatorHelperTestCase, Int64x64ArithmeticTestCase, ns3::DefaultHashTestCase, ns3::LteRlcAmTransmitterReportBufferStatusTestCase, ns3::LteRlcUmTransmitterReportBufferStatusTestCase, ns3::LteTxPsdTestCase, ns3::LteHandoverTargetTestCase, ns3::CreateObjectTestCase, Ns3WimaxManagementConnectionsTestCase, FiveIntegersTestCase, UdpSocketLoopbackTest, FiveIntegersAverageTestCase, Ipv6FragmentationTest, WaypointLazyNotifyTrue, ns3::DsdvTableTestCase, RandomNumberSerializationTestCase, TimesWithSignsTestCase, ns3::LteRlcAmTransmitterConcatenationTestCase, ns3::LteRlcUmTransmitterConcatenationTestCase, ns3::aodv::TypeHeaderTest, SixlowpanFragmentationTest, TimerTemplateTestCase, ns3::BuildingsHelperOneTestCase, ns3::LteEarfcnUlTestCase, ns3::BriteTopologyFunctionTestCase, ns3::dsr::DsrRreqHeaderTest, Ipv4FragmentationTest, ns3::LteCellSelectionTestCase, ns3::RrcHeaderTestCase, ns3::LteEpcE2eDataTestCase, Ipv6ListRoutingPositiveTestCase, WriteModeCreateTestCase, ns3::olsr::TcRegressionTest, CommandLineBooleanTestCase, ns3::dot11s::HwmpRtableTest, ns3::LteRlcAmTransmitterSegmentationTestCase, ns3::LteRlcUmTransmitterSegmentationTestCase, Ns3TcpInteroperabilityTestCase, TestOptionWithoutAlignment, Ipv4ListRoutingPositiveTestCase, ns3::LteX2HandoverMeasuresTestCase, Ipv4RawSocketImplTest, Ipv4PacketInfoTagTest, ns3::WifiTest, ns3::EpcS1uDlTestCase, Int64x64InputOutputTestCase, Ipv4HeaderTest, OcbWifiMacTestCase, AddressAllocatorTestCase, ns3::LteNoisePsdTestCase, Ipv6RawSocketImplTest, ns3::LteFadingSystemTestCase, ns3::TwoVectorsConstructorTestCase, SixlowpanHc1ImplTest, SixlowpanIphcImplTest, ns3::SpectrumIdealPhyTestCase, ns3::RadiansToDegreesTestCase, AddressAllocatorHelperTestCase, HwmpReactiveRegressionTest, SequenceNumberTestCase, AddressAllocator6TestCase, Ipv6PacketInfoTagTest, RandomVariableStreamUniformTestCase, Ipv4ForwardingTest, Ipv6ForwardingTest, ns3::aodv::Bug772ChainTest, ns3::LteRlcAmTransmitterOneSduTestCase, ns3::LteRlcUmTransmitterOneSduTestCase, HwmpSimplestRegressionTest, ErrorModelSimple, BasicAddTestCase, HwmpDoRfRegressionTest, ns3::RandomRoomPositionAllocatorTestCase, ns3::LteEarfcnDlTestCase, ns3::LteHandoverDelayTestCase, ns3::LenaDlCtrlPhyErrorModelTestCase, ns3::EpcTftClassifierTestCase, ProbeTestCase1, ns3::LenaFdTbfqFfMacSchedulerTestCase2, ns3::LenaPssFfMacSchedulerTestCase2, ns3::LenaTdTbfqFfMacSchedulerTestCase2, ns3::LenaFdBetFfMacSchedulerTestCase2, ns3::LenaTdBetFfMacSchedulerTestCase2, ns3::LteUplinkSrsSinrTestCase, PacketBufferingCaseA, TcpTestCase, ns3::LteDownlinkCtrlSinrTestCase, ns3::LenaPfFfMacSchedulerTestCase2, ns3::LteUeMeasurementsTestCase, Ns3TcpLossTestCase, Ns3TcpStateTestCase, Ipv6ListRoutingNegativeTestCase, ns3::olsr::HelloRegressionTest, BatteryLifetimeTest, ThreadedSimulatorEventsTestCase, ns3::dsr::DsrFsHeaderTest, HwmpProactiveRegressionTest, ns3::flame::FlameRtableTest, ns3::LteX2HandoverTestCase, FlameRegressionTest, ns3::DcfManagerTest, CsmaBridgeTestCase, DualStackTestCase, PeerManagementProtocolRegressionTest, WifiInterferenceTestCase, RngUniformTestCase, Ipv4ListRoutingNegativeTestCase, Ns3WimaxSimpleOFDMTestCase, ns3::LteEnbAntennaTestCase, DynamicGlobalRoutingTestCase, NscTcpLossTestCase1, PtrTestCase, ns3::DsdvHeaderTestCase, Ns3WimaxNetworkEntryTestCase, TimerStateTestCase, ns3::LteFadingTestCase, ns3::LtePathlossModelSystemTestCase, Ns3TcpSocketTestCase1, Ns3WimaxFragmentationTestCase, Ns3WimaxSfCreationTestCase, Ns3WimaxCsParamTlvTestCase, ns3::Ipv6L3ProtocolTestCase, ns3::LteInterferenceTestCase, Ns3TcpNoDelayTestCase, BasicEnergyUpdateTest, ns3::OlsrMidTestCase, ns3::AcousticModemEnergyTestCase, DsaRequestTestCase, UdpClientServerTestCase, ns3::Ipv4L3ProtocolTestCase, ns3::LteRlcAmTransmitterTestCase, ns3::LteRlcUmTransmitterTestCase, MobilityTraceTestCase, ns3::AbstractAnimationInterfaceTestCase, ns3::LteDownlinkDataSinrTestCase, ns3::LteLinkAdaptationTestCase, ns3::LteUplinkDataSinrTestCase, StaticRoutingSlash32TestCase, ns3::LenaFdBetFfMacSchedulerTestCase1, LenaFdMtFfMacSchedulerTestCase, ns3::LenaFdTbfqFfMacSchedulerTestCase1, ns3::LenaPssFfMacSchedulerTestCase1, ns3::LenaTdBetFfMacSchedulerTestCase1, LenaTdMtFfMacSchedulerTestCase, ns3::LenaTdTbfqFfMacSchedulerTestCase1, LenaTtaFfMacSchedulerTestCase, WifiMsduAggregatorThroughputTest, ns3::CosineAntennaModelTestCase, ns3::ParabolicAntennaModelTestCase, ns3::EpsGtpuHeaderTestCase, ns3::LenaPfFfMacSchedulerTestCase1, ns3::WaypointMobilityModelNotifyTest, ns3::olsr::OlsrMprTestCase, Ns3WimaxSchedulingTestCase, ns3::LenaDataPhyErrorModelTestCase, ns3::LteRlcAmE2eTestCase, ns3::LteRlcUmE2eTestCase, ns3::LteRrcConnectionEstablishmentTestCase, WaypointLazyNotifyFalse, ns3::BuildingsPathlossTestCase, ns3::BuildingsShadowingTestCase, ns3::LenaRrFfMacSchedulerTestCase, SwitchFlowTableTestCase, ns3::UniqueTypeIdTestCase, ns3::MeshInformationElementVectorBist, ns3::olsr::Bug780Test, ns3::HashTestCase, ns3::LenaHarqTestCase, ns3::ItuR1411LosPropagationLossModelTestCase, ns3::ItuR1411NlosOverRooftopPropagationLossModelTestCase, ns3::Kun2600MhzPropagationLossModelTestCase, ns3::OkumuraHataPropagationLossModelTestCase, ns3::aodv::IdCacheTest, ns3::LteSpectrumModelTestCase, FriisPropagationLossModelTestCase, ns3::LteEarfcnTestCase, ns3::SpectrumInterferenceTestCase, ns3::SpectrumValueTestCase, Int64x64InputTestCase, BasicRandomNumberTestCase, ns3::SteadyStateRandomWaypointTest, UanTest, ns3::BriteTopologyStructureTestCase, ManyUniformRandomVariablesOneGetValueCallTestCase, OneUniformRandomVariableManyGetValueCallsTestCase, TestEmptyOptionField, ns3::LenaMimoTestCase, OneIntegerAverageTestCase, OneIntegerTestCase, ns3::RocketfuelTopologyReaderTest, BasicCallbackTestCase, PbbTestCase, ns3::DegreesToRadiansTestCase, ns3::IsotropicAntennaModelTestCase, ns3::aodv::LoopbackTestCase, ns3::LiIonEnergyTestCase, ns3::dot11s::MeshHeaderTest, ns3::OneVectorConstructorTestCase, IpAddressHelperTestCasev6, ns3::EventGarbageCollectorTestCase, GlobalRouteManagerImplTestCase, ns3::flame::FlameHeaderTest, ns3::TxDurationTest, ns3::aodv::NeighborTest, ns3::GlobalValueTestCase, RttTestCase, RedQueueTestCase, SimulatorEventsTestCase, TimeSimpleTestCase, BasicTracedCallbackTestCase, TypeTraitsTestCase, NetworkAllocatorHelperTestCase, ns3::HistogramTestCase, NetworkNumber6AllocatorTestCase, ns3::OlsrEmfTestCase, WatchdogTestCase, NetworkNumberAllocatorTestCase, DropTailQueueTestCase, Ipv6AddressTestCase1, SampleTestCase1, BufferTest, PointToPointTest, and Int64x64FracTestCase.
Referenced by Run().
|
privatevirtual |
Implementation to do any local setup required for this TestCase.
Subclasses should override this method to perform any costly per-test setup before DoRun is invoked.
Reimplemented in ReadFileTestCase, RecordHeaderTestCase, NullifyCallbackTestCase, FileHeaderTestCase, MakeBoundCallbackTestCase, ns3::Ns2MobilityHelperTest, ReadModeCreateTestCase, ns3::LookupTimeTestCase, MakeCallbackTestCase, TimesWithSignsTestCase, WriteModeCreateTestCase, Ns3TcpInteroperabilityTestCase, Ns3TcpLossTestCase, Ns3TcpStateTestCase, ThreadedSimulatorEventsTestCase, BasicCallbackTestCase, and TimeSimpleTestCase.
Definition at line 344 of file test.cc.
References NS_LOG_FUNCTION.
Referenced by Run().
|
privatevirtual |
Implementation to do any local setup required for this TestCase.
Subclasses should override this method to perform any costly per-test teardown
Reimplemented in ReadFileTestCase, AlternateFindTestCase, RelativeFindTestCase, FullyQualifiedFindTestCase, StringContextFindTestCase, RecordHeaderTestCase, BasicFindTestCase, FindPathTestCase, RelativeRenameTestCase, FullyQualifiedRenameTestCase, FileHeaderTestCase, StringContextRenameTestCase, ns3::LteUeMeasurementsHandoverTestCase, BasicRenameTestCase, RelativeAddTestCase, AddressCollisionTestCase, ns3::LteUeMeasurementsPiecewiseTestCase2, ns3::Ns2MobilityHelperTest, AddressCollision6TestCase, ReadModeCreateTestCase, FullyQualifiedAddTestCase, ExampleAddressGeneratorTestCase, IpAddressHelperTestCasev4, ExampleAddress6GeneratorTestCase, StringContextAddTestCase, ns3::LteUeMeasurementsPiecewiseTestCase1, NetworkAndAddressTestCase, NetworkAndAddress6TestCase, ResetAllocatorHelperTestCase, ns3::LteHandoverTargetTestCase, TimesWithSignsTestCase, TimerTemplateTestCase, WriteModeCreateTestCase, Ns3TcpInteroperabilityTestCase, AddressAllocatorTestCase, AddressAllocatorHelperTestCase, AddressAllocator6TestCase, BasicAddTestCase, TcpTestCase, Ns3TcpLossTestCase, Ns3TcpStateTestCase, ThreadedSimulatorEventsTestCase, DualStackTestCase, ns3::WaypointMobilityModelNotifyTest, ns3::SteadyStateRandomWaypointTest, IpAddressHelperTestCasev6, RttTestCase, TimeSimpleTestCase, NetworkAllocatorHelperTestCase, NetworkNumber6AllocatorTestCase, and NetworkNumberAllocatorTestCase.
Definition at line 349 of file test.cc.
References NS_LOG_FUNCTION.
Referenced by Run().
|
protected |
Definition at line 318 of file test.cc.
References IsStatusFailure(), and NS_LOG_FUNCTION.
|
protected |
Definition at line 242 of file test.cc.
References m_name, and NS_LOG_FUNCTION.
Referenced by PacketTagListTest::AddRemoveTime(), ns3::HashTestCase::Check(), ns3::LenaMimoTestCase::DoRun(), ns3::UniqueTypeIdTestCase::DoRun(), ns3::LteRrcConnectionEstablishmentTestCase::DoRun(), ns3::LenaPssFfMacSchedulerTestCase1::DoRun(), ns3::LenaTdTbfqFfMacSchedulerTestCase1::DoRun(), ns3::LenaFdTbfqFfMacSchedulerTestCase1::DoRun(), ns3::LteInterferenceTestCase::DoRun(), ns3::LteFadingTestCase::DoRun(), ns3::LteUeMeasurementsTestCase::DoRun(), ns3::LteEpcE2eDataTestCase::DoRun(), ns3::LteCellSelectionTestCase::DoRun(), ns3::LteHandoverTargetTestCase::DoRun(), ns3::DefaultHashTestCase::DoRun(), ns3::CollisionTestCase::DoRun(), ns3::LteUeMeasurementsPiecewiseTestCase1::DoRun(), ns3::LookupTimeTestCase::DoRun(), ns3::LteUeMeasurementsPiecewiseTestCase2::DoRun(), ns3::IncrementalTestCase::DoRun(), ns3::LteUeMeasurementsHandoverTestCase::DoRun(), PacketTagListTest::DoRun(), ns3::TestRunnerImpl::FilterTests(), ns3::LteCellSelectionTestCase::LteCellSelectionTestCase(), ns3::LteRrcConnectionEstablishmentTestCase::LteRrcConnectionEstablishmentTestCase(), ns3::TestRunnerImpl::PrintReport(), ns3::TestRunnerImpl::PrintTestNameList(), PacketTagListTest::RemoveTime(), and ns3::LteCellSelectionTestCase::~LteCellSelectionTestCase().
|
private |
Definition at line 212 of file test.cc.
References ns3::TestCase::Result::childrenFailed, ns3::TestCase::Result::failure, m_result, and NS_LOG_FUNCTION.
Referenced by ns3::TestRunnerImpl::PrintReport(), ns3::TestRunnerImpl::Run(), and Run().
|
protected |
Definition at line 324 of file test.cc.
References IsStatusSuccess(), and NS_LOG_FUNCTION.
Referenced by ns3::Ns2MobilityHelperTest::CheckInitialPositions(), and GetErrorStatus().
|
protected |
Definition at line 330 of file test.cc.
References ns3::TestCase::Result::failure, m_result, and NS_LOG_FUNCTION.
Referenced by Ns3TcpStateTestCase::Ipv4L3Tx(), Ns3TcpLossTestCase::Ipv4L3Tx(), Ns3TcpInteroperabilityTestCase::Ipv4L3Tx(), and IsStatusFailure().
|
protected |
Definition at line 265 of file test.cc.
References m_runner, ns3::TestRunnerImpl::MustAssertOnFailure(), and NS_LOG_FUNCTION.
|
protected |
Definition at line 271 of file test.cc.
References m_runner, ns3::TestRunnerImpl::MustContinueOnFailure(), and NS_LOG_FUNCTION.
|
protected |
Log the failure of this TestCase.
Definition at line 248 of file test.cc.
References ns3::TestCase::Result::childrenFailed, current, ns3::TestCase::Result::failure, m_parent, m_result, and NS_LOG_FUNCTION.
|
private |
Definition at line 219 of file test.cc.
References ns3::TestCase::Result::clock, DoRun(), DoSetup(), DoTeardown(), ns3::SystemWallClockMs::End(), IsFailed(), m_children, m_result, m_runner, NS_LOG_FUNCTION, Run(), ns3::SystemWallClockMs::Start(), and test().
Referenced by ns3::TestRunnerImpl::Run(), and Run().
|
protected |
directory | the directory where the test data is located |
In general, this method is invoked as SetDataDir (NS_TEST_SOURCEDIR); However, if a module contains a test directory with subdirectories (e.g. src/mesh/test), and the test data (e.g. pcap traces) is located in one of these subdirectories, then the variable NS_TEST_SOURCEDIR may not work and the user may want to explicitly pass in a directory string.
Note that NS_TEST_SOURCEDIR is set in src/wscript for each module
Definition at line 337 of file test.cc.
References m_dataDir, and NS_LOG_FUNCTION.
Referenced by ns3::aodv::AodvRegressionTestSuite::AodvRegressionTestSuite(), MobilityTraceTestCase::DoRun(), ns3::Ns2MobilityHelperTestSuite::Ns2MobilityHelperTestSuite(), Ns3TcpLossTestSuite::Ns3TcpLossTestSuite(), PcapFileTestSuite::PcapFileTestSuite(), and ns3::olsr::RegressionTestSuite::RegressionTestSuite().
|
friend |
|
private |
Vector of my children.
Definition at line 1014 of file test.h.
Referenced by AddTestCase(), ns3::TestRunnerImpl::PrintReport(), Run(), and ~TestCase().
|
private |
My data directory.
Definition at line 1015 of file test.h.
Referenced by CreateDataDirFilename(), and SetDataDir().
|
private |
TestCase duration.
Definition at line 1019 of file test.h.
Referenced by AddTestCase(), and ns3::TestRunnerImpl::FilterTests().
|
private |
TestCase name.
Definition at line 1018 of file test.h.
Referenced by AddTestCase(), CreateTempDirFilename(), GetName(), and ns3::TestRunnerImpl::PrintReport().
|
private |
Pointer to my parent TestCase.
Definition at line 1011 of file test.h.
Referenced by AddTestCase(), CreateDataDirFilename(), CreateTempDirFilename(), ReportTestFailure(), and ~TestCase().
|
private |
Results data.
Definition at line 1017 of file test.h.
Referenced by IsFailed(), IsStatusSuccess(), ns3::TestRunnerImpl::PrintReport(), ReportTestFailure(), Run(), and ~TestCase().
|
private |
Pointer to the TestRunner.
Definition at line 1016 of file test.h.
Referenced by CreateDataDirFilename(), CreateTempDirFilename(), MustAssertOnFailure(), MustContinueOnFailure(), Run(), and ~TestCase().