Message ID | 1473161367-28554-2-git-send-email-matias.elo@nokia.com |
---|---|
State | Superseded |
Headers | show |
On 09/06/16 14:29, Matias Elo wrote: > Signed-off-by: Matias Elo <matias.elo@nokia.com> > --- > test/common_plat/performance/Makefile.am | 1 + > .../performance/odp_sched_latency_run.sh | 29 ++++++++++++++++++++++ > 2 files changed, 30 insertions(+) > create mode 100755 test/common_plat/performance/odp_sched_latency_run.sh > > diff --git a/test/common_plat/performance/Makefile.am b/test/common_plat/performance/Makefile.am > index f5dd8dd..f184609 100644 > --- a/test/common_plat/performance/Makefile.am > +++ b/test/common_plat/performance/Makefile.am > @@ -9,6 +9,7 @@ COMPILE_ONLY = odp_l2fwd$(EXEEXT) \ > odp_scheduling$(EXEEXT) > > TESTSCRIPTS = odp_l2fwd_run.sh \ > + odp_sched_latency_run.sh \ > odp_scheduling_run.sh > > TEST_EXTENSIONS = .sh > diff --git a/test/common_plat/performance/odp_sched_latency_run.sh b/test/common_plat/performance/odp_sched_latency_run.sh > new file mode 100755 > index 0000000..f1b288a > --- /dev/null > +++ b/test/common_plat/performance/odp_sched_latency_run.sh > @@ -0,0 +1,29 @@ > +#!/bin/sh > +# > +# Copyright (c) 2016, Linaro Limited > +# All rights reserved. > +# > +# SPDX-License-Identifier: BSD-3-Clause > +# > +# Script that passes command line arguments to odp_sched_latency test when > +# launched by 'make check' > + > +TEST_DIR="${TEST_DIR:-$(dirname $0)}" > +ret=0 > +ALL=0 > + > +run() > +{ > + echo odp_sched_latency_run starts requesting $1 worker threads > + echo =============================================== > + > + $TEST_DIR/odp_sched_latency${EXEEXT} -c $1 || ret=1 maybe in all such scripts exit on first error? script || exit $? > +} > + > +run 1 > +run 5 > +run 8 > +run 11 > +run $ALL > + > +exit $ret
diff --git a/test/common_plat/performance/Makefile.am b/test/common_plat/performance/Makefile.am index f5dd8dd..f184609 100644 --- a/test/common_plat/performance/Makefile.am +++ b/test/common_plat/performance/Makefile.am @@ -9,6 +9,7 @@ COMPILE_ONLY = odp_l2fwd$(EXEEXT) \ odp_scheduling$(EXEEXT) TESTSCRIPTS = odp_l2fwd_run.sh \ + odp_sched_latency_run.sh \ odp_scheduling_run.sh TEST_EXTENSIONS = .sh diff --git a/test/common_plat/performance/odp_sched_latency_run.sh b/test/common_plat/performance/odp_sched_latency_run.sh new file mode 100755 index 0000000..f1b288a --- /dev/null +++ b/test/common_plat/performance/odp_sched_latency_run.sh @@ -0,0 +1,29 @@ +#!/bin/sh +# +# Copyright (c) 2016, Linaro Limited +# All rights reserved. +# +# SPDX-License-Identifier: BSD-3-Clause +# +# Script that passes command line arguments to odp_sched_latency test when +# launched by 'make check' + +TEST_DIR="${TEST_DIR:-$(dirname $0)}" +ret=0 +ALL=0 + +run() +{ + echo odp_sched_latency_run starts requesting $1 worker threads + echo =============================================== + + $TEST_DIR/odp_sched_latency${EXEEXT} -c $1 || ret=1 +} + +run 1 +run 5 +run 8 +run 11 +run $ALL + +exit $ret
Signed-off-by: Matias Elo <matias.elo@nokia.com> --- test/common_plat/performance/Makefile.am | 1 + .../performance/odp_sched_latency_run.sh | 29 ++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100755 test/common_plat/performance/odp_sched_latency_run.sh -- 2.7.4