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, AttributeTestCase< T >, BasicCallbackTestCase, BasicEnergyHarvesterTestCase, BasicTracedCallbackTestCase, BlockAckAggregationDisabledTest, BridgeTest, BriteTopologyFunctionTestCase, BriteTopologyStructureTestCase, BufferTest, Bug2222TestCase, Bug2470TestCase, Bug2831TestCase, Bug2843TestCase, Bug730TestCase, Bug772ChainTest, BuildingsHelperOneTestCase, BuildingsPathlossTestCase, BuildingsShadowingTestCase, BurstErrorModelSimple, CallbackValueTestCase, CarrierAggregationConfigTestCase, CarrierAggregationTestCase, ChainRegressionTest, ChannelAccessManagerTest, ChannelAccessTestCase, ChannelCoordinationTestCase, ChannelRoutingTestCase, ClassicRecoveryTest, CobaltQueueDiscBasicEnqueueDequeue, CobaltQueueDiscDropTest, CoDelQueueDiscBasicDrop, CoDelQueueDiscBasicEnqueueDequeue, CoDelQueueDiscBasicOverflow, CoDelQueueDiscControlLawTest, CoDelQueueDiscNewtonStepTest, CollisionTestCase, CosineAntennaModelTestCase, CsmaBridgeTestCase, CsmaBroadcastTestCase, CsmaMulticastTestCase, CsmaOneSubnetTestCase, CsmaPacketSocketTestCase, CsmaPingTestCase, CsmaRawIpSocketTestCase, CsmaStarTestCase, CtrlBAckResponseHeaderTest, 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, FqCoDelQueueDiscIPFlowsSeparationAndPacketLimit, FqCoDelQueueDiscNoSuitableFilter, FqCoDelQueueDiscTCPFlowsSeparation, FqCoDelQueueDiscUDPFlowsSeparation, FriisPropagationLossModelTestCase, GeoToCartesianTestCase, GlobalRouteManagerImplTestCase, HeAggregationTest, HistogramTestCase, HwmpDoRfRegressionTest, HwmpProactiveRegressionTest, HwmpReactiveRegressionTest, HwmpRtableTest, HwmpSimplestRegressionTest, IcmpEchoReplyTestCase, IcmpTimeExceedTestCase, IcmpV6EchoReplyTestCase, IcmpV6TimeExceedTestCase, IntegerTraceSourceAttributeTestCase, IntegerTraceSourceTestCase, InterferenceHelperSequenceTest, IpAddressHelperTestCasev4, IpAddressHelperTestCasev6, Ipv4DeduplicationTest, Ipv4DynamicGlobalRoutingTestCase, Ipv4ForwardingTest, Ipv4FragmentationTest, Ipv4GlobalRoutingSlash32TestCase, Ipv4HeaderTest, Ipv4L3ProtocolTestCase, Ipv4ListRoutingNegativeTestCase, Ipv4ListRoutingPositiveTestCase, Ipv4PacketInfoTagTest, Ipv4RawSocketImplTest, Ipv4RipCountToInfinityTest, Ipv4RipSplitHorizonStrategyTest, Ipv4RipTest, Ipv4StaticRoutingSlash32TestCase, Ipv6AddressTestCase, Ipv6ForwardingTest, Ipv6FragmentationTest, Ipv6L3ProtocolTestCase, Ipv6ListRoutingNegativeTestCase, Ipv6ListRoutingPositiveTestCase, Ipv6PacketInfoTagTest, Ipv6RawSocketImplTest, Ipv6RipngCountToInfinityTest, Ipv6RipngSplitHorizonStrategyTest, Ipv6RipngTest, IsotropicAntennaModelTestCase, 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, LookupTimeTestCase, LrWpanAckTestCase, LrWpanCcaTestCase, LrWpanCollisionTestCase, LrWpanEdTestCase, LrWpanErrorDistanceTestCase, LrWpanErrorModelTestCase, LrWpanPacketTestCase, LrWpanPlmeAndPdInterfaceTestCase, 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, LteSecondaryCellSelectionTestCase, LteSpectrumModelTestCase, LteTxPsdTestCase, LteUeMeasurementsHandoverTestCase, LteUeMeasurementsPiecewiseTestCase1, LteUeMeasurementsPiecewiseTestCase2, 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::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::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, PacketBufferingCaseA, PacketBufferingCaseB, PacketLossCounterTestCase, PacketMetadataTest, PacketSocketAppsTest, PacketTagListTest, PacketTest, ParabolicAntennaModelTestCase, PbbTestCase, PeerLinkFrameStartTest, PeerManagementProtocolRegressionTest, PfifoFastQueueDiscDscpPrioritization, PfifoFastQueueDiscNoPriority, PfifoFastQueueDiscOverflow, PfifoFastQueueDiscTosPrioritization, PieQueueDiscTestCase, PointerAttributeTestCase, PointToPointTest, PowerRateAdaptationTest, PrioQueueDiscTestCase, ProbeTestCase1, PrrRecoveryTest, QosFragmentationTestCase, QosUtilsIsOldPacketTest, QueueDiscTracesTestCase, RadiansToDegreesTestCase, RandCartAroundGeoTestCase, RandomRoomPositionAllocatorTestCase, 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, 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, TcpEndPointBug2211Test, TcpHeaderFlagsToString, TcpHeaderGetSetTestCase, TcpHeaderWithRFC793OptionTestCase, TcpHighSpeedDecrementTest, TcpHighSpeedIncrementTest, TcpHtcpIncrementTest, TcpHyblaIncrementTest, TcpIllinoisTest, TcpLedbatDecrementTest, TcpLedbatIncrementTest, TcpLedbatToNewReno, TcpOptionTSTestCase, TcpOptionWSTestCase, TcpRateLinuxBasicTest, TcpRateLinuxWithBufferTest, TcpRxBufferTestCase, TcpScalableDecrementTest, TcpScalableIncrementTest, TcpTestCase, TcpTxBufferTestCase, TcpVegasTest, TcpVenoTest, TcpYeahDecrementTest, TcpYeahIncrementTest, TestAmpduReception, TestEmptyOptionField, TestFulfilledAlignment, TestInterBssConstantObssPdAlgo, TestOptionWithAlignment, TestOptionWithoutAlignment, TestPhyHeadersReception, TestSimpleFrameCaptureModel, TestThresholdPreambleDetectionWithFrameCapture, TestThresholdPreambleDetectionWithoutFrameCapture, ThreadedSimulatorEventsTestCase, ThreeGppHttpObjectTestCase, 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, WifiErrorRateModelsTestCaseNist, WifiInterferenceTestCase, 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
 

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 1155 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 1159 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(), AttributesTestSuite::AttributesTestSuite(), AverageTestSuite::AverageTestSuite(), BasicDataCalculatorsTestSuite::BasicDataCalculatorsTestSuite(), BasicEnergyHarvesterTestSuite::BasicEnergyHarvesterTestSuite(), BlockAckTestSuite::BlockAckTestSuite(), BriteTestSuite::BriteTestSuite(), BufferTestSuite::BufferTestSuite(), BuildingPositionAllocatorTestSuite::BuildingPositionAllocatorTestSuite(), BuildingsHelperTestSuite::BuildingsHelperTestSuite(), BuildingsPathlossTestSuite::BuildingsPathlossTestSuite(), BuildingsShadowingTestSuite::BuildingsShadowingTestSuite(), ns3::tests::BuildProfileTestSuite::BuildProfileTestSuite(), CallbackTestSuite::CallbackTestSuite(), CarrierAggregationConfigTestSuite::CarrierAggregationConfigTestSuite(), ClassicRecoveryTestSuite::ClassicRecoveryTestSuite(), CobaltQueueDiscTestSuite::CobaltQueueDiscTestSuite(), CoDelQueueDiscTestSuite::CoDelQueueDiscTestSuite(), ns3::tests::CommandLineTestSuite::CommandLineTestSuite(), ns3::tests::ConfigTestSuite::ConfigTestSuite(), CosineAntennaModelTestSuite::CosineAntennaModelTestSuite(), CsmaSystemTestSuite::CsmaSystemTestSuite(), DcfTestSuite::DcfTestSuite(), 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(), 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(), 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(), Ipv6DualStackTestSuite::Ipv6DualStackTestSuite(), Ipv6ForwardingTestSuite::Ipv6ForwardingTestSuite(), Ipv6FragmentationTestSuite::Ipv6FragmentationTestSuite(), IPv6L3ProtocolTestSuite::IPv6L3ProtocolTestSuite(), Ipv6ListRoutingTestSuite::Ipv6ListRoutingTestSuite(), Ipv6PacketInfoTagTestSuite::Ipv6PacketInfoTagTestSuite(), Ipv6RawTestSuite::Ipv6RawTestSuite(), Ipv6RipngTestSuite::Ipv6RipngTestSuite(), IsotropicAntennaModelTestSuite::IsotropicAntennaModelTestSuite(), 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(), LrWpanAckTestSuite::LrWpanAckTestSuite(), LrWpanCcaTestSuite::LrWpanCcaTestSuite(), LrWpanCollisionTestSuite::LrWpanCollisionTestSuite(), LrWpanEdTestSuite::LrWpanEdTestSuite(), LrWpanErrorModelTestSuite::LrWpanErrorModelTestSuite(), LrWpanPacketTestSuite::LrWpanPacketTestSuite(), LrWpanPlmeAndPdInterfaceTestSuite::LrWpanPlmeAndPdInterfaceTestSuite(), 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(), LteSecondaryCellSelectionTestSuite::LteSecondaryCellSelectionTestSuite(), LteSpectrumValueHelperTestSuite::LteSpectrumValueHelperTestSuite(), LteUeMeasurementsHandoverTestSuite::LteUeMeasurementsHandoverTestSuite(), LteUeMeasurementsPiecewiseTestSuite1::LteUeMeasurementsPiecewiseTestSuite1(), LteUeMeasurementsPiecewiseTestSuite2::LteUeMeasurementsPiecewiseTestSuite2(), 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(), PacketMetadataTestSuite::PacketMetadataTestSuite(), PacketSocketAppsTestSuite::PacketSocketAppsTestSuite(), PacketTestSuite::PacketTestSuite(), 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(), QueueDiscTracesTestSuite::QueueDiscTracesTestSuite(), RandCartAroundGeoTestSuite::RandCartAroundGeoTestSuite(), RandomVariableStreamTestSuite::RandomVariableStreamTestSuite(), 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(), ns3::TcpEcnTestSuite::TcpEcnTestSuite(), TcpEndpointBug2211TestSuite::TcpEndpointBug2211TestSuite(), TcpFastRetrTestSuite::TcpFastRetrTestSuite(), TcpHeaderTestSuite::TcpHeaderTestSuite(), TcpHighSpeedTestSuite::TcpHighSpeedTestSuite(), TcpHtcpTestSuite::TcpHtcpTestSuite(), TcpHyblaTestSuite::TcpHyblaTestSuite(), TcpIllinoisTestSuite::TcpIllinoisTestSuite(), TcpLedbatTestSuite::TcpLedbatTestSuite(), ns3::TcpLpTestSuite::TcpLpTestSuite(), TcpOptionTestSuite::TcpOptionTestSuite(), TcpPktsAckedTestSuite::TcpPktsAckedTestSuite(), TcpRateOpsTestSuite::TcpRateOpsTestSuite(), TcpRenoCongAvoidTestSuite::TcpRenoCongAvoidTestSuite(), TcpRtoTestSuite::TcpRtoTestSuite(), TcpRttEstimationTestSuite::TcpRttEstimationTestSuite(), TcpRxBufferTestSuite::TcpRxBufferTestSuite(), TcpSackPermittedTestSuite::TcpSackPermittedTestSuite(), TcpScalableTestSuite::TcpScalableTestSuite(), TcpSlowStartTestSuite::TcpSlowStartTestSuite(), ns3::TcpTcpCloseTestSuite::TcpTcpCloseTestSuite(), TcpTestSuite::TcpTestSuite(), TcpTimestampTestSuite::TcpTimestampTestSuite(), TcpTxBufferTestSuite::TcpTxBufferTestSuite(), TcpVegasTestSuite::TcpVegasTestSuite(), TcpVenoTestSuite::TcpVenoTestSuite(), TcpWScalingTestSuite::TcpWScalingTestSuite(), TcpYeahTestSuite::TcpYeahTestSuite(), TcpZeroWindowTestSuite::TcpZeroWindowTestSuite(), TestCarrierAggregationSuite::TestCarrierAggregationSuite(), ThreadedSimulatorTestSuite::ThreadedSimulatorTestSuite(), TimerTestSuite::TimerTestSuite(), TimeTestSuite::TimeTestSuite(), TracedCallbackTestSuite::TracedCallbackTestSuite(), TracedCallbackTypedefTestSuite::TracedCallbackTypedefTestSuite(), TracedValueCallbackTestSuite::TracedValueCallbackTestSuite(), TvHelperDistributionTestSuite::TvHelperDistributionTestSuite(), TvSpectrumTransmitterTestSuite::TvSpectrumTransmitterTestSuite(), TxDurationTestSuite::TxDurationTestSuite(), 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(), WifiInterferenceTestSuite::WifiInterferenceTestSuite(), 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

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

◆ 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, anonymous_namespace{print-introspected-doxygen.cc}::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

Definition at line 1283 of file test.h.

Member Data Documentation

◆ m_children

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

Vector of my children.

Definition at line 1327 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 1328 of file test.h.

Referenced by CreateDataDirFilename(), and SetDataDir().

◆ m_duration

enum TestDuration ns3::TestCase::m_duration
private

TestCase duration.

Definition at line 1332 of file test.h.

Referenced by AddTestCase().

◆ m_name

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

TestCase name.

Definition at line 1331 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 1324 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 1330 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: