aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorJanne Peltonen <janne.peltonen@nokia.com>2022-06-07 18:18:04 +0300
committerMatias Elo <matias.elo@nokia.com>2022-06-27 09:21:44 +0300
commitc98e170285f621853c4bb9935e5bd28e98bd84f2 (patch)
tree42e826289e54303a827b4dd3fcf7ea47b33c206d /example
parentc449f2dcbe6dc5dad278dd37eea7dcdc9c6c3d7c (diff)
example: timer_accuracy: shorten test time in make check
Run the timer accuracy example through a shell script in make check to use a shorter timer period and a reduced number of periods. This speeds up make check without really reducing test coverage since the accuracy result is not actually checked. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'example')
-rw-r--r--example/timer/Makefile.am4
-rwxr-xr-xexample/timer/odp_timer_accuracy_run.sh9
2 files changed, 12 insertions, 1 deletions
diff --git a/example/timer/Makefile.am b/example/timer/Makefile.am
index e4f50feaf..da85be233 100644
--- a/example/timer/Makefile.am
+++ b/example/timer/Makefile.am
@@ -11,8 +11,10 @@ odp_timer_simple_SOURCES = odp_timer_simple.c
odp_timer_test_SOURCES = odp_timer_test.c
if test_example
-TESTS = odp_timer_accuracy \
+TESTS = odp_timer_accuracy_run.sh \
odp_timer_simple
endif
+EXTRA_DIST = odp_timer_accuracy_run.sh
+
.NOTPARALLEL:
diff --git a/example/timer/odp_timer_accuracy_run.sh b/example/timer/odp_timer_accuracy_run.sh
new file mode 100755
index 000000000..3b29191c4
--- /dev/null
+++ b/example/timer/odp_timer_accuracy_run.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+#
+# Copyright (c) 2022, Nokia
+# All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+./odp_timer_accuracy${EXEEXT} -p 100000000 -n 10