12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- %description:
- Test crash and startup operations on AccessPoint.
- %inifile: omnetpp.ini
- [General]
- network = Test
- tkenv-plugin-path = ../../../etc/plugins
- ned-path = .;../../../../src;../../lib
- cmdenv-express-mode = false
- record-eventlog = true
- sim-time-limit = 3s
- #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.numRadios=2
- *.host.mobilityType = "StationaryMobility"
- **.mobility.constraintAreaMinX = 0m
- **.mobility.constraintAreaMinY = 0m
- **.mobility.constraintAreaMinZ = 0m
- **.mobility.constraintAreaMaxX = 1000m
- **.mobility.constraintAreaMaxY = 1000m
- **.mobility.constraintAreaMaxZ = 0m
- **.mobility.initFromDisplayString = false
- **.mobility.initialX = 500m
- **.mobility.initialY = 500m
- **.mobility.initialZ = 0m
- %file: test.ned
- import inet.common.lifecycle.LifecycleController;
- import inet.node.wireless.AccessPoint;
- import inet.status.NodeStatus;
- import inet.physicallayer.ieee80211.packetlevel.Ieee80211ScalarRadioMedium;
- import inet.common.scenario.ScenarioManager;
- network Test
- {
- submodules:
- radioMedium: Ieee80211ScalarRadioMedium;
- scenarioManager: ScenarioManager;
- lifecycleController: LifecycleController;
- host: AccessPoint;
- }
- %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
- %#--------------------------------------------------------------------------------------------------------------
|