A Discrete-Event Network Simulator
API
ns3::TestCase Class Referenceabstract

encapsulates test code More...

#include "test.h"

Inherits ns3::NonCopyable.

Inherited by AbstractAnimationInterfaceTestCase, AcousticModemEnergyDepletionTestCase, AcousticModemEnergyTestCase, AddressAllocator6TestCase, AddressAllocatorHelperTestCase, AddressAllocatorTestCase, AddressCollision6TestCase, AddressCollisionTestCase, AmpduAggregationTest, AnnexC_TestCase, AredQueueDiscTestCase, AttributeContainerSerializationTestCase, AttributeContainerSetGetTestCase, AttributeContainerTestCase, AttributeTestCase< T >, BasicCallbackTestCase, BasicEnergyHarvesterTestCase, BasicTracedCallbackTestCase, BlockAckAggregationDisabledTest, BoxLineIntersectionTestCase, BridgeTest, BriteTopologyFunctionTestCase, BriteTopologyStructureTestCase, BufferTest, Bug2222TestCase, Bug2470TestCase, Bug2831TestCase, Bug2843TestCase, Bug730TestCase, Bug772ChainTest, BuildingsChannelConditionModelTestCase, BuildingsHelperOneTestCase, BuildingsPathlossTestCase, BuildingsShadowingTestCase, BulkSendBasicTestCase, BulkSendSeqTsSizeTestCase, BurstErrorModelSimple, CallbackValueTestCase, CarrierAggregationConfigTestCase, CarrierAggregationTestCase, CartesianToGeoTestCase, ChainRegressionTest, ChannelAccessManagerTest< TxopType >, ChannelAccessTestCase, ChannelCoordinationTestCase, ChannelRoutingTestCase, ClassicRecoveryTest, CobaltQueueDiscBasicEnqueueDequeue, CobaltQueueDiscDropTest, CobaltQueueDiscMarkTest, CoDelQueueDiscBasicDrop, CoDelQueueDiscBasicEnqueueDequeue, CoDelQueueDiscBasicMark, CoDelQueueDiscBasicOverflow, CoDelQueueDiscControlLawTest, CoDelQueueDiscNewtonStepTest, CollisionTestCase, CosineAntennaModelTestCase, CsmaBridgeTestCase, CsmaBroadcastTestCase, CsmaMulticastTestCase, CsmaOneSubnetTestCase, CsmaPacketSocketTestCase, CsmaPingTestCase, CsmaRawIpSocketTestCase, CsmaStarTestCase, CtrlBAckResponseHeaderTest, DataRateTestCase, DcfImmediateAccessBroadcastTestCase, DegreesToRadiansTestCase, DeprecatedAttributeTestCase, DhcpTestCase, DiffTestCase, DropTailQueueTestCase, DsaRequestTestCase, DsdvHeaderTestCase, DsdvTableTestCase, DsrAckHeaderTest, DsrAckReqHeaderTest, DsrCacheEntryTest, DsrFsHeaderTest, DsrRerrHeaderTest, DsrRrepHeaderTest, DsrRreqHeaderTest, DsrRreqTableTest, DsrSendBuffTest, DsrSRHeaderTest, DualStackTestCase, EpcS1uDlTestCase, EpcS1uUlTestCase, EpcTftClassifierTestCase, EpsGtpuHeaderTestCase, ErrorModelSimple, ExampleAddress6GeneratorTestCase, ExampleAddressGeneratorTestCase, FifoQueueDiscTestCase, FileHeaderTestCase, FiveDoublesAverageTestCase, FiveDoublesTestCase, FiveIntegersAverageTestCase, FiveIntegersTestCase, FlameHeaderTest, FlameRegressionTest, FlameRtableTest, FqCoDelQueueDiscDeficit, FqCoDelQueueDiscECNMarking, FqCoDelQueueDiscIPFlowsSeparationAndPacketLimit, FqCoDelQueueDiscL4sMode, FqCoDelQueueDiscNoSuitableFilter, FqCoDelQueueDiscSetLinearProbing, FqCoDelQueueDiscTCPFlowsSeparation, FqCoDelQueueDiscUDPFlowsSeparation, FriisPropagationLossModelTestCase, GeoToCartesianTestCase, GlobalRouteManagerImplTestCase, HeAggregationTest, HistogramTestCase, HwmpDoRfRegressionTest, HwmpProactiveRegressionTest, HwmpReactiveRegressionTest, HwmpRtableTest, HwmpSimplestRegressionTest, IcmpEchoReplyTestCase, IcmpTimeExceedTestCase, IcmpV6EchoReplyTestCase, IcmpV6TimeExceedTestCase, IdealRateManagerChannelWidthTest, IdealRateManagerMimoTest, IntegerTraceSourceAttributeTestCase, IntegerTraceSourceTestCase, InterferenceHelperSequenceTest, IpAddressHelperTestCasev4, IpAddressHelperTestCasev6, Ipv4DeduplicationPerformanceTest, Ipv4DeduplicationTest, Ipv4DynamicGlobalRoutingTestCase, Ipv4ForwardingTest, Ipv4FragmentationTest, Ipv4GlobalRoutingSlash32TestCase, Ipv4HeaderTest, Ipv4L3ProtocolTestCase, Ipv4ListRoutingNegativeTestCase, Ipv4ListRoutingPositiveTestCase, Ipv4PacketInfoTagTest, Ipv4RawSocketImplTest, Ipv4RipCountToInfinityTest, Ipv4RipSplitHorizonStrategyTest, Ipv4RipTest, Ipv4StaticRoutingSlash32TestCase, Ipv6AddressTestCase, Ipv6DadTest, Ipv6ForwardingTest, Ipv6FragmentationTest, Ipv6L3ProtocolTestCase, Ipv6ListRoutingNegativeTestCase, Ipv6ListRoutingPositiveTestCase, Ipv6PacketInfoTagTest, Ipv6RawSocketImplTest, Ipv6RipngCountToInfinityTest, Ipv6RipngSplitHorizonStrategyTest, Ipv6RipngTest, IsotropicAntennaModelTestCase, Issue169TestCase, Issue211Test, Issue40TestCase, ItuR1411LosPropagationLossModelTestCase, ItuR1411NlosOverRooftopPropagationLossModelTestCase, Kun2600MhzPropagationLossModelTestCase, LanTest, LenaCqaFfMacSchedulerTestCase1, LenaCqaFfMacSchedulerTestCase2, LenaDataPhyErrorModelTestCase, LenaDlCtrlPhyErrorModelTestCase, LenaFdBetFfMacSchedulerTestCase1, LenaFdBetFfMacSchedulerTestCase2, LenaFdMtFfMacSchedulerTestCase, LenaFdTbfqFfMacSchedulerTestCase1, LenaFdTbfqFfMacSchedulerTestCase2, LenaHarqTestCase, LenaMimoTestCase, LenaPfFfMacSchedulerTestCase1, LenaPfFfMacSchedulerTestCase2, LenaPssFfMacSchedulerTestCase1, LenaPssFfMacSchedulerTestCase2, LenaRrFfMacSchedulerTestCase, LenaTdBetFfMacSchedulerTestCase1, LenaTdBetFfMacSchedulerTestCase2, LenaTdMtFfMacSchedulerTestCase, LenaTdTbfqFfMacSchedulerTestCase1, LenaTdTbfqFfMacSchedulerTestCase2, LenaTtaFfMacSchedulerTestCase, LiIonEnergyTestCase, LinkTest, LogDistancePropagationLossModelTestCase, LollipopCounterTest, LookupTimeTestCase, LrWpanAckTestCase, LrWpanCcaTestCase, LrWpanCollisionTestCase, LrWpanDataIfsTestCase, LrWpanEdTestCase, LrWpanErrorDistanceTestCase, LrWpanErrorModelTestCase, LrWpanPacketTestCase, LrWpanPlmeAndPdInterfaceTestCase, LrWpanSlottedCsmacaTestCase, LrWpanSpectrumValueHelperTestCase, LteAggregationThroughputScaleTestCase, LteCellSelectionTestCase, LteCqiGenerationDlPowerControlTestCase, LteCqiGenerationTestCase, LteDownlinkCtrlSinrTestCase, LteDownlinkDataSinrTestCase, LteDownlinkPowerControlRrcConnectionReconfigurationTestCase, LteDownlinkPowerControlSpectrumValueTestCase, LteDownlinkPowerControlTestCase, LteEarfcnTestCase, LteEnbAntennaTestCase, LteEpcE2eDataTestCase, LteFrAreaTestCase, LteFrTestCase, LteHandoverDelayTestCase, LteHandoverTargetTestCase, LteInterferenceHardFrTestCase, LteInterferenceStrictFrTestCase, LteInterferenceTestCase, LteIpv6RoutingTestCase, LteLinkAdaptationTestCase, LteNoisePsdTestCase, LtePathlossModelSystemTestCase, LteRadioLinkFailureTestCase, LteRlcAmE2eTestCase, LteRlcAmTransmitterTestCase, LteRlcUmE2eTestCase, LteRlcUmTransmitterTestCase, LteRrcConnectionEstablishmentTestCase, LteSpectrumModelTestCase, LteTxPsdTestCase, LteUeMeasurementsHandoverTestCase, LteUeMeasurementsPiecewiseTestCase1, LteUeMeasurementsPiecewiseTestCase2, LteUeMeasurementsPiecewiseTestCase3, LteUeMeasurementsTestCase, LteUplinkDataSinrTestCase, LteUplinkPowerControlTestCase, LteUplinkSrsSinrTestCase, LteX2HandoverMeasuresTestCase, LteX2HandoverTestCase, MakeBoundCallbackTestCase, MakeCallbackTemplatesTestCase, MakeCallbackTestCase, MatrixPropagationLossModelTestCase, MeshHeaderTest, MeshInformationElementVectorBist, MobilityTraceTestCase, NetworkAllocatorHelperTestCase, NetworkAndAddress6TestCase, NetworkAndAddressTestCase, NetworkNumber6AllocatorTestCase, NetworkNumberAllocatorTestCase, Ns2MobilityHelperTest, ns3::aodv::AodvRqueueTest, ns3::aodv::AodvRtableEntryTest, ns3::aodv::AodvRtableTest, 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::ExampleAsTestCase, ns3::int64x64::test::Int64x64ArithmeticTestCase, ns3::int64x64::test::Int64x64Bug1786TestCase, ns3::int64x64::test::Int64x64Bug455TestCase, ns3::int64x64::test::Int64x64Bug863TestCase, ns3::int64x64::test::Int64x64CompareTestCase, ns3::int64x64::test::Int64x64DoubleTestCase, ns3::int64x64::test::Int64x64HiLoTestCase, ns3::int64x64::test::Int64x64ImplTestCase, ns3::int64x64::test::Int64x64InputOutputTestCase, ns3::int64x64::test::Int64x64InputTestCase, ns3::int64x64::test::Int64x64InvertTestCase, ns3::LenaDeactivateBearerTestCase, ns3::olsr::Bug780Test, ns3::olsr::HelloRegressionTest, ns3::olsr::TcRegressionTest, ns3::RlcAmStatusPduTestCase, ns3::TcpGeneralTest, ns3::TcpLpInferenceTest1, ns3::TcpLpInferenceTest2, ns3::TcpLpToNewReno, ns3::test::RandomVariable::TestCaseBase, ns3::tests::AggregateObjectTestCase, ns3::tests::AlternateFindTestCase, ns3::tests::BasicAddTestCase, ns3::tests::BasicFindTestCase, ns3::tests::BasicRenameTestCase, ns3::tests::BuildProfileTestCase, ns3::tests::CommandLineTestCaseBase, ns3::tests::CreateObjectTestCase, ns3::tests::EventGarbageCollectorTestCase, ns3::tests::FindPathTestCase, ns3::tests::FullyQualifiedAddTestCase, ns3::tests::FullyQualifiedFindTestCase, ns3::tests::FullyQualifiedRenameTestCase, ns3::tests::GlobalValueTestCase, ns3::tests::HashTestCase, ns3::tests::ManyUniformRandomVariablesOneGetValueCallTestCase, ns3::tests::ObjectFactoryTestCase, ns3::tests::ObjectVectorConfigTestCase, ns3::tests::ObjectVectorTraceConfigTestCase, ns3::tests::OneUniformRandomVariableManyGetValueCallsTestCase, ns3::tests::PtrTestCase, ns3::tests::RelativeAddTestCase, ns3::tests::RelativeFindTestCase, ns3::tests::RelativeRenameTestCase, ns3::tests::RootNamespaceConfigTestCase, ns3::tests::SampleTestCase1, ns3::tests::SearchAttributesOfParentObjectsTestCase, ns3::tests::StringContextAddTestCase, ns3::tests::StringContextFindTestCase, ns3::tests::StringContextRenameTestCase, ns3::tests::TypeTraitsTestCase, ns3::tests::UnderRootNamespaceConfigTestCase, ns3::tests::WatchdogTestCase, ns3::TestSuite, Ns3TcpCwndTestCase1, Ns3TcpCwndTestCase2, Ns3TcpInteroperabilityTestCase, Ns3TcpLossTestCase, Ns3TcpNoDelayTestCase, Ns3TcpSocketTestCase1, Ns3TcpSocketTestCase2, Ns3TcpStateTestCase, Ns3WimaxCsParamTlvTestCase, Ns3WimaxFragmentationTestCase, Ns3WimaxManagementConnectionsTestCase, Ns3WimaxNetworkEntryTestCase, Ns3WimaxSchedulingTestCase, Ns3WimaxSfCreationTestCase, Ns3WimaxSfTlvTestCase, Ns3WimaxSFTypeTestCase, Ns3WimaxSimpleOFDMTestCase, Ns3WimaxSNRtoBLERTestCase, NscTcpLossTestCase1, NscTcpLossTestCase2, NullifyCallbackTestCase, ObjectMapAttributeTestCase, ObjectVectorAttributeTestCase, OcbWifiMacTestCase, OkumuraHataPropagationLossModelTestCase, OlsrEmfTestCase, OlsrHelloTestCase, OlsrHnaTestCase, OlsrMidTestCase, OlsrMprTestCase, OlsrTcTestCase, OneIntegerAverageTestCase, OneIntegerTestCase, OneVectorConstructorTestCase, OriginatorBlockAckWindowTest, OutdoorRandomWalkTestCase, PacketBufferingCaseA, PacketBufferingCaseB, PacketLossCounterTestCase, PacketMetadataTest, PacketSocketAppsTest, PacketTagListTest, PacketTest, PairValueSettingsTestCase, PairValueTestCase, ParabolicAntennaModelTestCase, PbbTestCase, PeerLinkFrameStartTest, PeerManagementProtocolRegressionTest, PfifoFastQueueDiscDscpPrioritization, PfifoFastQueueDiscNoPriority, PfifoFastQueueDiscOverflow, PfifoFastQueueDiscTosPrioritization, PieQueueDiscTestCase, PointerAttributeTestCase, PointToPointTest, PowerRateAdaptationTest, PreservePacketsInAmpdus, PrioQueueDiscTestCase, ProbeTestCase1, PrrRecoveryTest, QosFragmentationTestCase, QosUtilsIsOldPacketTest, QueueDiscTracesTestCase, RadiansToDegreesTestCase, RandCartAroundGeoTestCase, RandomRoomPositionAllocatorTestCase, RandomVariableStreamAttributeTestCase, RangePropagationLossModelTestCase, ReadFileTestCase, ReadModeCreateTestCase, RecordHeaderTestCase, RedQueueDiscTestCase, ResetAllocatorHelperTestCase, RngExponentialTestCase, RngNormalTestCase, RngParetoTestCase, RngUniformTestCase, RocketfuelTopologyReaderTest, RrcHeaderTestCase, RttEstimatorTestCase, SameRoomPositionAllocatorTestCase, SequenceNumberTestCase, SetChannelFrequencyTest, SimulatorEventsTestCase, SimulatorTemplateTestCase, SixlowpanFragmentationTest, SixlowpanHc1ImplTest, SixlowpanIphcImplTest, SpectrumIdealPhyTestCase, SpectrumInterferenceTestCase, SpectrumValueTestCase, SpectrumWifiPhyBasicTest, StaWifiMacScanningTestCase, SteadyStateRandomWaypointTest, SwitchFlowTableTestCase, TbfQueueDiscTestCase, TcFlowControlTestCase, TcpBicDecrementTest, TcpBicIncrementTest, TcpDctcpDecrementTest, TcpDctcpToNewReno, TcpEndPointBug2211Test, TcpHeaderFlagsToString, TcpHeaderGetSetTestCase, TcpHeaderWithRFC793OptionTestCase, TcpHighSpeedDecrementTest, TcpHighSpeedIncrementTest, TcpHtcpIncrementTest, TcpHyblaIncrementTest, TcpIllinoisTest, TcpLedbatDecrementTest, TcpLedbatIncrementTest, TcpLedbatToNewReno, TcpOptionTSTestCase, TcpOptionWSTestCase, TcpRateLinuxBasicTest, TcpRateLinuxWithBufferTest, TcpRxBufferTestCase, TcpScalableDecrementTest, TcpScalableIncrementTest, TcpSynConnectionFailedTest, TcpTestCase, TcpTxBufferTestCase, TcpVegasTest, TcpVenoTest, TcpYeahDecrementTest, TcpYeahIncrementTest, TestAmpduReception, TestEmptyOptionField, TestFulfilledAlignment, TestInterBssConstantObssPdAlgo, TestOptionWithAlignment, TestOptionWithoutAlignment, TestPhyHeadersReception, TestSimpleFrameCaptureModel, TestThresholdPreambleDetectionWithFrameCapture, TestThresholdPreambleDetectionWithoutFrameCapture, ThreadedSimulatorEventsTestCase, ThreeGppChannelConditionModelTestCase, ThreeGppChannelMatrixComputationTest, ThreeGppChannelMatrixUpdateTest, ThreeGppHttpObjectTestCase, ThreeGppIndoorOfficePropagationLossModelTestCase, ThreeGppRmaPropagationLossModelTestCase, ThreeGppShadowingTestCase, ThreeGppSpectrumPropagationLossModelTest, ThreeGppUmaPropagationLossModelTestCase, ThreeGppUmiPropagationLossModelTestCase, TimeInputOutputTestCase, TimerStateTestCase, TimerTemplateTestCase, TimeSimpleTestCase, TimestampValueTestCase, TimeWithSignTestCase, TracedCallbackTestCase, TracedCallbackTypedefTestCase, TracedValueCallbackTestCase, TvHelperDistributionTestCase, TvSpectrumTransmitterTestCase, TwoBridgeTest, TwoLanTest, TwoLevelAggregationTest, TwoLinkTest, TwoRayGroundPropagationLossModelTestCase, TwoVectorsConstructorTestCase, TxDurationTest, UanTest, Udp6SocketImplTest, Udp6SocketLoopbackTest, UdpClientServerTestCase, UdpEchoClientSetFillTestCase, UdpSocketImplTest, UdpSocketLoopbackTest, UdpTraceClientServerTestCase, UniqueTypeIdTestCase, WaveformGeneratorTestCase, WaypointInitialPositionIsWaypoint, WaypointLazyNotifyFalse, WaypointLazyNotifyTrue, WaypointMobilityModelAddWaypointTest, WaypointMobilityModelNotifyTest, WaypointMobilityModelViaHelper, WifiAcMappingTest, WifiErrorRateModelsTestCaseDsss, WifiErrorRateModelsTestCaseMimo, WifiErrorRateModelsTestCaseNist, WifiMsduAggregatorThroughputTest, WifiOfdmMaskSlopesTestCase, WifiPhyThresholdsTest, WifiTest, and WriteModeCreateTestCase.

+ Collaboration diagram for ns3::TestCase:

Classes

struct  Result
 Container for results from a TestCase. More...
 

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...
 
std::string GetName (void) const
 

Protected Member Functions

 TestCase (std::string name)
 Constructor. More...
 
void AddTestCase (TestCase *testCase, TestDuration duration=QUICK)
 Add an individual child TestCase to this test suite. More...
 
TestCaseGetParent () const
 Get the parent of this TestCsse. More...
 
bool IsStatusFailure (void) const
 Check if any tests failed. More...
 
bool IsStatusSuccess (void) const
 Check if all tests passed. More...
 
void SetDataDir (std::string directory)
 Set the data directory where reference trace files can be found. More...
 
Internal Interface

These methods are the interface used by test macros and should not be used directly by normal test code.

void ReportTestFailure (std::string cond, std::string actual, std::string limit, std::string message, std::string file, int32_t line)
 Log the failure of this TestCase. More...
 
bool MustAssertOnFailure (void) const
 Check if this run should assert on failure. More...
 
bool MustContinueOnFailure (void) const
 Check if this run should continue on failure. More...
 
std::string CreateDataDirFilename (std::string filename)
 Construct the full path to a file in the data directory. More...
 
std::string CreateTempDirFilename (std::string filename)
 Construct the full path to a file in a temporary directory. More...
 

Private Member Functions

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
 Check if any tests failed.
More...
 
void Run (TestRunnerImpl *runner)
 Actually run this TestCase. More...
 
- Private Member Functions inherited from ns3::NonCopyable
 NonCopyable ()
 Constructor. More...
 
 ~NonCopyable ()
 Destructor. More...
 

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...
 
TestCasem_parent
 Pointer to my parent TestCase. More...
 
struct Resultm_result
 Results data. More...
 
TestRunnerImplm_runner
 Pointer to the TestRunner. More...
 

Friends

class TestRunnerImpl
 Needs access to the TestCase data members. More...
 

Detailed Description

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.

See also
sample-test-suite.cc

Definition at line 1153 of file test.h.

Member Enumeration Documentation

◆ TestDuration

How long the test takes to execute.

Enumerator
QUICK 

Fast test.

EXTENSIVE 

Medium length test.

TAKES_FOREVER 

Very long running test.

Definition at line 1157 of file test.h.

Constructor & Destructor Documentation

◆ ~TestCase()

ns3::TestCase::~TestCase ( )
virtual

Destructor.

Definition at line 285 of file test.cc.

References m_children, m_parent, m_result, m_runner, NS_ASSERT, and NS_LOG_FUNCTION.

◆ TestCase()

ns3::TestCase::TestCase ( std::string  name)
protected

Constructor.

Parameters
[in]nameThe name of the new TestCase created

Definition at line 274 of file test.cc.

References NS_LOG_FUNCTION.

Member Function Documentation

◆ AddTestCase()

void ns3::TestCase::AddTestCase ( TestCase testCase,
enum TestCase::TestDuration  duration = QUICK 
)
protected

Add an individual child TestCase to this test suite.

Parameters
[in]testCasePointer to the TestCase object to be added.
[in]durationAmount of time this test takes to execute (defaults to QUICK).

Definition at line 299 of file test.cc.

References m_children, m_duration, m_name, m_parent, NS_LOG_FUNCTION, and NS_LOG_UNCOND.

Referenced by ThreeGppHttpClientServerTestSuite::AddHttpObjectTestCase(), AnglesTestSuite::AnglesTestSuite(), AnimationInterfaceTestSuite::AnimationInterfaceTestSuite(), ns3::aodv::AodvLoopbackTestSuite::AodvLoopbackTestSuite(), ns3::aodv::AodvTestSuite::AodvTestSuite(), AredQueueDiscTestSuite::AredQueueDiscTestSuite(), Asn1EncodingSuite::Asn1EncodingSuite(), AttributeContainerTestSuite::AttributeContainerTestSuite(), AttributesTestSuite::AttributesTestSuite(), AverageTestSuite::AverageTestSuite(), BasicDataCalculatorsTestSuite::BasicDataCalculatorsTestSuite(), BasicEnergyHarvesterTestSuite::BasicEnergyHarvesterTestSuite(), BlockAckTestSuite::BlockAckTestSuite(), BoxLineIntersectionTestSuite::BoxLineIntersectionTestSuite(), BriteTestSuite::BriteTestSuite(), BufferTestSuite::BufferTestSuite(), BuildingPositionAllocatorTestSuite::BuildingPositionAllocatorTestSuite(), BuildingsChannelConditionModelsTestSuite::BuildingsChannelConditionModelsTestSuite(), BuildingsHelperTestSuite::BuildingsHelperTestSuite(), BuildingsPathlossTestSuite::BuildingsPathlossTestSuite(), BuildingsShadowingTestSuite::BuildingsShadowingTestSuite(), ns3::tests::BuildProfileTestSuite::BuildProfileTestSuite(), BulkSendTestSuite::BulkSendTestSuite(), CallbackTestSuite::CallbackTestSuite(), CarrierAggregationConfigTestSuite::CarrierAggregationConfigTestSuite(), ChannelConditionModelsTestSuite::ChannelConditionModelsTestSuite(), ClassicRecoveryTestSuite::ClassicRecoveryTestSuite(), CobaltQueueDiscTestSuite::CobaltQueueDiscTestSuite(), CoDelQueueDiscTestSuite::CoDelQueueDiscTestSuite(), ns3::tests::CommandLineTestSuite::CommandLineTestSuite(), ns3::tests::ConfigTestSuite::ConfigTestSuite(), CosineAntennaModelTestSuite::CosineAntennaModelTestSuite(), CsmaSystemTestSuite::CsmaSystemTestSuite(), DataRateTestSuite::DataRateTestSuite(), DegreesRadiansTestSuite::DegreesRadiansTestSuite(), DhcpTestSuite::DhcpTestSuite(), Dot11sTestSuite::Dot11sTestSuite(), DropTailQueueTestSuite::DropTailQueueTestSuite(), DsdvTestSuite::DsdvTestSuite(), DsrTestSuite::DsrTestSuite(), EpcS1uDlTestSuite::EpcS1uDlTestSuite(), EpcS1uUlTestSuite::EpcS1uUlTestSuite(), EpcTftClassifierTestSuite::EpcTftClassifierTestSuite(), EpsGtpuTestSuite::EpsGtpuTestSuite(), ErrorModelTestSuite::ErrorModelTestSuite(), ns3::tests::EventGarbageCollectorTestSuite::EventGarbageCollectorTestSuite(), ns3::tests::ExamplesAsTestsTestSuite::ExamplesAsTestsTestSuite(), FifoQueueDiscTestSuite::FifoQueueDiscTestSuite(), FlameTestSuite::FlameTestSuite(), FqCoDelQueueDiscTestSuite::FqCoDelQueueDiscTestSuite(), GeoToCartesianTestSuite::GeoToCartesianTestSuite(), GlobalRouteManagerImplTestSuite::GlobalRouteManagerImplTestSuite(), ns3::tests::GlobalValueTestSuite::GlobalValueTestSuite(), ns3::tests::HashTestSuite::HashTestSuite(), HistogramTestSuite::HistogramTestSuite(), IcmpTestSuite::IcmpTestSuite(), ns3::aodv::IdCacheTestSuite::IdCacheTestSuite(), ns3::int64x64::test::Int64x64TestSuite::Int64x64TestSuite(), InterBssTestSuite::InterBssTestSuite(), Ipv4AddressGeneratorTestSuite::Ipv4AddressGeneratorTestSuite(), Ipv4AddressHelperTestSuite::Ipv4AddressHelperTestSuite(), Ipv4DeduplicationPerformanceTestSuite::Ipv4DeduplicationPerformanceTestSuite(), Ipv4DeduplicationTestSuite::Ipv4DeduplicationTestSuite(), Ipv4ForwardingTestSuite::Ipv4ForwardingTestSuite(), Ipv4FragmentationTestSuite::Ipv4FragmentationTestSuite(), Ipv4GlobalRoutingTestSuite::Ipv4GlobalRoutingTestSuite(), Ipv4HeaderTestSuite::Ipv4HeaderTestSuite(), IPv4L3ProtocolTestSuite::IPv4L3ProtocolTestSuite(), Ipv4ListRoutingTestSuite::Ipv4ListRoutingTestSuite(), Ipv4PacketInfoTagTestSuite::Ipv4PacketInfoTagTestSuite(), Ipv4RawTestSuite::Ipv4RawTestSuite(), Ipv4RipTestSuite::Ipv4RipTestSuite(), Ipv4StaticRoutingTestSuite::Ipv4StaticRoutingTestSuite(), Ipv6AddressGeneratorTestSuite::Ipv6AddressGeneratorTestSuite(), Ipv6AddressHelperTestSuite::Ipv6AddressHelperTestSuite(), Ipv6AddressTestSuite::Ipv6AddressTestSuite(), Ipv6DadTestSuite::Ipv6DadTestSuite(), Ipv6DualStackTestSuite::Ipv6DualStackTestSuite(), Ipv6ForwardingTestSuite::Ipv6ForwardingTestSuite(), Ipv6FragmentationTestSuite::Ipv6FragmentationTestSuite(), IPv6L3ProtocolTestSuite::IPv6L3ProtocolTestSuite(), Ipv6ListRoutingTestSuite::Ipv6ListRoutingTestSuite(), Ipv6PacketInfoTagTestSuite::Ipv6PacketInfoTagTestSuite(), Ipv6RawTestSuite::Ipv6RawTestSuite(), Ipv6RipngTestSuite::Ipv6RipngTestSuite(), IsotropicAntennaModelTestSuite::IsotropicAntennaModelTestSuite(), Issue211TestSuite::Issue211TestSuite(), ItuR1411LosPropagationLossModelTestSuite::ItuR1411LosPropagationLossModelTestSuite(), ItuR1411NlosOverRooftopPropagationLossModelTestSuite::ItuR1411NlosOverRooftopPropagationLossModelTestSuite(), Kun2600MhzPropagationLossModelTestSuite::Kun2600MhzPropagationLossModelTestSuite(), ns3::LenaTestBearerDeactivateSuite::LenaTestBearerDeactivateSuite(), LenaTestCqaFfMacSchedulerSuite::LenaTestCqaFfMacSchedulerSuite(), LenaTestFdBetFfMacSchedulerSuite::LenaTestFdBetFfMacSchedulerSuite(), LenaTestFdMtFfMacSchedulerSuite::LenaTestFdMtFfMacSchedulerSuite(), LenaTestFdTbfqFfMacSchedulerSuite::LenaTestFdTbfqFfMacSchedulerSuite(), LenaTestHarqSuite::LenaTestHarqSuite(), LenaTestMimoSuite::LenaTestMimoSuite(), LenaTestPfFfMacSchedulerSuite::LenaTestPfFfMacSchedulerSuite(), LenaTestPhyErrorModelSuite::LenaTestPhyErrorModelSuite(), LenaTestPssFfMacSchedulerSuite::LenaTestPssFfMacSchedulerSuite(), LenaTestRrFfMacSchedulerSuite::LenaTestRrFfMacSchedulerSuite(), LenaTestTdBetFfMacSchedulerSuite::LenaTestTdBetFfMacSchedulerSuite(), LenaTestTdMtFfMacSchedulerSuite::LenaTestTdMtFfMacSchedulerSuite(), LenaTestTdTbfqFfMacSchedulerSuite::LenaTestTdTbfqFfMacSchedulerSuite(), LenaTestTtaFfMacSchedulerSuite::LenaTestTtaFfMacSchedulerSuite(), LiIonEnergySourceTestSuite::LiIonEnergySourceTestSuite(), LolipopCounterTestSuite::LolipopCounterTestSuite(), LrWpanAckTestSuite::LrWpanAckTestSuite(), LrWpanCcaTestSuite::LrWpanCcaTestSuite(), LrWpanCollisionTestSuite::LrWpanCollisionTestSuite(), LrWpanEdTestSuite::LrWpanEdTestSuite(), LrWpanErrorModelTestSuite::LrWpanErrorModelTestSuite(), LrWpanIfsTestSuite::LrWpanIfsTestSuite(), LrWpanPacketTestSuite::LrWpanPacketTestSuite(), LrWpanPlmeAndPdInterfaceTestSuite::LrWpanPlmeAndPdInterfaceTestSuite(), LrWpanSlottedCsmacaTestSuite::LrWpanSlottedCsmacaTestSuite(), LrWpanSpectrumValueHelperTestSuite::LrWpanSpectrumValueHelperTestSuite(), LteAggregationThroughputScaleTestSuite::LteAggregationThroughputScaleTestSuite(), LteAntennaTestSuite::LteAntennaTestSuite(), LteCellSelectionTestSuite::LteCellSelectionTestSuite(), LteCqiGenerationTestSuite::LteCqiGenerationTestSuite(), LteDownlinkPowerControlTestSuite::LteDownlinkPowerControlTestSuite(), LteDownlinkSinrTestSuite::LteDownlinkSinrTestSuite(), LteEarfcnTestSuite::LteEarfcnTestSuite(), LteEpcE2eDataTestSuite::LteEpcE2eDataTestSuite(), LteFrequencyReuseTestSuite::LteFrequencyReuseTestSuite(), LteHandoverTargetTestSuite::LteHandoverTargetTestSuite(), LteInterferenceFrTestSuite::LteInterferenceFrTestSuite(), LteInterferenceTestSuite::LteInterferenceTestSuite(), LteIpv6RoutingTestSuite::LteIpv6RoutingTestSuite(), LteLinkAdaptationTestSuite::LteLinkAdaptationTestSuite(), LtePathlossModelTestSuite::LtePathlossModelTestSuite(), LteRadioLinkFailureTestSuite::LteRadioLinkFailureTestSuite(), LteRlcAmE2eTestSuite::LteRlcAmE2eTestSuite(), LteRlcAmTransmitterTestSuite::LteRlcAmTransmitterTestSuite(), ns3::LteRlcHeaderTestSuite::LteRlcHeaderTestSuite(), LteRlcUmE2eTestSuite::LteRlcUmE2eTestSuite(), LteRlcUmTransmitterTestSuite::LteRlcUmTransmitterTestSuite(), LteRrcTestSuite::LteRrcTestSuite(), LteSpectrumValueHelperTestSuite::LteSpectrumValueHelperTestSuite(), LteUeMeasurementsHandoverTestSuite::LteUeMeasurementsHandoverTestSuite(), LteUeMeasurementsPiecewiseTestSuite1::LteUeMeasurementsPiecewiseTestSuite1(), LteUeMeasurementsPiecewiseTestSuite2::LteUeMeasurementsPiecewiseTestSuite2(), LteUeMeasurementsPiecewiseTestSuite3::LteUeMeasurementsPiecewiseTestSuite3(), LteUeMeasurementsTestSuite::LteUeMeasurementsTestSuite(), LteUplinkPowerControlTestSuite::LteUplinkPowerControlTestSuite(), LteUplinkSinrTestSuite::LteUplinkSinrTestSuite(), LteX2HandoverMeasuresTestSuite::LteX2HandoverMeasuresTestSuite(), LteX2HandoverTestSuite::LteX2HandoverTestSuite(), ns3::tests::ManyUniformRandomVariablesOneGetValueCallTestSuite::ManyUniformRandomVariablesOneGetValueCallTestSuite(), MeshTestSuite::MeshTestSuite(), MobilityTestSuite::MobilityTestSuite(), MobilityTraceTestSuite::MobilityTraceTestSuite(), ns3::tests::NamesTestSuite::NamesTestSuite(), 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::tests::ObjectTestSuite::ObjectTestSuite(), OcbTestSuite::OcbTestSuite(), OkumuraHataPropagationLossModelTestSuite::OkumuraHataPropagationLossModelTestSuite(), OlsrProtocolTestSuite::OlsrProtocolTestSuite(), OlsrTestSuite::OlsrTestSuite(), ns3::tests::OneUniformRandomVariableManyGetValueCallsTestSuite::OneUniformRandomVariableManyGetValueCallsTestSuite(), OutdoorRandomWalkTestSuite::OutdoorRandomWalkTestSuite(), PacketMetadataTestSuite::PacketMetadataTestSuite(), PacketSocketAppsTestSuite::PacketSocketAppsTestSuite(), PacketTestSuite::PacketTestSuite(), PairValueTestSuite::PairValueTestSuite(), ParabolicAntennaModelTestSuite::ParabolicAntennaModelTestSuite(), PbbTestSuite::PbbTestSuite(), PcapFileTestSuite::PcapFileTestSuite(), PfifoFastQueueDiscTestSuite::PfifoFastQueueDiscTestSuite(), PieQueueDiscTestSuite::PieQueueDiscTestSuite(), PointToPointTestSuite::PointToPointTestSuite(), PowerRateAdaptationTestSuite::PowerRateAdaptationTestSuite(), PrioQueueDiscTestSuite::PrioQueueDiscTestSuite(), ProbeTestSuite::ProbeTestSuite(), PropagationLossModelsTestSuite::PropagationLossModelsTestSuite(), PrrRecoveryTestSuite::PrrRecoveryTestSuite(), ns3::tests::PtrTestSuite::PtrTestSuite(), QosTxopTestSuite::QosTxopTestSuite(), QueueDiscTracesTestSuite::QueueDiscTracesTestSuite(), RandCartAroundGeoTestSuite::RandCartAroundGeoTestSuite(), ns3::test::RandomVariable::RandomVariableSuite::RandomVariableSuite(), RedQueueDiscTestSuite::RedQueueDiscTestSuite(), RngTestSuite::RngTestSuite(), RocketfuelTopologyReaderTestSuite::RocketfuelTopologyReaderTestSuite(), RttEstimatorTestSuite::RttEstimatorTestSuite(), ns3::tests::SampleTestSuite::SampleTestSuite(), SequenceNumberTestSuite::SequenceNumberTestSuite(), SimulatorTestSuite::SimulatorTestSuite(), SixlowpanFragmentationTestSuite::SixlowpanFragmentationTestSuite(), SixlowpanHc1TestSuite::SixlowpanHc1TestSuite(), SixlowpanIphcTestSuite::SixlowpanIphcTestSuite(), SpectrumConverterTestSuite::SpectrumConverterTestSuite(), SpectrumIdealPhyTestSuite::SpectrumIdealPhyTestSuite(), SpectrumInterferenceTestSuite::SpectrumInterferenceTestSuite(), SpectrumValueTestSuite::SpectrumValueTestSuite(), SpectrumWifiPhyTestSuite::SpectrumWifiPhyTestSuite(), SwitchTestSuite::SwitchTestSuite(), TbfQueueDiscTestSuite::TbfQueueDiscTestSuite(), TcFlowControlTestSuite::TcFlowControlTestSuite(), TcpAdvertisedWindowTestSuite::TcpAdvertisedWindowTestSuite(), TcpBicTestSuite::TcpBicTestSuite(), TcpBytesInFlightTestSuite::TcpBytesInFlightTestSuite(), TcpDctcpTestSuite::TcpDctcpTestSuite(), ns3::TcpEcnTestSuite::TcpEcnTestSuite(), TcpEndpointBug2211TestSuite::TcpEndpointBug2211TestSuite(), TcpFastRetrTestSuite::TcpFastRetrTestSuite(), TcpHeaderTestSuite::TcpHeaderTestSuite(), TcpHighSpeedTestSuite::TcpHighSpeedTestSuite(), TcpHtcpTestSuite::TcpHtcpTestSuite(), TcpHyblaTestSuite::TcpHyblaTestSuite(), TcpIllinoisTestSuite::TcpIllinoisTestSuite(), TcpLedbatTestSuite::TcpLedbatTestSuite(), TcpLinuxRenoTestSuite::TcpLinuxRenoTestSuite(), TcpLossTestSuite::TcpLossTestSuite(), ns3::TcpLpTestSuite::TcpLpTestSuite(), TcpOptionTestSuite::TcpOptionTestSuite(), TcpPacingTestSuite::TcpPacingTestSuite(), TcpPktsAckedTestSuite::TcpPktsAckedTestSuite(), TcpRateOpsTestSuite::TcpRateOpsTestSuite(), TcpRenoCongAvoidTestSuite::TcpRenoCongAvoidTestSuite(), TcpRtoTestSuite::TcpRtoTestSuite(), TcpRttEstimationTestSuite::TcpRttEstimationTestSuite(), TcpRxBufferTestSuite::TcpRxBufferTestSuite(), TcpSackPermittedTestSuite::TcpSackPermittedTestSuite(), TcpScalableTestSuite::TcpScalableTestSuite(), TcpSlowStartTestSuite::TcpSlowStartTestSuite(), TcpSynConnectionFailedTestSuite::TcpSynConnectionFailedTestSuite(), ns3::TcpTcpCloseTestSuite::TcpTcpCloseTestSuite(), TcpTestSuite::TcpTestSuite(), TcpTimestampTestSuite::TcpTimestampTestSuite(), TcpTxBufferTestSuite::TcpTxBufferTestSuite(), TcpVegasTestSuite::TcpVegasTestSuite(), TcpVenoTestSuite::TcpVenoTestSuite(), TcpWScalingTestSuite::TcpWScalingTestSuite(), TcpYeahTestSuite::TcpYeahTestSuite(), TcpZeroWindowTestSuite::TcpZeroWindowTestSuite(), TestCarrierAggregationSuite::TestCarrierAggregationSuite(), ThreadedSimulatorTestSuite::ThreadedSimulatorTestSuite(), ThreeGppChannelTestSuite::ThreeGppChannelTestSuite(), ThreeGppPropagationLossModelsTestSuite::ThreeGppPropagationLossModelsTestSuite(), TimerTestSuite::TimerTestSuite(), TimeTestSuite::TimeTestSuite(), TracedCallbackTestSuite::TracedCallbackTestSuite(), TracedCallbackTypedefTestSuite::TracedCallbackTypedefTestSuite(), TracedValueCallbackTestSuite::TracedValueCallbackTestSuite(), TvHelperDistributionTestSuite::TvHelperDistributionTestSuite(), TvSpectrumTransmitterTestSuite::TvSpectrumTransmitterTestSuite(), TxDurationTestSuite::TxDurationTestSuite(), TxopTestSuite::TxopTestSuite(), TypeIdPerformanceSuite::TypeIdPerformanceSuite(), TypeIdTestSuite::TypeIdTestSuite(), ns3::tests::TypeTraitsTestSuite::TypeTraitsTestSuite(), UanEnergyModelTestSuite::UanEnergyModelTestSuite(), UanTestSuite::UanTestSuite(), UdpClientServerTestSuite::UdpClientServerTestSuite(), UdpTestSuite::UdpTestSuite(), ns3::tests::WatchdogTestSuite::WatchdogTestSuite(), WaveformGeneratorTestSuite::WaveformGeneratorTestSuite(), WaveMacTestSuite::WaveMacTestSuite(), WifiAcMappingTestSuite::WifiAcMappingTestSuite(), WifiAggregationTestSuite::WifiAggregationTestSuite(), WifiErrorRateModelsTestSuite::WifiErrorRateModelsTestSuite(), WifiMsduAggregatorTestSuite::WifiMsduAggregatorTestSuite(), WifiPhyReceptionTestSuite::WifiPhyReceptionTestSuite(), WifiPhyThresholdsTestSuite::WifiPhyThresholdsTestSuite(), WifiTestSuite::WifiTestSuite(), and WifiTransmitMaskTestSuite::WifiTransmitMaskTestSuite().

◆ CreateDataDirFilename()

std::string ns3::TestCase::CreateDataDirFilename ( std::string  filename)
protected

Construct the full path to a file in the data directory.

The data directory is configured by SetDataDirectory().

Parameters
[in]filenameThe bare (no path) file name
Returns
The full path to filename in the data directory

Definition at line 412 of file test.cc.

References ns3::SystemPath::Append(), 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(), Ns3TcpLossTestCase::DoSetup(), Ns3TcpStateTestCase::DoSetup(), and Ns3TcpInteroperabilityTestCase::DoSetup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateTempDirFilename()

std::string ns3::TestCase::CreateTempDirFilename ( std::string  filename)
protected

Construct the full path to a file in a temporary directory.

If the TestRunner is invoked with "--update-data", this will be the data directory instead.

Parameters
[in]filenameThe bare (no path) file name
Returns
The full path to filename in the temporary directory.

Definition at line 430 of file test.cc.

References ns3::SystemPath::Append(), CreateDataDirFilename(), 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(), HwmpProactiveRegressionTest::CreateDevices(), FlameRegressionTest::CreateDevices(), HwmpDoRfRegressionTest::CreateDevices(), HwmpSimplestRegressionTest::CreateDevices(), HwmpReactiveRegressionTest::CreateDevices(), ChainRegressionTest::CreateDevices(), ns3::LenaDeactivateBearerTestCase::DoRun(), MobilityTraceTestCase::DoRun(), LenaMimoTestCase::DoRun(), LenaHarqTestCase::DoRun(), LenaRrFfMacSchedulerTestCase::DoRun(), LenaPfFfMacSchedulerTestCase1::DoRun(), LenaTdBetFfMacSchedulerTestCase1::DoRun(), LenaCqaFfMacSchedulerTestCase1::DoRun(), LenaTdMtFfMacSchedulerTestCase::DoRun(), LenaTtaFfMacSchedulerTestCase::DoRun(), LenaFdMtFfMacSchedulerTestCase::DoRun(), LenaFdBetFfMacSchedulerTestCase1::DoRun(), LenaPssFfMacSchedulerTestCase1::DoRun(), LenaTdTbfqFfMacSchedulerTestCase1::DoRun(), LenaFdTbfqFfMacSchedulerTestCase1::DoRun(), LteLinkAdaptationTestCase::DoRun(), LtePathlossModelSystemTestCase::DoRun(), CarrierAggregationTestCase::DoRun(), LteRadioLinkFailureTestCase::DoRun(), LenaPfFfMacSchedulerTestCase2::DoRun(), LenaTdBetFfMacSchedulerTestCase2::DoRun(), LenaDlCtrlPhyErrorModelTestCase::DoRun(), LenaFdBetFfMacSchedulerTestCase2::DoRun(), LenaTdTbfqFfMacSchedulerTestCase2::DoRun(), LenaCqaFfMacSchedulerTestCase2::DoRun(), LenaPssFfMacSchedulerTestCase2::DoRun(), LenaFdTbfqFfMacSchedulerTestCase2::DoRun(), LteEpcE2eDataTestCase::DoRun(), DiffTestCase::DoRun(), WriteModeCreateTestCase::DoSetup(), ReadModeCreateTestCase::DoSetup(), FileHeaderTestCase::DoSetup(), and RecordHeaderTestCase::DoSetup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DoRun()

virtual void ns3::TestCase::DoRun ( void  )
privatepure virtual

Implementation to actually run this TestCase.

Subclasses should override this method to conduct their tests.

Implemented in IdealRateManagerMimoTest, IdealRateManagerChannelWidthTest, Issue169TestCase, ns3::test::RandomVariable::EmpiricalAntitheticTestCase, ns3::test::RandomVariable::EmpiricalTestCase, Issue40TestCase, ns3::test::RandomVariable::DeterministicTestCase, ns3::test::RandomVariable::ZetaAntitheticTestCase, ns3::test::RandomVariable::ZetaTestCase, ns3::test::RandomVariable::ZipfAntitheticTestCase, Bug2470TestCase, ns3::test::RandomVariable::ZipfTestCase, ns3::test::RandomVariable::ErlangAntitheticTestCase, StaWifiMacScanningTestCase, ns3::test::RandomVariable::ErlangTestCase, ns3::test::RandomVariable::GammaAntitheticTestCase, Bug2831TestCase, ns3::test::RandomVariable::GammaTestCase, ns3::test::RandomVariable::LogNormalAntitheticTestCase, CallbackValueTestCase, Bug2843TestCase, TestAmpduReception, ns3::TestSuite, ns3::test::RandomVariable::LogNormalTestCase, PointerAttributeTestCase, Bug2222TestCase, ns3::test::RandomVariable::WeibullAntitheticTestCase, TracedCallbackTestCase, ns3::int64x64::test::Int64x64ImplTestCase, TestPhyHeadersReception, ns3::test::RandomVariable::WeibullTestCase, IntegerTraceSourceTestCase, ChannelAccessManagerTest< TxopType >, Ipv4GlobalRoutingSlash32TestCase, DiffTestCase, ns3::test::RandomVariable::ParetoAntitheticTestCase, IntegerTraceSourceAttributeTestCase, AnnexC_TestCase, MeasurementReportTestCase, ReadFileTestCase, ns3::test::RandomVariable::ParetoTestCase, ObjectMapAttributeTestCase, FqCoDelQueueDiscL4sMode, ns3::int64x64::test::Int64x64DoubleTestCase, RrcConnectionRejectTestCase, ns3::tests::AlternateFindTestCase, TestSimpleFrameCaptureModel, RrcConnectionReestablishmentCompleteTestCase, ObjectVectorAttributeTestCase, CsmaStarTestCase, ns3::test::RandomVariable::ExponentialAntitheticTestCase, SetChannelFrequencyTest, ns3::tests::RelativeFindTestCase, PacketTagListTest, FqCoDelQueueDiscSetLinearProbing, RrcConnectionReestablishmentTestCase, Ipv4DynamicGlobalRoutingTestCase, ns3::int64x64::test::Int64x64InvertTestCase, RandomVariableStreamAttributeTestCase, ns3::test::RandomVariable::ExponentialTestCase, ns3::tests::SearchAttributesOfParentObjectsTestCase, ns3::tests::FullyQualifiedFindTestCase, RrcConnectionReestablishmentRequestTestCase, CsmaRawIpSocketTestCase, ChannelAccessManagerTest< TxopType >, AttributeTestCase< T >, ns3::int64x64::test::Int64x64CompareTestCase, ns3::tests::StringContextFindTestCase, ns3::test::RandomVariable::NormalAntitheticTestCase, HandoverPreparationInfoTestCase, QosFragmentationTestCase, AttributeTestCase< T >, TwoBridgeTest, BlockAckAggregationDisabledTest, CartesianToGeoTestCase, RecordHeaderTestCase, CsmaPingTestCase, ns3::tests::BasicFindTestCase, ThreeGppShadowingTestCase, AttributeTestCase< T >, ns3::tests::ObjectVectorTraceConfigTestCase, ns3::test::RandomVariable::NormalTestCase, PreservePacketsInAmpdus, ns3::tests::FindPathTestCase, TcpDctcpDecrementTest, LteUeMeasurementsHandoverTestCase, ns3::int64x64::test::Int64x64Bug1786TestCase, MakeCallbackTemplatesTestCase, CoDelQueueDiscBasicMark, AttributeTestCase< T >, ns3::aodv::AodvRtableTest, ChannelAccessTestCase, ns3::test::RandomVariable::SequentialTestCase, Bug730TestCase, CsmaPacketSocketTestCase, LteRrcConnectionEstablishmentErrorTestCase, NullifyCallbackTestCase, ns3::tests::RelativeRenameTestCase, CtrlBAckResponseHeaderTest, DsrRreqTableTest, ns3::int64x64::test::Int64x64Bug863TestCase, ns3::test::RandomVariable::ConstantTestCase, FqCoDelQueueDiscECNMarking, TcpDctcpToNewReno, Ipv4DeduplicationPerformanceTest, IcmpV6TimeExceedTestCase, ThreeGppIndoorOfficePropagationLossModelTestCase, GeoToCartesianTestCase, BridgeTest, RrcConnectionReconfigurationTestCase, Ipv4RipSplitHorizonStrategyTest, ns3::aodv::AodvRtableEntryTest, Ipv6RipngSplitHorizonStrategyTest, Udp6SocketImplTest, ns3::tests::FullyQualifiedRenameTestCase, ns3::int64x64::test::Int64x64Bug455TestCase, LteUeMeasurementsPiecewiseTestCase3, AttributeTestCase< T >, HeAggregationTest, ns3::tests::ObjectVectorConfigTestCase, ns3::test::RandomVariable::UniformAntitheticTestCase, RrcConnectionReconfigurationCompleteTestCase, DsrSendBuffTest, FqCoDelQueueDiscUDPFlowsSeparation, CsmaOneSubnetTestCase, PacketTest, TestThresholdPreambleDetectionWithFrameCapture, ns3::tests::StringContextRenameTestCase, FileHeaderTestCase, CoDelQueueDiscBasicDrop, DcfImmediateAccessBroadcastTestCase, TimeInputOutputTestCase, ns3::tests::ObjectFactoryTestCase, TwoLanTest, ns3::tests::CommandLineNonOptionTestCase, RrcConnectionSetupCompleteTestCase, TcpRateLinuxWithBufferTest, AttributeTestCase< T >, RangePropagationLossModelTestCase, Ns3TcpCwndTestCase2, DsrCacheEntryTest, LteDistributedFfrAreaTestCase, ns3::tests::IncrementalTestCase, ns3::aodv::AodvRqueueTest, IcmpV6EchoReplyTestCase, WifiPhyThresholdsStrongForeignSignalTest, ns3::tests::CommandLineInvalidTestCase, ns3::tests::BasicRenameTestCase, ns3::TcpGeneralTest, ThreeGppUmiPropagationLossModelTestCase, LteEnhancedFfrAreaTestCase, TcpHeaderFlagsToString, CoDelQueueDiscControlLawTest, FqCoDelQueueDiscTCPFlowsSeparation, AttributeTestCase< T >, ns3::tests::UnderRootNamespaceConfigTestCase, ThreeGppSpectrumPropagationLossModelTest, MatrixPropagationLossModelTestCase, RrcConnectionSetupTestCase, ns3::test::RandomVariable::UniformTestCase, ns3::tests::Hash64FunctionPtrTestCase, TimeWithSignTestCase, ns3::int64x64::test::Int64x64ArithmeticTestCase, DsrAckHeaderTest, LookupTimeTestCase, LteSoftFfrAreaTestCase, ns3::aodv::QueueEntryTest, WaypointMobilityModelViaHelper, ns3::tests::CommandLineOrderTestCase, CobaltQueueDiscMarkTest, ChannelRoutingTestCase, LteUeMeasurementsPiecewiseTestCase2, WifiPhyThresholdsStrongWifiSignalTest, PacketMetadataTest, CoDelQueueDiscNewtonStepTest, MakeBoundCallbackTestCase, RngParetoTestCase, QueueDiscTracesTestCase, AttributeContainerSetGetTestCase, EpcS1uUlTestCase, LteSoftFrAreaTestCase, ns3::tests::Hash32FunctionPtrTestCase, WifiErrorRateModelsTestCaseMimo, ns3::tests::RelativeAddTestCase, DsrAckReqHeaderTest, RrcConnectionRequestTestCase, LteStrictFrAreaTestCase, ns3::tests::CommandLineStringTestCase, ns3::tests::RootNamespaceConfigTestCase, Ipv4RipCountToInfinityTest, Ipv6RipngCountToInfinityTest, TwoLinkTest, WifiPhyThresholdsWeakForeignSignalTest, OlsrHnaTestCase, DeprecatedAttributeTestCase, CsmaMulticastTestCase, ns3::aodv::RerrHeaderTest, UdpEchoClientSetFillTestCase, PfifoFastQueueDiscNoPriority, AddressCollisionTestCase, LogDistancePropagationLossModelTestCase, SpectrumWifiPhyListenerTest, ns3::int64x64::test::Int64x64InputOutputTestCase, OriginatorBlockAckWindowTest, TwoLevelAggregationTest, ns3::tests::CommandLineUnsignedIntTestCase, DsrRerrHeaderTest, LteFrAreaTestCase, ns3::aodv::RrepAckHeaderTest, WifiPhyThresholdsWeakWifiSignalTest, InterferenceHelperSequenceTest, TcpYeahDecrementTest, CoDelQueueDiscBasicOverflow, OlsrTcTestCase, Ns2MobilityHelperTest, ns3::tests::AggregateObjectTestCase, AddressCollision6TestCase, AttributeContainerSerializationTestCase, TcpLedbatDecrementTest, ns3::tests::FullyQualifiedAddTestCase, IcmpTimeExceedTestCase, AcousticModemEnergyDepletionTestCase, RngExponentialTestCase, ns3::tests::Murmur3TestCase, TestFulfilledAlignment, CobaltQueueDiscDropTest, PeerLinkFrameStartTest, ThreeGppChannelMatrixUpdateTest, TimestampValueTestCase, FqCoDelQueueDiscDeficit, QosUtilsIsOldPacketTest, ns3::tests::CommandLineIntTestCase, ChannelAccessManagerTest< TxopType >, UdpSocketImplTest, ExampleAddressGeneratorTestCase, ThreeGppUmaPropagationLossModelTestCase, TcpBicDecrementTest, LanTest, IpAddressHelperTestCasev4, ReadModeCreateTestCase, DsrSRHeaderTest, WaypointInitialPositionIsWaypoint, MakeCallbackTestCase, TracedValueCallbackTestCase, Ns3TcpCwndTestCase1, PfifoFastQueueDiscOverflow, ns3::aodv::RrepHeaderTest, PacketLossCounterTestCase, ns3::tests::Fnv1aTestCase, LteUeMeasurementsPiecewiseTestCase1, ns3::int64x64::test::Int64x64InputTestCase, ChainRegressionTest, ExampleAddress6GeneratorTestCase, WaypointMobilityModelAddWaypointTest, ns3::tests::CommandLineUint8tTestCase, LteRlcAmTransmitterReportBufferStatusTestCase, LteUplinkClosedLoopPowerControlAccumulatedModeTestCase, BurstErrorModelSimple, SimulatorTemplateTestCase, TestOptionWithAlignment, FiveDoublesTestCase, LteRlcUmTransmitterReportBufferStatusTestCase, OlsrHelloTestCase, FiveDoublesAverageTestCase, ns3::tests::CreateObjectTestCase, PacketBufferingCaseB, LteStrictFrTestCase, Ns3WimaxSFTypeTestCase, ns3::tests::StringContextAddTestCase, ns3::TcpLpInferenceTest2, LteDownlinkPowerControlRrcConnectionReconfigurationTestCase, NscTcpLossTestCase2, TcpHeaderWithRFC793OptionTestCase, LteTxPsdTestCase, LteUplinkClosedLoopPowerControlAbsoluteModeTestCase, CsmaBroadcastTestCase, DsrRrepHeaderTest, WifiErrorRateModelsTestCaseNist, ns3::tests::DefaultHashTestCase, LteRlcAmTransmitterConcatenationTestCase, Ns3TcpSocketTestCase2, LteRlcUmTransmitterConcatenationTestCase, FqCoDelQueueDiscIPFlowsSeparationAndPacketLimit, PrioQueueDiscTestCase, SameRoomPositionAllocatorTestCase, ns3::aodv::RreqHeaderTest, TcpLedbatIncrementTest, NetworkAndAddressTestCase, LteUplinkOpenLoopPowerControlTestCase, Ns3WimaxSfTlvTestCase, LteEarfcnUlTestCase, NetworkAndAddress6TestCase, TwoRayGroundPropagationLossModelTestCase, AttributeContainerTestCase, RngNormalTestCase, ResetAllocatorHelperTestCase, Ipv4DeduplicationTest, PairValueSettingsTestCase, LteRlcAmTransmitterSegmentationTestCase, TcpOptionTSTestCase, LteCqiGenerationDlPowerControlTestCase, WaypointLazyNotifyTrue, LteRlcUmTransmitterSegmentationTestCase, Ns3WimaxSNRtoBLERTestCase, ns3::tests::CommandLineBooleanTestCase, UdpTraceClientServerTestCase, CoDelQueueDiscBasicEnqueueDequeue, BulkSendSeqTsSizeTestCase, CollisionTestCase, LteHardFrTestCase, ns3::RlcAmStatusPduTestCase, LinkTest, Ipv6FragmentationTest, ns3::int64x64::test::Int64x64HiLoTestCase, TcpScalableDecrementTest, LteHandoverTargetTestCase, DsdvTableTestCase, Udp6SocketLoopbackTest, RrcHeaderTestCase, PieQueueDiscTestCase, ns3::aodv::TypeHeaderTest, LteEpcE2eDataTestCase, PfifoFastQueueDiscDscpPrioritization, LteX2HandoverMeasuresTestCase, Ipv6ListRoutingPositiveTestCase, Ipv4FragmentationTest, LenaFdTbfqFfMacSchedulerTestCase2, LteRlcAmTransmitterOneSduTestCase, ThreeGppHttpObjectTestCase, DsrRreqHeaderTest, EpcTftClassifierTestCase, CobaltQueueDiscBasicEnqueueDequeue, TcFlowControlTestCase, LteCellSelectionTestCase, LenaCqaFfMacSchedulerTestCase2, LteDownlinkPowerControlTestCase, LenaPssFfMacSchedulerTestCase2, LteRlcUmTransmitterOneSduTestCase, LteUplinkSrsSinrTestCase, FiveIntegersAverageTestCase, FiveIntegersTestCase, ns3::TcpLpInferenceTest1, EpcS1uDlTestCase, LteNoisePsdTestCase, LteUplinkPowerControlTestCase, ns3::tests::BasicAddTestCase, Ipv4ListRoutingPositiveTestCase, LenaTdTbfqFfMacSchedulerTestCase2, TestOptionWithoutAlignment, LenaFdBetFfMacSchedulerTestCase2, IcmpEchoReplyTestCase, HwmpRtableTest, Ns3WimaxManagementConnectionsTestCase, TcpHighSpeedDecrementTest, LrWpanSlottedCsmacaTestCase, LenaDlCtrlPhyErrorModelTestCase, LteUeMeasurementsTestCase, LenaTdBetFfMacSchedulerTestCase2, SequenceNumberTestCase, RedQueueDiscTestCase, ns3::tests::PtrTestCase, LteDownlinkCtrlSinrTestCase, LteInterferenceStrictFrTestCase, LenaPfFfMacSchedulerTestCase2, FqCoDelQueueDiscNoSuitableFilter, PairValueTestCase, CarrierAggregationConfigTestCase, AredQueueDiscTestCase, TbfQueueDiscTestCase, LteEarfcnDlTestCase, FifoQueueDiscTestCase, LteIpv6RoutingTestCase, Ns3TcpInteroperabilityTestCase, BuildingsHelperOneTestCase, ns3::ExampleAsTestCase, WifiTest, BriteTopologyFunctionTestCase, LrWpanCcaTestCase, ns3::tests::SampleTestCase1, WriteModeCreateTestCase, LteRadioLinkFailureTestCase, AddressAllocatorTestCase, Ipv4RawSocketImplTest, TimerTemplateTestCase, AddressAllocatorHelperTestCase, Ipv6PacketInfoTagTest, ErrorModelSimple, SpectrumWifiPhyBasicTest, ns3::tests::HashTestCase, AddressAllocator6TestCase, LteInterferenceTestCase, TestThresholdPreambleDetectionWithoutFrameCapture, LrWpanAckTestCase, ns3::olsr::TcRegressionTest, OcbWifiMacTestCase, LrWpanErrorModelTestCase, LteCqiGenerationTestCase, RandCartAroundGeoTestCase, TracedCallbackTypedefTestCase, LteHandoverDelayTestCase, LteX2HandoverTestCase, LteDownlinkPowerControlSpectrumValueTestCase, Ipv4HeaderTest, Ipv6ListRoutingNegativeTestCase, CarrierAggregationTestCase, LteFrTestCase, LteEnbAntennaTestCase, TestInterBssConstantObssPdAlgo, PacketBufferingCaseA, TcpTestCase, Ns3TcpStateTestCase, Ipv6RawSocketImplTest, BoxLineIntersectionTestCase, ChannelCoordinationTestCase, ns3::aodv::LoopbackTestCase, HwmpReactiveRegressionTest, ProbeTestCase1, Ns3TcpLossTestCase, TwoVectorsConstructorTestCase, Bug772ChainTest, TcpEndPointBug2211Test, LteRlcAmTransmitterTestCase, RadiansToDegreesTestCase, LtePathlossModelSystemTestCase, LteRlcUmTransmitterTestCase, SpectrumIdealPhyTestCase, WifiOfdmMaskSlopesTestCase, Ipv4ListRoutingNegativeTestCase, HwmpSimplestRegressionTest, AcousticModemEnergyTestCase, DsrFsHeaderTest, Ipv4StaticRoutingSlash32TestCase, HwmpDoRfRegressionTest, SixlowpanIphcImplTest, Ipv4ForwardingTest, Ipv4RipTest, Ipv6RipngTest, FlameRtableTest, Ipv6ForwardingTest, UdpSocketLoopbackTest, LenaFdTbfqFfMacSchedulerTestCase1, LteLinkAdaptationTestCase, RandomRoomPositionAllocatorTestCase, LrWpanDataIfsTestCase, LteDownlinkDataSinrTestCase, LteInterferenceHardFrTestCase, LenaPssFfMacSchedulerTestCase1, LenaTdTbfqFfMacSchedulerTestCase1, LteUplinkDataSinrTestCase, FlameRegressionTest, TcpIllinoisTest, LenaFdBetFfMacSchedulerTestCase1, LenaFdMtFfMacSchedulerTestCase, SixlowpanHc1ImplTest, DsdvHeaderTestCase, LenaCqaFfMacSchedulerTestCase1, LenaTdBetFfMacSchedulerTestCase1, LenaTdMtFfMacSchedulerTestCase, LenaTtaFfMacSchedulerTestCase, OlsrMidTestCase, SixlowpanFragmentationTest, Ipv4PacketInfoTagTest, TcpYeahIncrementTest, LenaPfFfMacSchedulerTestCase1, LteRrcConnectionEstablishmentTestCase, Issue211Test, DualStackTestCase, LteRlcAmE2eTestCase, ThreadedSimulatorEventsTestCase, PrrRecoveryTest, TcpVenoTest, HwmpProactiveRegressionTest, AbstractAnimationInterfaceTestCase, TcpVegasTest, LteRlcUmE2eTestCase, PeerManagementProtocolRegressionTest, ThreeGppChannelMatrixComputationTest, TcpHtcpIncrementTest, LrWpanErrorDistanceTestCase, LteAggregationThroughputScaleTestCase, WaypointLazyNotifyFalse, DataRateTestCase1, ns3::olsr::HelloRegressionTest, LenaDataPhyErrorModelTestCase, OlsrMprTestCase, CsmaBridgeTestCase, ns3::tests::EventGarbageCollectorTestCase, RngUniformTestCase, TcpHeaderGetSetTestCase, EpsGtpuHeaderTestCase, LenaRrFfMacSchedulerTestCase, WaypointMobilityModelNotifyTest, UdpClientServerTestCase, BasicCallbackTestCase, TcpLedbatToNewReno, TcpScalableIncrementTest, DhcpTestCase, LteSpectrumModelTestCase, ThreeGppRmaPropagationLossModelTestCase, AmpduAggregationTest, LteEarfcnTestCase, OutdoorRandomWalkTestCase, Ipv6DadTest, LenaHarqTestCase, ThreeGppChannelConditionModelTestCase, NscTcpLossTestCase1, RocketfuelTopologyReaderTest, ns3::tests::GlobalValueTestCase, TimeSimpleTestCase, TcpBicIncrementTest, ClassicRecoveryTest, TcpOptionWSTestCase, BuildingsChannelConditionModelTestCase, LrWpanCollisionTestCase, LenaMimoTestCase, TvHelperDistributionTestCase, Ns3TcpSocketTestCase1, ns3::tests::BuildProfileTestCase, ns3::tests::ManyUniformRandomVariablesOneGetValueCallTestCase, MeshInformationElementVectorBist, TvSpectrumTransmitterTestCase, Ns3TcpNoDelayTestCase, WifiErrorRateModelsTestCaseDsss, ns3::aodv::IdCacheTest, ns3::tests::OneUniformRandomVariableManyGetValueCallsTestCase, PbbTestCase, Ns3WimaxSimpleOFDMTestCase, UniqueTypeIdTestCase, TcpHyblaIncrementTest, TcpRateLinuxBasicTest, MobilityTraceTestCase, TcpSynConnectionFailedTest, LrWpanEdTestCase, BufferTest, ns3::LenaDeactivateBearerTestCase, MeshHeaderTest, CosineAntennaModelTestCase, ParabolicAntennaModelTestCase, BulkSendBasicTestCase, ns3::tests::TypeTraitsTestCase, GlobalRouteManagerImplTestCase, TcpHighSpeedIncrementTest, Ns3WimaxSchedulingTestCase, TestEmptyOptionField, SteadyStateRandomWaypointTest, WifiAcMappingTest, UanTest, Ns3WimaxSfCreationTestCase, BuildingsPathlossTestCase, BuildingsShadowingTestCase, Ipv6L3ProtocolTestCase, PacketSocketAppsTest, SwitchFlowTableTestCase, PointToPointTest, Ns3WimaxCsParamTlvTestCase, Ipv4L3ProtocolTestCase, LrWpanPacketTestCase, DsaRequestTestCase, Ns3WimaxNetworkEntryTestCase, Ns3WimaxFragmentationTestCase, TimerStateTestCase, ns3::tests::WatchdogTestCase, ns3::olsr::Bug780Test, IpAddressHelperTestCasev6, ns3::TcpLpToNewReno, FriisPropagationLossModelTestCase, PfifoFastQueueDiscTosPrioritization, LrWpanPlmeAndPdInterfaceTestCase, ItuR1411LosPropagationLossModelTestCase, ItuR1411NlosOverRooftopPropagationLossModelTestCase, Kun2600MhzPropagationLossModelTestCase, OkumuraHataPropagationLossModelTestCase, OneIntegerAverageTestCase, PowerRateAdaptationTest, ns3::aodv::NeighborTest, BasicEnergyHarvesterTestCase, RttEstimatorTestCase, TcpTxBufferTestCase, LrWpanSpectrumValueHelperTestCase, FlameHeaderTest, SpectrumInterferenceTestCase, SpectrumValueTestCase, BriteTopologyStructureTestCase, OneIntegerTestCase, HistogramTestCase, WifiMsduAggregatorThroughputTest, TxDurationTest, TcpRxBufferTestCase, LollipopCounterTest, DegreesToRadiansTestCase, IsotropicAntennaModelTestCase, OneVectorConstructorTestCase, LiIonEnergyTestCase, OlsrEmfTestCase, WaveformGeneratorTestCase, NetworkAllocatorHelperTestCase, NetworkNumber6AllocatorTestCase, DataRateTestCase, NetworkNumberAllocatorTestCase, DropTailQueueTestCase, Ipv6AddressTestCase, SimulatorEventsTestCase, and BasicTracedCallbackTestCase.

◆ DoSetup()

◆ DoTeardown()

void ns3::TestCase::DoTeardown ( void  )
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, ns3::tests::AlternateFindTestCase, ns3::tests::RelativeFindTestCase, ns3::tests::FullyQualifiedFindTestCase, ns3::tests::StringContextFindTestCase, RecordHeaderTestCase, ns3::tests::BasicFindTestCase, ns3::tests::FindPathTestCase, LteUeMeasurementsHandoverTestCase, ns3::tests::RelativeRenameTestCase, ns3::tests::FullyQualifiedRenameTestCase, LteUeMeasurementsPiecewiseTestCase3, ns3::tests::StringContextRenameTestCase, FileHeaderTestCase, TcpRateLinuxWithBufferTest, ns3::TcpGeneralTest, ns3::tests::BasicRenameTestCase, TimeWithSignTestCase, LteUeMeasurementsPiecewiseTestCase2, ns3::tests::RelativeAddTestCase, AddressCollisionTestCase, AddressCollision6TestCase, ns3::tests::FullyQualifiedAddTestCase, Ns2MobilityHelperTest, TimestampValueTestCase, ExampleAddressGeneratorTestCase, IpAddressHelperTestCasev4, ReadModeCreateTestCase, TcpLinuxRenoCongAvoidTest, LteUeMeasurementsPiecewiseTestCase1, ExampleAddress6GeneratorTestCase, WaypointMobilityModelAddWaypointTest, ns3::tests::StringContextAddTestCase, TcpHeaderWithRFC793OptionTestCase, NetworkAndAddressTestCase, NetworkAndAddress6TestCase, ResetAllocatorHelperTestCase, TcpOptionTSTestCase, LteHandoverTargetTestCase, ThreeGppHttpObjectTestCase, ns3::tests::BasicAddTestCase, Ns3TcpInteroperabilityTestCase, WriteModeCreateTestCase, AddressAllocatorTestCase, TimerTemplateTestCase, AddressAllocatorHelperTestCase, AddressAllocator6TestCase, TcpTestCase, Ns3TcpStateTestCase, Ns3TcpLossTestCase, TcpLinuxRenoSSTest, DualStackTestCase, ThreadedSimulatorEventsTestCase, TimeSimpleTestCase, TcpHeaderGetSetTestCase, WaypointMobilityModelNotifyTest, TcpOptionWSTestCase, SteadyStateRandomWaypointTest, IpAddressHelperTestCasev6, RttEstimatorTestCase, TcpTxBufferTestCase, TcpRxBufferTestCase, NetworkAllocatorHelperTestCase, NetworkNumber6AllocatorTestCase, and NetworkNumberAllocatorTestCase.

Definition at line 477 of file test.cc.

References NS_LOG_FUNCTION.

◆ GetName()

std::string ns3::TestCase::GetName ( void  ) const
Returns
The name of this test

Definition at line 370 of file test.cc.

References m_name, and NS_LOG_FUNCTION.

Referenced by PacketTagListTest::AddRemoveTime(), ns3::tests::HashTestCase::Check(), ns3::int64x64::test::Int64x64HiLoTestCase::Check(), ns3::int64x64::test::Int64x64InputTestCase::Check(), ns3::int64x64::test::Int64x64InputOutputTestCase::Check(), TimeInputOutputTestCase::Check(), ns3::int64x64::test::Int64x64Bug455TestCase::Check(), ns3::int64x64::test::Int64x64Bug863TestCase::Check(), ns3::int64x64::test::Int64x64Bug1786TestCase::Check(), ns3::int64x64::test::Int64x64CompareTestCase::Check(), ns3::int64x64::test::Int64x64DoubleTestCase::Check(), ns3::int64x64::test::Int64x64InvertTestCase::CheckCase(), UniqueTypeIdTestCase::DoRun(), ns3::tests::BuildProfileTestCase::DoRun(), LenaMimoTestCase::DoRun(), LteRrcConnectionEstablishmentTestCase::DoRun(), LenaCqaFfMacSchedulerTestCase1::DoRun(), LteInterferenceHardFrTestCase::DoRun(), LenaPssFfMacSchedulerTestCase1::DoRun(), LenaTdTbfqFfMacSchedulerTestCase1::DoRun(), LenaFdTbfqFfMacSchedulerTestCase1::DoRun(), LteInterferenceTestCase::DoRun(), LteRadioLinkFailureTestCase::DoRun(), LteInterferenceStrictFrTestCase::DoRun(), LteUeMeasurementsTestCase::DoRun(), LteCellSelectionTestCase::DoRun(), ThreeGppHttpObjectTestCase::DoRun(), LteEpcE2eDataTestCase::DoRun(), ns3::int64x64::test::Int64x64HiLoTestCase::DoRun(), LteHandoverTargetTestCase::DoRun(), CollisionTestCase::DoRun(), ns3::tests::DefaultHashTestCase::DoRun(), ns3::int64x64::test::Int64x64InputTestCase::DoRun(), LteUeMeasurementsPiecewiseTestCase1::DoRun(), ns3::int64x64::test::Int64x64InputOutputTestCase::DoRun(), DeprecatedAttributeTestCase::DoRun(), LteUeMeasurementsPiecewiseTestCase2::DoRun(), LookupTimeTestCase::DoRun(), ns3::int64x64::test::Int64x64ArithmeticTestCase::DoRun(), ns3::tests::IncrementalTestCase::DoRun(), TimeInputOutputTestCase::DoRun(), LteUeMeasurementsPiecewiseTestCase3::DoRun(), ns3::int64x64::test::Int64x64Bug455TestCase::DoRun(), ns3::int64x64::test::Int64x64Bug863TestCase::DoRun(), LteRrcConnectionEstablishmentErrorTestCase::DoRun(), ns3::int64x64::test::Int64x64Bug1786TestCase::DoRun(), LteUeMeasurementsHandoverTestCase::DoRun(), ns3::int64x64::test::Int64x64CompareTestCase::DoRun(), ns3::int64x64::test::Int64x64InvertTestCase::DoRun(), PacketTagListTest::DoRun(), ns3::int64x64::test::Int64x64DoubleTestCase::DoRun(), ns3::int64x64::test::Int64x64ImplTestCase::DoRun(), ThreeGppHttpObjectTestCase::DoTeardown(), LteAggregationThroughputScaleTestCase::GetThroughput(), LteAggregationThroughputScaleTestCase::LteAggregationThroughputScaleTestCase(), LteCellSelectionTestCase::LteCellSelectionTestCase(), LteRadioLinkFailureTestCase::LteRadioLinkFailureTestCase(), LteRrcConnectionEstablishmentErrorTestCase::LteRrcConnectionEstablishmentErrorTestCase(), LteRrcConnectionEstablishmentTestCase::LteRrcConnectionEstablishmentTestCase(), ns3::tests::CommandLineTestCaseBase::Parse(), PacketTagListTest::RemoveTime(), ThreeGppHttpObjectTestCase::ThreeGppHttpObjectTestCase(), LteAggregationThroughputScaleTestCase::~LteAggregationThroughputScaleTestCase(), LteCellSelectionTestCase::~LteCellSelectionTestCase(), and LteRadioLinkFailureTestCase::~LteRadioLinkFailureTestCase().

◆ GetParent()

◆ IsFailed()

bool ns3::TestCase::IsFailed ( void  ) const
private

Check if any tests failed.

Returns
true if any of the tests have failed, false otherwise.

Definition at line 340 of file test.cc.

References ns3::TestCase::Result::childrenFailed, ns3::TestCase::Result::failure, m_result, and NS_LOG_FUNCTION.

◆ IsStatusFailure()

bool ns3::TestCase::IsStatusFailure ( void  ) const
protected

Check if any tests failed.

Returns
true if any of the tests have failed, false otherwise.

Definition at line 452 of file test.cc.

References IsStatusSuccess(), and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

◆ IsStatusSuccess()

bool ns3::TestCase::IsStatusSuccess ( void  ) const
protected

Check if all tests passed.

Returns
true if the tests have succeeded, false otherwise.

Definition at line 458 of file test.cc.

References ns3::TestCase::Result::failure, m_result, and NS_LOG_FUNCTION.

Referenced by Ns3TcpLossTestCase::Ipv4L3Tx(), Ns3TcpStateTestCase::Ipv4L3Tx(), Ns3TcpInteroperabilityTestCase::Ipv4L3Tx(), and IsStatusFailure().

+ Here is the caller graph for this function:

◆ MustAssertOnFailure()

bool ns3::TestCase::MustAssertOnFailure ( void  ) const
protected

Check if this run should assert on failure.

Returns
true if we should assert on failure.

Definition at line 399 of file test.cc.

References m_runner, ns3::TestRunnerImpl::MustAssertOnFailure(), and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

◆ MustContinueOnFailure()

bool ns3::TestCase::MustContinueOnFailure ( void  ) const
protected

Check if this run should continue on failure.

Returns
true if we should continue on failure.

Definition at line 405 of file test.cc.

References m_runner, ns3::TestRunnerImpl::MustContinueOnFailure(), and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

◆ ReportTestFailure()

void ns3::TestCase::ReportTestFailure ( std::string  cond,
std::string  actual,
std::string  limit,
std::string  message,
std::string  file,
int32_t  line 
)
protected

Log the failure of this TestCase.

Parameters
[in]condThe test condition.
[in]actualActual value of the test.
[in]limitExpected value of the test.
[in]messageMessage indicating the type of failure.
[in]fileThe file where the test failed.
[in]lineThe line number in file where the test failed.

Definition at line 382 of file test.cc.

References ns3::TestCase::Result::childrenFailed, ns3::TestCase::Result::failure, create-module::file, m_parent, m_result, and NS_LOG_FUNCTION.

◆ Run()

void ns3::TestCase::Run ( TestRunnerImpl runner)
private

Actually run this TestCase.

Parameters
[in]runnerThe test runner implementation.

Definition at line 347 of file test.cc.

References ns3::TestCase::Result::clock, DoSetup(), m_children, m_result, m_runner, NS_LOG_FUNCTION, and ns3::SystemWallClockMs::Start().

+ Here is the call graph for this function:

◆ SetDataDir()

void ns3::TestCase::SetDataDir ( std::string  directory)
protected

Set the data directory where reference trace files can be found.

Parameters
[in]directoryThe 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 465 of file test.cc.

References m_dataDir, and NS_LOG_FUNCTION.

Referenced by ns3::aodv::AodvLoopbackTestSuite::AodvLoopbackTestSuite(), MobilityTraceTestCase::DoRun(), Ns3TcpInteroperabilityTestSuite::Ns3TcpInteroperabilityTestSuite(), Ns3TcpLossTestSuite::Ns3TcpLossTestSuite(), Ns3TcpStateTestSuite::Ns3TcpStateTestSuite(), and PcapFileTestSuite::PcapFileTestSuite().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ TestRunnerImpl

friend class TestRunnerImpl
friend

Needs access to the TestCase data members.

Definition at line 1284 of file test.h.

Member Data Documentation

◆ m_children

std::vector<TestCase *> ns3::TestCase::m_children
private

Vector of my children.

Definition at line 1328 of file test.h.

Referenced by AddTestCase(), Run(), and ~TestCase().

◆ m_dataDir

std::string ns3::TestCase::m_dataDir
private

My data directory.

Definition at line 1329 of file test.h.

Referenced by CreateDataDirFilename(), and SetDataDir().

◆ m_duration

enum TestDuration ns3::TestCase::m_duration
private

TestCase duration.

Definition at line 1333 of file test.h.

Referenced by AddTestCase().

◆ m_name

std::string ns3::TestCase::m_name
private

TestCase name.

Definition at line 1332 of file test.h.

Referenced by AddTestCase(), CreateTempDirFilename(), and GetName().

◆ m_parent

TestCase* ns3::TestCase::m_parent
private

Pointer to my parent TestCase.

Definition at line 1325 of file test.h.

Referenced by AddTestCase(), CreateDataDirFilename(), CreateTempDirFilename(), GetParent(), ReportTestFailure(), and ~TestCase().

◆ m_result

struct Result* ns3::TestCase::m_result
private

Results data.

Definition at line 1331 of file test.h.

Referenced by IsFailed(), IsStatusSuccess(), ReportTestFailure(), Run(), and ~TestCase().

◆ m_runner

TestRunnerImpl* ns3::TestCase::m_runner
private

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