%description: Checks that a host responds to a General Query with a correct response. %#-------------------------------------------------------------------------------------------------------------- %inifile: omnetpp.ini [General] ned-path = .;../../../../src;../../lib sim-time-limit=300s cmdenv-express-mode = false #cmdenv-log-prefix = "%t %N: " #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" network=TestIGMPNetwork **.igmpType = "IGMPv3" **.IPForward = false **.multicastForwarding = false **.scenarioManager.script = xmldoc("scenario.xml") %#-------------------------------------------------------------------------------------------------------------- %file: scenario.xml %#-------------------------------------------------------------------------------------------------------------- %# %# First check that the join was successful %# %postrun-command: grep "IGMPTester: .*groups =" test.out > groups.out || true %contains: groups.out IGMPTester: eth0: groups = 224.0.0.1 E, 224.0.0.2 E, 225.0.0.1 I 10.0.0.1. IGMPTester: eth0: groups = 224.0.0.1 E, 224.0.0.2 E, 225.0.0.1 E 10.0.0.2. %# %# Now check that the IGMP module responded with a correct report %# %postrun-command: grep "IGMPTester: .*Received" test.out > received.out || true %contains-regex: received.out IGMPTester: Received: inet::IGMPv3Report<225.0.0.1=IS_IN 10.0.0.1>. .* IGMPTester: Received: inet::IGMPv3Report<225.0.0.1=IS_EX 10.0.0.2>. %#-------------------------------------------------------------------------------------------------------------- %not-contains: stdout undisposed object: %not-contains: stdout -- check module destructor %#--------------------------------------------------------------------------------------------------------------