aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Uvarov <maxim.uvarov@linaro.org>2017-06-14 16:50:13 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2017-06-16 17:01:11 +0300
commitb5f5510a9751ad60915f5b9fcf8763a97f77b5ab (patch)
tree42df6dda6f5a6b4ce01f66975ac4c1b8000891f0
parent79ed8c746ba13233c111a61d2d4f17e360dd8023 (diff)
test: l2fwd pass under coverage
env variable TEST=coverage is set, use it to not fail under gcov run which is really slow. Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>
-rwxr-xr-xtest/common_plat/performance/odp_l2fwd_run.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/common_plat/performance/odp_l2fwd_run.sh b/test/common_plat/performance/odp_l2fwd_run.sh
index dd42ede97..6871e4b07 100755
--- a/test/common_plat/performance/odp_l2fwd_run.sh
+++ b/test/common_plat/performance/odp_l2fwd_run.sh
@@ -96,6 +96,9 @@ run_l2fwd()
ret=1
elif [ $ret -eq 0 ]; then
PASS_PPS=5000
+ if [ "${TEST}" = "coverage" ]; then
+ PASS_PPS=10
+ fi
MAX_PPS=$(awk '/TEST RESULT/ {print $3}' $LOG)
if [ "$MAX_PPS" -lt "$PASS_PPS" ]; then
echo "FAIL: pps below threshold $MAX_PPS < $PASS_PPS"