On Thu, Mar 5, 2015 at 6:09 AM, Petri Savolainen <petri.savolai...@nokia.com > wrote:
> The scheduling test launches a thread per cpu by default, > which results several minute run time when system cpu count > is high. > > Added a script for 'make check', which passes worker thread > count as command line argument to the test. Test does now two > runs: one with 1 thread and second with max 8 threads. > > Signed-off-by: Petri Savolainen <petri.savolai...@nokia.com> > Reviewed-by: Bill Fischofer <bill.fischo...@linaro.org> > --- > test/performance/Makefile.am | 11 +++++++++-- > test/performance/odp_scheduling_run | 15 +++++++++++++++ > 2 files changed, 24 insertions(+), 2 deletions(-) > create mode 100755 test/performance/odp_scheduling_run > > diff --git a/test/performance/Makefile.am b/test/performance/Makefile.am > index 4378268..3be3721 100644 > --- a/test/performance/Makefile.am > +++ b/test/performance/Makefile.am > @@ -1,10 +1,17 @@ > include $(top_srcdir)/test/Makefile.inc > > +EXECUTABLES = > + > +COMPILE_ONLY = odp_scheduling > + > +TESTSCRIPTS = odp_scheduling_run > + > if test_perf > -TESTS = odp_scheduling > +TESTS = $(EXECUTABLES) $(TESTSCRIPTS) > endif > > -bin_PROGRAMS = odp_scheduling > +bin_PROGRAMS = $(EXECUTABLES) $(COMPILE_ONLY) > + > odp_scheduling_LDFLAGS = $(AM_LDFLAGS) -static > odp_scheduling_CFLAGS = $(AM_CFLAGS) -I${top_srcdir}/test > > diff --git a/test/performance/odp_scheduling_run > b/test/performance/odp_scheduling_run > new file mode 100755 > index 0000000..28b0ce5 > --- /dev/null > +++ b/test/performance/odp_scheduling_run > @@ -0,0 +1,15 @@ > +#!/bin/sh > +# > +# Script that passes command line arguments to odp_scheduling test when > +# launched by 'make check' > + > +run() > +{ > + echo odp_scheduling_run starts with $1 worker threads > + echo =============================================== > + > + ./odp_scheduling -c $1 > +} > + > +run 1 > +run 8 > -- > 2.3.1 > > > _______________________________________________ > lng-odp mailing list > lng-odp@lists.linaro.org > http://lists.linaro.org/mailman/listinfo/lng-odp >
_______________________________________________ lng-odp mailing list lng-odp@lists.linaro.org http://lists.linaro.org/mailman/listinfo/lng-odp