From d3394c8515d0773334e08fe40f941ce9a243e2b2 Mon Sep 17 00:00:00 2001 From: Levente Meszaros Date: Tue, 19 Mar 2024 13:52:24 +0100 Subject: [PATCH] Test: Fixed external process tests, replaced index.hu with localhost. --- tests/module/ExternalProcess_1.test | 2 +- tests/module/ExternalProcess_2.test | 4 ++-- tests/module/ExternalProcess_3.test | 8 ++++---- tests/module/ExternalProcess_4.test | 10 +++++----- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/module/ExternalProcess_1.test b/tests/module/ExternalProcess_1.test index 41756ac3414..890caa232af 100644 --- a/tests/module/ExternalProcess_1.test +++ b/tests/module/ExternalProcess_1.test @@ -26,7 +26,7 @@ scheduler-class = "inet::RealTimeScheduler" *.externalProcess[*].printStdout = true *.numProcesses = 1 -*.externalProcess[0].command = "ping -c 1 index.hu" +*.externalProcess[0].command = "ping -c 1 localhost" *.externalProcess[0].onExit = "terminateSimulation" %#-------------------------------------------------------------------------------------------------------------- diff --git a/tests/module/ExternalProcess_2.test b/tests/module/ExternalProcess_2.test index 488a73e0e49..6a6bf01f2bd 100644 --- a/tests/module/ExternalProcess_2.test +++ b/tests/module/ExternalProcess_2.test @@ -26,11 +26,11 @@ scheduler-class = "inet::RealTimeScheduler" sim-time-limit = 1s *.numProcesses = 1 -*.externalProcess[0].command = "ping index.hu" +*.externalProcess[0].command = "ping localhost" %#-------------------------------------------------------------------------------------------------------------- %contains-regex: stdout -64 bytes .*? icmp_seq=1 ttl=58 time=.*? ms +64 bytes .*? icmp_seq=1 ttl=64 time=.*? ms %#-------------------------------------------------------------------------------------------------------------- %postrun-command: grep "undisposed object:" test.out > test_undisposed.out || true diff --git a/tests/module/ExternalProcess_3.test b/tests/module/ExternalProcess_3.test index 8d9b130ed45..c5017fa115a 100644 --- a/tests/module/ExternalProcess_3.test +++ b/tests/module/ExternalProcess_3.test @@ -24,7 +24,7 @@ ned-path = .;../../../../src scheduler-class = "inet::RealTimeScheduler" *.numProcesses = 2 -*.externalProcess[0].command = "ping index.hu" +*.externalProcess[0].command = "ping localhost" *.externalProcess[0].onExit = "terminateSimulation" *.externalProcess[1].command = "killall ping" *.externalProcess[1].startTime = 1s @@ -32,9 +32,9 @@ scheduler-class = "inet::RealTimeScheduler" %#-------------------------------------------------------------------------------------------------------------- %contains-regex: stdout \*\* Event #1 t=0 TestNetwork.externalProcess\[0\] \(ExternalProcess, id=2\) -Starting process: ping index.hu -PING .*? 56 data bytes -64 bytes .*? icmp_seq=1 ttl=58 time=.*? ms +Starting process: ping localhost +PING localhost.*? +64 bytes .*? icmp_seq=1 ttl=64 time=.*? ms \*\* Event #2 t=1 TestNetwork.externalProcess\[1\] \(ExternalProcess, id=3\) Starting process: killall ping diff --git a/tests/module/ExternalProcess_4.test b/tests/module/ExternalProcess_4.test index 758109486d8..7e62adabb3a 100644 --- a/tests/module/ExternalProcess_4.test +++ b/tests/module/ExternalProcess_4.test @@ -26,25 +26,25 @@ scheduler-class = "inet::RealTimeScheduler" sim-time-limit = 1s *.numProcesses = ${1,1,1,1} -*.externalProcess[0].command = "ping index.hu" +*.externalProcess[0].command = "ping localhost" %#-------------------------------------------------------------------------------------------------------------- %contains-regex: stdout Preparing for running configuration General, run #0... .*? -64 bytes .*? icmp_seq=1 ttl=58 time=.*? ms +64 bytes .*? icmp_seq=1 ttl=64 time=.*? ms .*? Preparing for running configuration General, run #1... .*? -64 bytes .*? icmp_seq=1 ttl=58 time=.*? ms +64 bytes .*? icmp_seq=1 ttl=64 time=.*? ms .*? Preparing for running configuration General, run #2... .*? -64 bytes .*? icmp_seq=1 ttl=58 time=.*? ms +64 bytes .*? icmp_seq=1 ttl=64 time=.*? ms .*? Preparing for running configuration General, run #3... .*? -64 bytes .*? icmp_seq=1 ttl=58 time=.*? ms +64 bytes .*? icmp_seq=1 ttl=64 time=.*? ms %#-------------------------------------------------------------------------------------------------------------- %postrun-command: grep "undisposed object:" test.out > test_undisposed.out || true