aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanne Peltonen <janne.peltonen@nokia.com>2022-01-27 12:15:42 +0200
committerPetri Savolainen <petri.savolainen@nokia.com>2022-02-03 13:12:27 +0200
commit9181b609a0dcbd6a96e8c79a77b69b1e751cf043 (patch)
tree22c2ac6499e36f763fedcf3814a64d418e90456e
parentd886306f48255fb4508b5186c17e6072f0f74826 (diff)
example: reduce example application run times in make check
Run various example applications for a shorter time when run through the scripts used by make check. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
-rwxr-xr-xexample/l3fwd/odp_l3fwd_run.sh2
-rwxr-xr-xexample/packet/pktio_run.sh8
-rwxr-xr-xexample/simple_pipeline/simple_pipeline_run.sh2
-rwxr-xr-xexample/switch/switch_run.sh2
-rw-r--r--platform/linux-generic/test/example/classifier/pktio_env2
5 files changed, 8 insertions, 8 deletions
diff --git a/example/l3fwd/odp_l3fwd_run.sh b/example/l3fwd/odp_l3fwd_run.sh
index 33ac2258d..89be1510f 100755
--- a/example/l3fwd/odp_l3fwd_run.sh
+++ b/example/l3fwd/odp_l3fwd_run.sh
@@ -16,7 +16,7 @@ fi
setup_interfaces
-./odp_l3fwd${EXEEXT} -i $IF0,$IF1 -r "10.0.0.0/24,$IF1" -d 30
+./odp_l3fwd${EXEEXT} -i $IF0,$IF1 -r "10.0.0.0/24,$IF1" -d 1
STATUS=$?
diff --git a/example/packet/pktio_run.sh b/example/packet/pktio_run.sh
index 8f9e6f7d3..33115b41f 100755
--- a/example/packet/pktio_run.sh
+++ b/example/packet/pktio_run.sh
@@ -17,7 +17,7 @@ fi
setup_interfaces
# burst mode
-./odp_pktio${EXEEXT} -i $IF1 -t 5 -m 0
+./odp_pktio${EXEEXT} -i $IF1 -t 1 -m 0
STATUS=$?
if [ ${STATUS} -ne 0 ]; then
echo "Error: status ${STATUS}"
@@ -28,7 +28,7 @@ validate_result
echo "Pass -m 0: status ${STATUS}"
# queue mode
-./odp_pktio${EXEEXT} -i $IF1 -t 5 -m 1
+./odp_pktio${EXEEXT} -i $IF1 -t 1 -m 1
STATUS=$?
if [ ${STATUS} -ne 0 ]; then
@@ -40,7 +40,7 @@ validate_result
echo "Pass -m 1: status ${STATUS}"
# sched/queue mode
-./odp_pktio${EXEEXT} -i $IF1 -t 5 -m 2
+./odp_pktio${EXEEXT} -i $IF1 -t 1 -m 2
STATUS=$?
if [ ${STATUS} -ne 0 ]; then
@@ -52,7 +52,7 @@ validate_result
echo "Pass -m 2: status ${STATUS}"
# cpu number option test 1
-./odp_pktio${EXEEXT} -i $IF1 -t 5 -m 0 -c 1
+./odp_pktio${EXEEXT} -i $IF1 -t 1 -m 0 -c 1
STATUS=$?
if [ ${STATUS} -ne 0 ]; then
diff --git a/example/simple_pipeline/simple_pipeline_run.sh b/example/simple_pipeline/simple_pipeline_run.sh
index 7d84df303..f9248c42d 100755
--- a/example/simple_pipeline/simple_pipeline_run.sh
+++ b/example/simple_pipeline/simple_pipeline_run.sh
@@ -24,7 +24,7 @@ fi
setup_interfaces
-./odp_simple_pipeline${EXEEXT} -i $IF0,$IF1 -e -t 2
+./odp_simple_pipeline${EXEEXT} -i $IF0,$IF1 -e -t 1 -a 1
STATUS=$?
if [ "$STATUS" -ne 0 ]; then
diff --git a/example/switch/switch_run.sh b/example/switch/switch_run.sh
index 3b6212239..489b17de5 100755
--- a/example/switch/switch_run.sh
+++ b/example/switch/switch_run.sh
@@ -18,7 +18,7 @@ fi
setup_interfaces
-./odp_switch${EXEEXT} -i $IF0,$IF1,$IF2,$IF3 -t 1
+./odp_switch${EXEEXT} -i $IF0,$IF1,$IF2,$IF3 -t 1 -a 1
STATUS=$?
if [ "$STATUS" -ne 0 ]; then
echo "Error: status was: $STATUS, expected 0"
diff --git a/platform/linux-generic/test/example/classifier/pktio_env b/platform/linux-generic/test/example/classifier/pktio_env
index 429fef9ae..eb8f2a80a 100644
--- a/platform/linux-generic/test/example/classifier/pktio_env
+++ b/platform/linux-generic/test/example/classifier/pktio_env
@@ -20,7 +20,7 @@ PCAP_IN=`find . ${TEST_DIR} $(dirname $0) -name udp64.pcap -print -quit`
echo "using PCAP in=${PCAP_IN}"
IF0=pcap:in=${PCAP_IN}
-TIME_OUT_VAL=10
+TIME_OUT_VAL=1
CPASS_COUNT_ARG1=100
CPASS_COUNT_ARG2=100