diff options
author | Janne Peltonen <janne.peltonen@nokia.com> | 2022-01-27 12:15:42 +0200 |
---|---|---|
committer | Petri Savolainen <petri.savolainen@nokia.com> | 2022-02-03 13:12:27 +0200 |
commit | 9181b609a0dcbd6a96e8c79a77b69b1e751cf043 (patch) | |
tree | 22c2ac6499e36f763fedcf3814a64d418e90456e /example | |
parent | d886306f48255fb4508b5186c17e6072f0f74826 (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>
Diffstat (limited to 'example')
-rwxr-xr-x | example/l3fwd/odp_l3fwd_run.sh | 2 | ||||
-rwxr-xr-x | example/packet/pktio_run.sh | 8 | ||||
-rwxr-xr-x | example/simple_pipeline/simple_pipeline_run.sh | 2 | ||||
-rwxr-xr-x | example/switch/switch_run.sh | 2 |
4 files changed, 7 insertions, 7 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" |