12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- %description:
- Test node shutdown followed by ping stop.
- %inifile: omnetpp.ini
- [General]
- network = Test
- tkenv-plugin-path = ../../../etc/plugins
- ned-path = .;../../../../src;../../lib
- cmdenv-express-mode = false
- #omnetpp 5.0 - 5.1 compatibility:
- eventlog-file = "${resultdir}/${configname}-${runnumber}.elog"
- output-scalar-file = "${resultdir}/${configname}-${runnumber}.sca"
- output-vector-file = "${resultdir}/${configname}-${runnumber}.vec"
- snapshot-file = "${resultdir}/${configname}-${runnumber}.sna"
- *.host.numPingApps = 1
- *.host.pingApp[0].destAddr = "192.168.0.42"
- *.host.pingApp[0].startTime = 0s
- *.host.pingApp[0].stopTime = 6s
- *.host.networkLayer.configurator.networkConfiguratorModule = ""
- **.hasStatus = true
- **.scenarioManager.script = xmldoc("scenario.xml")
- %file: test.ned
- import inet.node.inet.StandardHost;
- import inet.common.lifecycle.LifecycleController;
- import inet.common.scenario.ScenarioManager;
- network Test
- {
- submodules:
- scenarioManager: ScenarioManager;
- lifecycleController: LifecycleController;
- host: StandardHost;
- }
- %#--------------------------------------------------------------------------------------------------------------
- %file: scenario.xml
- <scenario>
- <at t="3.0">
- <tell module="lifecycleController" target="host" operation="NodeShutdownOperation"/>
- </at>
- </scenario>
- %#--------------------------------------------------------------------------------------------------------------
- %contains-regex: stdout
- \*\* Event #\d+ t=0 Test\.host\.pingApp\[0\] \(PingApp, id=\d+\)
- Starting up: dest=192\.168\.0\.42 src=<none>seqNo=0
- Sending ping request #0 to lower layer\.
- .*
- \*\* Event #\d+ t=2 Test\.host\.pingApp\[0\] \(PingApp, id=\d+\)
- Sending ping request #2 to lower layer\.
- .*
- \*\* Event #\d+ t=3 Test\.scenarioManager \(ScenarioManager, id=\d+\)
- processing <at> command\.\.\.
- processing <tell> command\.\.\.
- Doing stage 0/8 of operation inet::NodeShutdownOperation on Test\.host
- Test\.host shutting down
- .*
- Test\.host shut down
- <!> No more events
- %#--------------------------------------------------------------------------------------------------------------
- %not-contains: stdout
- undisposed object:
- %#--------------------------------------------------------------------------------------------------------------
- %not-contains: stdout
- -- check module destructor
- %#--------------------------------------------------------------------------------------------------------------
|