update make install when enable realtime test suite
PATCH 1/1 update make install when enable realtime test suite
Hi,
I was trying to enable --with-realtime-testsuite and run that. However, I had some issues with installing the realtime tests and problem with running testscripts/test_realtime.sh script. This patch resolves the problem I had.
/Anders
Anders Roxell (1):
realtime-testsuite: update the install rule
testcases/realtime/func/async_handler/Makefile | 1 + testcases/realtime/func/gtod_latency/Makefile | 1 + testcases/realtime/func/hrtimer-prio/Makefile | 1 + testcases/realtime/func/hrtimer-prio/run.sh | 12 ---------- testcases/realtime/func/hrtimer-prio/run_auto.sh | 10 +++++++++ testcases/realtime/func/matrix_mult/Makefile | 1 + testcases/realtime/func/measurement/Makefile | 1 + testcases/realtime/func/measurement/run.sh | 19 ---------------- testcases/realtime/func/measurement/run_auto.sh | 19 ++++++++++++++++ testcases/realtime/func/periodic_cpu_load/Makefile | 1 + testcases/realtime/func/pi-tests/Makefile | 1 + testcases/realtime/func/pi_perf/Makefile | 1 + testcases/realtime/func/prio-preempt/Makefile | 1 + testcases/realtime/func/prio-wake/Makefile | 1 + .../realtime/func/pthread_kill_latency/Makefile | 1 + testcases/realtime/func/rt-migrate/Makefile | 1 + testcases/realtime/func/sched_football/Makefile | 1 + testcases/realtime/func/sched_jitter/Makefile | 1 + testcases/realtime/func/sched_latency/Makefile | 1 + testcases/realtime/func/thread_clock/Makefile | 1 + testcases/realtime/perf/latency/Makefile | 1 + testcases/realtime/profiles/Makefile | 26 ++++++++++++++++++++++ testcases/realtime/run.sh | 16 ++++++++----- testcases/realtime/scripts/Makefile | 26 ++++++++++++++++++++++ testcases/realtime/scripts/run_c_files.sh | 7 ++++-- testscripts/test_realtime.sh | 18 +++++++++------ 26 files changed, 124 insertions(+), 46 deletions(-) delete mode 100644 testcases/realtime/func/hrtimer-prio/run.sh create mode 100644 testcases/realtime/func/hrtimer-prio/run_auto.sh delete mode 100644 testcases/realtime/func/measurement/run.sh create mode 100644 testcases/realtime/func/measurement/run_auto.sh create mode 100644 testcases/realtime/profiles/Makefile create mode 100644 testcases/realtime/scripts/Makefile
Signature · 13 lines
1.8.1.2 ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
PATCH 1/1 realtime-testsuite: update the install rule
func/*/Makefile: added INSTALL_TARGETSfunc/*/run.sh -> func/*/run_auto.sh to autorun those tests when running
the test_realtime.sh script.run.sh scripts/run_c_files.sh: if installed no need to rebuild tests testscritps/test_realtime.sh: remove java from the "all" target and
do not rebuild lib if running from installed path
New files, needed to run the realtime-testsuite from a installed path profiles/Makefile and scripts/Makefile
--- testcases/realtime/func/async_handler/Makefile | 1 + testcases/realtime/func/gtod_latency/Makefile | 1 + testcases/realtime/func/hrtimer-prio/Makefile | 1 + testcases/realtime/func/hrtimer-prio/run.sh | 12 ---------- testcases/realtime/func/hrtimer-prio/run_auto.sh | 10 +++++++++ testcases/realtime/func/matrix_mult/Makefile | 1 + testcases/realtime/func/measurement/Makefile | 1 + testcases/realtime/func/measurement/run.sh | 19 ---------------- testcases/realtime/func/measurement/run_auto.sh | 19 ++++++++++++++++ testcases/realtime/func/periodic_cpu_load/Makefile | 1 + testcases/realtime/func/pi-tests/Makefile | 1 + testcases/realtime/func/pi_perf/Makefile | 1 + testcases/realtime/func/prio-preempt/Makefile | 1 + testcases/realtime/func/prio-wake/Makefile | 1 + .../realtime/func/pthread_kill_latency/Makefile | 1 + testcases/realtime/func/rt-migrate/Makefile | 1 + testcases/realtime/func/sched_football/Makefile | 1 + testcases/realtime/func/sched_jitter/Makefile | 1 + testcases/realtime/func/sched_latency/Makefile | 1 + testcases/realtime/func/thread_clock/Makefile | 1 + testcases/realtime/perf/latency/Makefile | 1 + testcases/realtime/profiles/Makefile | 26 ++++++++++++++++++++++ testcases/realtime/run.sh | 16 ++++++++----- testcases/realtime/scripts/Makefile | 26 ++++++++++++++++++++++ testcases/realtime/scripts/run_c_files.sh | 7 ++++-- testscripts/test_realtime.sh | 18 +++++++++------ 26 files changed, 124 insertions(+), 46 deletions(-) delete mode 100644 testcases/realtime/func/hrtimer-prio/run.sh create mode 100644 testcases/realtime/func/hrtimer-prio/run_auto.sh delete mode 100644 testcases/realtime/func/measurement/run.sh create mode 100644 testcases/realtime/func/measurement/run_auto.sh create mode 100644 testcases/realtime/profiles/Makefile create mode 100644 testcases/realtime/scripts/Makefile
testcases/realtime/func/async_handler/Makefile +1 -0
@@ -22,6 +22,7 @@ top_srcdir ?= ../../../.. +INSTALL_TARGETS := run_auto.sh include $(top_srcdir)/include/mk/env_pre.mk include $(abs_srcdir)/../../config.mk include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/realtime/func/gtod_latency/Makefile +1 -0
@@ -22,6 +22,7 @@ top_srcdir ?= ../../../.. +INSTALL_TARGETS := run_auto.sh include $(top_srcdir)/include/mk/env_pre.mk include $(abs_srcdir)/../../config.mk include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/realtime/func/hrtimer-prio/Makefile +1 -0
@@ -22,6 +22,7 @@ top_srcdir ?= ../../../.. +INSTALL_TARGETS := run_auto.sh include $(top_srcdir)/include/mk/env_pre.mk include $(abs_srcdir)/../../config.mk include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/realtime/func/hrtimer-prio/run.sh deleted +0 -12
@@ -1,12 +0,0 @@ -#! /bin/bash - -if [ ! $SCRIPTS_DIR ]; then - # assume we're running standalone - export SCRIPTS_DIR=../../scripts/ -fi - -source $SCRIPTS_DIR/setenv.sh - -$SCRIPTS_DIR/run_c_files.sh "hrtimer-prio" - -
testcases/realtime/func/hrtimer-prio/run_auto.sh new file +10 -0
@@ -0,0 +1,10 @@ +#! /bin/bash + +if [ ! $SCRIPTS_DIR ]; then + # assume we're running standalone + export SCRIPTS_DIR=../../scripts/ +fi + +source $SCRIPTS_DIR/setenv.sh + +$SCRIPTS_DIR/run_c_files.sh "hrtimer-prio"
testcases/realtime/func/matrix_mult/Makefile +1 -0
@@ -22,6 +22,7 @@ top_srcdir ?= ../../../.. +INSTALL_TARGETS := run_auto.sh include $(top_srcdir)/include/mk/env_pre.mk include $(abs_srcdir)/../../config.mk include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/realtime/func/measurement/Makefile +1 -0
@@ -22,6 +22,7 @@ top_srcdir ?= ../../../.. +INSTALL_TARGETS := run_auto.sh include $(top_srcdir)/include/mk/env_pre.mk include $(abs_srcdir)/../../config.mk include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/realtime/func/measurement/run.sh deleted +0 -19
@@ -1,19 +0,0 @@ -#! /bin/bash - -if [ ! $SCRIPTS_DIR ]; then - # assume we're running standalone - export SCRIPTS_DIR=../../scripts/ -fi - -source $SCRIPTS_DIR/setenv.sh - - -# This is a temporary workaround for previous -# loop support patch which seems to be having -# issues right now. - -LOG_FILE="$LOG_DIR/$LOG_FORMAT-rdtsc-latency.log" -$SCRIPTS_DIR/run_c_files.sh "rdtsc-latency" - -LOG_FILE="$LOG_DIR/$LOG_FORMAT-preempt_timing.log" -$SCRIPTS_DIR/run_c_files.sh "preempt_timing"
testcases/realtime/func/measurement/run_auto.sh new file +19 -0
@@ -0,0 +1,19 @@ +#! /bin/bash + +if [ ! $SCRIPTS_DIR ]; then + # assume we're running standalone + export SCRIPTS_DIR=../../scripts/ +fi + +source $SCRIPTS_DIR/setenv.sh + + +# This is a temporary workaround for previous +# loop support patch which seems to be having +# issues right now. + +LOG_FILE="$LOG_DIR/$LOG_FORMAT-rdtsc-latency.log" +$SCRIPTS_DIR/run_c_files.sh "rdtsc-latency" + +LOG_FILE="$LOG_DIR/$LOG_FORMAT-preempt_timing.log" +$SCRIPTS_DIR/run_c_files.sh "preempt_timing"
testcases/realtime/func/periodic_cpu_load/Makefile +1 -0
@@ -22,6 +22,7 @@ top_srcdir ?= ../../../.. +INSTALL_TARGETS := run_auto.sh include $(top_srcdir)/include/mk/env_pre.mk include $(abs_srcdir)/../../config.mk include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/realtime/func/pi-tests/Makefile +1 -0
@@ -22,6 +22,7 @@ top_srcdir ?= ../../../.. +INSTALL_TARGETS := run_auto.sh parse-testpi1.py parse-testpi2.py include $(top_srcdir)/include/mk/env_pre.mk include $(abs_srcdir)/../../config.mk
testcases/realtime/func/pi_perf/Makefile +1 -0
@@ -22,6 +22,7 @@ top_srcdir ?= ../../../.. +INSTALL_TARGETS := run_auto.sh include $(top_srcdir)/include/mk/env_pre.mk include $(abs_srcdir)/../../config.mk include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/realtime/func/prio-preempt/Makefile +1 -0
@@ -22,6 +22,7 @@ top_srcdir ?= ../../../.. +INSTALL_TARGETS := run_auto.sh include $(top_srcdir)/include/mk/env_pre.mk include $(abs_srcdir)/../../config.mk include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/realtime/func/prio-wake/Makefile +1 -0
@@ -22,6 +22,7 @@ top_srcdir ?= ../../../.. +INSTALL_TARGETS := run_auto.sh include $(top_srcdir)/include/mk/env_pre.mk include $(abs_srcdir)/../../config.mk include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/realtime/func/pthread_kill_latency/Makefile +1 -0
@@ -22,6 +22,7 @@ top_srcdir ?= ../../../.. +INSTALL_TARGETS := run_auto.sh include $(top_srcdir)/include/mk/env_pre.mk include $(abs_srcdir)/../../config.mk include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/realtime/func/rt-migrate/Makefile +1 -0
@@ -22,6 +22,7 @@ top_srcdir ?= ../../../.. +INSTALL_TARGETS := run_auto.sh include $(top_srcdir)/include/mk/env_pre.mk include $(abs_srcdir)/../../config.mk include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/realtime/func/sched_football/Makefile +1 -0
@@ -22,6 +22,7 @@ top_srcdir ?= ../../../.. +INSTALL_TARGETS := run_auto.sh include $(top_srcdir)/include/mk/env_pre.mk include $(abs_srcdir)/../../config.mk include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/realtime/func/sched_jitter/Makefile +1 -0
@@ -22,6 +22,7 @@ top_srcdir ?= ../../../.. +INSTALL_TARGETS := run_auto.sh include $(top_srcdir)/include/mk/env_pre.mk include $(abs_srcdir)/../../config.mk include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/realtime/func/sched_latency/Makefile +1 -0
@@ -22,6 +22,7 @@ top_srcdir ?= ../../../.. +INSTALL_TARGETS := run_auto.sh include $(top_srcdir)/include/mk/env_pre.mk include $(abs_srcdir)/../../config.mk include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/realtime/func/thread_clock/Makefile +1 -0
@@ -22,6 +22,7 @@ top_srcdir ?= ../../../.. +INSTALL_TARGETS := run_auto.sh include $(top_srcdir)/include/mk/env_pre.mk include $(abs_srcdir)/../../config.mk include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/realtime/perf/latency/Makefile +1 -0
@@ -22,6 +22,7 @@ top_srcdir ?= ../../../.. +INSTALL_TARGETS := cpunoise.sh cpunoise2000.sh disknoise.sh run.sh include $(top_srcdir)/include/mk/env_pre.mk include $(abs_srcdir)/../../config.mk include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/realtime/profiles/Makefile new file +26 -0
@@ -0,0 +1,26 @@ +# +# realtime/profiles test suite Makefile. +# +# Copyright 2013 Linaro Limited +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# + +top_srcdir ?= ../../.. + +include $(top_srcdir)/include/mk/env_pre.mk +include $(abs_srcdir)/../config.mk +INSTALL_TARGETS := default +include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/realtime/run.sh +10 -6
@@ -185,12 +185,16 @@ if [ $# -lt 1 ]; then fi pushd $TESTS_DIR >/dev/null -#Only build the library, most of the tests depend upon. -#The Individual tests will be built, just before they run. -pushd lib -make -check_error make -popd +# if INSTALL_DIR != top_srcdir assume the individual tests are built and installed. +# So no need to build lib +if [[ -d lib ]]; then + #Only build the library, most of the tests depend upon. + #The Individual tests will be built, just before they run. + pushd lib + make + check_error make + popd +fi ISLOOP=0 index=0
testcases/realtime/scripts/Makefile new file +26 -0
@@ -0,0 +1,26 @@ +# +# realtime/scripts test suite Makefile. +# +# Copyright 2013 Linaro Limited +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# + +top_srcdir ?= ../../.. + +include $(top_srcdir)/include/mk/env_pre.mk +include $(abs_srcdir)/../config.mk +INSTALL_TARGETS := run_c_files.sh setenv.sh __init__.py parser.py +include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/realtime/scripts/run_c_files.sh +5 -2
@@ -20,8 +20,11 @@ profile_path=$PROFILES_DIR/$profile # Does profile exist? [ ! -f "$profile_path" ] && { echo >&2 "$0: Could not find profile ($profile_path)" ; exit 1 ; } -# Compile the test cases to support stand alone runs. -make +# if INSTALL_DIR != top_srcdir assume the individual tests are built and installed. +if [[ -f Makefile ]]; then + # Compile the test cases to support stand alone runs. + make +fi # Run the test case
testscripts/test_realtime.sh +11 -7
@@ -128,7 +128,7 @@ find_test() ;; all) # Run all tests which have run_auto.sh - TESTLIST="func stress java perf" + TESTLIST="func stress perf" ;; list) # This will only display subdirs which have run_auto.sh
@@ -176,12 +176,16 @@ if [ ! -e "logs" ]; then chmod -R 775 logs fi -#Only build the library, most of the tests depend upon. -#The Individual tests will be built, just before they run. -pushd lib -make -check_error make -popd +# if INSTALL_DIR != top_srcdir assume the individual tests are built and installed. +# So no need to build lib +if [[ -d lib ]]; then + #Only build the library, most of the tests depend upon. + #The Individual tests will be built, just before they run. + pushd lib + make + check_error make + popd +fi ISLOOP=0 index=0
Signature · 13 lines
1.8.1.2 ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
Ping
/Anders
Quoted 50 lines · Anders Roxell
Hi,
I was trying to enable --with-realtime-testsuite and run that. However, I had some issues with installing the realtime tests and problem with running
testscripts/test_realtime.shscript. This patch resolves the problem I had./Anders
Anders Roxell (1):
realtime-testsuite: update the install ruletestcases/realtime/func/async_handler/Makefile | 1 + testcases/realtime/func/gtod_latency/Makefile | 1 + testcases/realtime/func/hrtimer-prio/Makefile | 1 + testcases/realtime/func/hrtimer-prio/run.sh | 12 ---------- testcases/realtime/func/hrtimer-prio/run_auto.sh | 10 +++++++++ testcases/realtime/func/matrix_mult/Makefile | 1 + testcases/realtime/func/measurement/Makefile | 1 + testcases/realtime/func/measurement/run.sh | 19 ---------------- testcases/realtime/func/measurement/run_auto.sh | 19 ++++++++++++++++ testcases/realtime/func/periodic_cpu_load/Makefile | 1 + testcases/realtime/func/pi-tests/Makefile | 1 + testcases/realtime/func/pi_perf/Makefile | 1 + testcases/realtime/func/prio-preempt/Makefile | 1 + testcases/realtime/func/prio-wake/Makefile | 1 + .../realtime/func/pthread_kill_latency/Makefile | 1 + testcases/realtime/func/rt-migrate/Makefile | 1 + testcases/realtime/func/sched_football/Makefile | 1 + testcases/realtime/func/sched_jitter/Makefile | 1 + testcases/realtime/func/sched_latency/Makefile | 1 + testcases/realtime/func/thread_clock/Makefile | 1 + testcases/realtime/perf/latency/Makefile | 1 + testcases/realtime/profiles/Makefile | 26 ++++++++++++++++++++++ testcases/realtime/run.sh | 16 ++++++++----- testcases/realtime/scripts/Makefile | 26 ++++++++++++++++++++++ testcases/realtime/scripts/run_c_files.sh | 7 ++++-- testscripts/test_realtime.sh | 18 +++++++++------ 26 files changed, 124 insertions(+), 46 deletions(-) delete mode 100644 testcases/realtime/func/hrtimer-prio/run.sh create mode 100644 testcases/realtime/func/hrtimer-prio/run_auto.sh delete mode 100644 testcases/realtime/func/measurement/run.sh create mode 100644 testcases/realtime/func/measurement/run_auto.sh create mode 100644 testcases/realtime/profiles/Makefile create mode 100644 testcases/realtime/scripts/MakefileSignature · 1 line
1.8.1.2
Signature · 14 lines
Anders Roxell [email protected] M: +46 709 71 42 85 | IRC: roxell ------------------------------------------------------------------------------ Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
Re: [LTP] [PATCH] realtime-testsuite: update the install rule
In reply to Anders RoxellHi!
Quoted 9 lines
func/*/Makefile: added
INSTALL_TARGETSfunc/*/run.sh->func/*/run_auto.shto autorun those tests when running
thetest_realtime.shscript.run.shscripts/run_c_files.sh: if installed no need to rebuild teststestscritps/test_realtime.sh: remove java from the "all" target and
do not rebuild lib if running from installed pathNew files, needed to run the realtime-testsuite from a installed path profiles/Makefile and
scripts/Makefile
Generally it looks good.
Could you please split the changes into several smaller patches (one patch per fix) and write a bit more verbose descriptions?
Signature · 13 lines
Cyril Hrubis [email protected] ------------------------------------------------------------------------------ Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list