1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- %description:
- Test crash and startup operations on StandardHost.
- %inifile: omnetpp.ini
- [General]
- network = Test
- tkenv-plugin-path = ../../../etc/plugins
- ned-path = .;../../../../src;../../lib
- cmdenv-express-mode = false
- record-eventlog = true
- #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"
- **.hasStatus = true
- **.scenarioManager.script = xmldoc("scenario.xml")
- *.host.hasTcp = true
- *.host.hasUdp = true
- *.host.hasSctp = true
- *.host.eth[0].csmacdSupport = true
- *.host.eth[1].csmacdSupport = false
- *.host.networkLayer.configurator.networkConfiguratorModule = ""
- %file: test.ned
- import inet.node.inet.StandardHost;
- import inet.common.lifecycle.LifecycleController;
- import inet.status.NodeStatus;
- import inet.common.scenario.ScenarioManager;
- network Test
- {
- submodules:
- scenarioManager: ScenarioManager;
- lifecycleController: LifecycleController;
- host: StandardHost
- {
- gates:
- ethg[2];
- pppg[2];
- }
- connections:
- host.ethg[0] <--> {datarate=10Mbps; delay=10us;} <--> host.ethg[1];
- host.pppg[0] <--> {datarate=10Mbps; delay=10us;} <--> host.pppg[1];
- }
- %file: scenario.xml
- <scenario>
- <at t="1.0">
- <tell module="lifecycleController" target="host" operation="NodeCrashOperation"/>
- </at>
- <at t="2.0">
- <tell module="lifecycleController" target="host" operation="NodeStartOperation"/>
- </at>
- </scenario>
- %contains-regex: stdout
- Test.host crashing
- .*
- Test.host crashed
- .*
- Test.host starting up
- .*
- Test.host started
- %#--------------------------------------------------------------------------------------------------------------
- %not-contains: stdout
- undisposed object:
- %not-contains: stdout
- -- check module destructor
- %#--------------------------------------------------------------------------------------------------------------
|