diff mbox series

[v1,3/3] test: pktio: ipc: increse timeouts for coverage test

Message ID 1499716806-18707-4-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [v1,1/3] linux-gen: pktio: ipc fix packets free | expand

Commit Message

Github ODP bot July 10, 2017, 8 p.m. UTC
From: Maxim Uvarov <maxim.uvarov@linaro.org>


Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>

---
/** Email created from pull request 72 (muvarov:master_ipc_pkt_free_fix)
 ** https://github.com/Linaro/odp/pull/72
 ** Patch: https://github.com/Linaro/odp/pull/72.patch
 ** Base sha: 5a2ed3eefb1a263139282c376741adb2c355bd5a
 ** Merge commit sha: 5853863d527ef327a244740d931cd2d0fb05db5f
 **/
 test/linux-generic/pktio_ipc/pktio_ipc_run.sh | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/test/linux-generic/pktio_ipc/pktio_ipc_run.sh b/test/linux-generic/pktio_ipc/pktio_ipc_run.sh
index c53de457..b713c63c 100755
--- a/test/linux-generic/pktio_ipc/pktio_ipc_run.sh
+++ b/test/linux-generic/pktio_ipc/pktio_ipc_run.sh
@@ -17,20 +17,29 @@  PATH=$(dirname $0):$PATH
 PATH=$(dirname $0)/../../../../platform/linux-generic/test/pktio_ipc:$PATH
 PATH=.:$PATH
 
+RUNTIME1=10
+RUNTIME2=5
+TIMEOUT=13
+if [ "${TEST}" = "coverage" ]; then
+	RUNTIME1=30
+	RUNTIME2=15
+	TIMEOUT=20
+fi
+
 run()
 {
 	local ret=0
 
 	echo "==== run pktio_ipc1 then pktio_ipc2 ===="
-	pktio_ipc1${EXEEXT} -t 10 &
+	pktio_ipc1${EXEEXT} -t ${RUNTIME1} &
 	IPC_PID=$!
 
-	pktio_ipc2${EXEEXT} -p ${IPC_PID} -t 5
+	pktio_ipc2${EXEEXT} -p ${IPC_PID} -t ${RUNTIME2}
 	ret=$?
 	# pktio_ipc1 should do clean up and exit just
 	# after pktio_ipc2 exited. If it does not happen
 	# kill him in test.
-	sleep 13
+	sleep ${TIMEOUT}
 	(kill ${IPC_PID} 2>&1 > /dev/null ) > /dev/null
 	if [ $? -eq 0 ]; then
 		echo "pktio_ipc1${EXEEXT} was killed"
@@ -49,14 +58,14 @@  run()
 	fi
 
 	echo "==== run pktio_ipc2 then pktio_ipc1 ===="
-	pktio_ipc2${EXEEXT} -t 10 &
+	pktio_ipc2${EXEEXT} -t ${RUNTIME1} &
 	IPC_PID=$!
 
-	pktio_ipc1${EXEEXT} -p ${IPC_PID} -t 5
+	pktio_ipc1${EXEEXT} -p ${IPC_PID} -t ${RUNTIME2}
 	ret=$?
 	# pktio_ipc2 do not exit on pktio_ipc1 disconnect
 	# wait until it exits cleanly
-	sleep 13
+	sleep ${TIMEOUT}
 	(kill ${IPC_PID} 2>&1 > /dev/null ) > /dev/null
 	if [ $? -eq 0 ]; then
 		echo "pktio_ipc2${EXEEXT} was killed"