aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@nokia.com>2015-03-05 14:09:04 +0200
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-03-10 16:52:54 +0300
commitf5bb785d10335048bac8fe583962fe3b0dbd8cb2 (patch)
tree8caa7a081a86253bf5d6c844b23d1e3f8a17f68e /test
parentd9860f351b2d80ed15648880e6a8d45917d9ced9 (diff)
validation: odp_scheduling: limit worker thread count
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.savolainen@nokia.com> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'test')
-rw-r--r--test/performance/Makefile.am11
-rwxr-xr-xtest/performance/odp_scheduling_run15
2 files changed, 24 insertions, 2 deletions
diff --git a/test/performance/Makefile.am b/test/performance/Makefile.am
index 4378268b8..3be3721e6 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 000000000..28b0ce58e
--- /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