* [LTP] [PATCHv2 0/6] update make install when enable realtime test suite
@ 2013-08-05 19:02 Anders Roxell
2013-08-05 19:02 ` [LTP] [PATCH 1/6] realtime/(func|perf)/: rename run.sh to run_auto.sh Anders Roxell
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: Anders Roxell @ 2013-08-05 19:02 UTC (permalink / raw)
To: ltp-list; +Cc: patches
Hi,
Split up previous patch sent to this mailing list.
/Anders
Anders Roxell (6):
realtime/(func|perf)/: rename run.sh to run_auto.sh
added run_auto.sh to install targets for realtime tests
realtime tests: added additional install targets
realtime tests: created Makefiles for profiles/scripts
realtime: only build tests if needed
Remove reference to "java", missed in commit 78596957
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/perf/latency/run.sh | 45 --------------------
testcases/realtime/perf/latency/run_auto.sh | 45 ++++++++++++++++++++
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 +++++---
28 files changed, 169 insertions(+), 91 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
delete mode 100755 testcases/realtime/perf/latency/run.sh
create mode 100755 testcases/realtime/perf/latency/run_auto.sh
create mode 100644 testcases/realtime/profiles/Makefile
create mode 100644 testcases/realtime/scripts/Makefile
--
1.7.10.4
------------------------------------------------------------------------------
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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 8+ messages in thread
* [LTP] [PATCH 1/6] realtime/(func|perf)/: rename run.sh to run_auto.sh
2013-08-05 19:02 [LTP] [PATCHv2 0/6] update make install when enable realtime test suite Anders Roxell
@ 2013-08-05 19:02 ` Anders Roxell
2013-08-05 19:02 ` [LTP] [PATCH 2/6] added run_auto.sh to install targets for realtime tests Anders Roxell
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Anders Roxell @ 2013-08-05 19:02 UTC (permalink / raw)
To: ltp-list; +Cc: patches
Rename run.sh to run_auto.sh in accordance to all other func tests and
remove unnecessary whitespaces newlines at the end of file to prevent git
am warning.
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
testcases/realtime/func/hrtimer-prio/run.sh | 12 ------
testcases/realtime/func/hrtimer-prio/run_auto.sh | 10 +++++
testcases/realtime/func/measurement/run.sh | 19 ---------
testcases/realtime/func/measurement/run_auto.sh | 19 +++++++++
testcases/realtime/perf/latency/run.sh | 45 ----------------------
testcases/realtime/perf/latency/run_auto.sh | 45 ++++++++++++++++++++++
6 files changed, 74 insertions(+), 76 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
delete mode 100755 testcases/realtime/perf/latency/run.sh
create mode 100755 testcases/realtime/perf/latency/run_auto.sh
diff --git a/testcases/realtime/func/hrtimer-prio/run.sh b/testcases/realtime/func/hrtimer-prio/run.sh
deleted file mode 100644
index b45e76b..0000000
--- a/testcases/realtime/func/hrtimer-prio/run.sh
+++ /dev/null
@@ -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"
-
-
diff --git a/testcases/realtime/func/hrtimer-prio/run_auto.sh b/testcases/realtime/func/hrtimer-prio/run_auto.sh
new file mode 100644
index 0000000..366e746
--- /dev/null
+++ b/testcases/realtime/func/hrtimer-prio/run_auto.sh
@@ -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"
diff --git a/testcases/realtime/func/measurement/run.sh b/testcases/realtime/func/measurement/run.sh
deleted file mode 100644
index 3011964..0000000
--- a/testcases/realtime/func/measurement/run.sh
+++ /dev/null
@@ -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"
diff --git a/testcases/realtime/func/measurement/run_auto.sh b/testcases/realtime/func/measurement/run_auto.sh
new file mode 100644
index 0000000..3011964
--- /dev/null
+++ b/testcases/realtime/func/measurement/run_auto.sh
@@ -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"
diff --git a/testcases/realtime/perf/latency/run.sh b/testcases/realtime/perf/latency/run.sh
deleted file mode 100755
index 2c0d203..0000000
--- a/testcases/realtime/perf/latency/run.sh
+++ /dev/null
@@ -1,45 +0,0 @@
-#! /bin/bash
-
-if [ ! $SCRIPTS_DIR ]; then
- # assume we're running standalone
- export SCRIPTS_DIR=../../scripts/
-fi
-
-source $SCRIPTS_DIR/setenv.sh
-LOG_FILE="$LOG_DIR/$LOG_FORMAT-pthread_cond_many.log"
-
-echo -e "Logging to: " | tee -a $LOG_FILE
-echo -e "$LOG_FILE " | tee -a $LOG_FILE
-echo -e "and to local individual .out files " | tee -a $LOG_FILE
-
-#
-# make will eventually go away from here, as will the above echoes
-#
-make
-
-#
-# Test lots of threads. Specify "--realtime" if you want the first
-# process to run realtime. The remainder of the processes (if any)
-# will run non-realtime in any case.
-
-nthread=5000
-iter=400
-nproc=5
-
-echo -e "pthread_cond_many configuration:" | tee -a $LOG_FILE
-echo -e "number of threads = $nthread " | tee -a $LOG_FILE
-echo -e "number of iterations = $iter " | tee -a $LOG_FILE
-echo -e "number of processes = $nproc " | tee -a $LOG_FILE
-
-# Remove any existing local log files
-rm -f $nthread.$iter.$nproc.*.out
-
-i=0
-./pthread_cond_many --realtime --broadcast -i $iter -n $nthread > $nthread.$iter.$nproc.$i.out &
-i=1
-while test $i -lt $nproc
-do
- ./pthread_cond_many --broadcast -i $iter -n $nthread > $nthread.$iter.$nproc.$i.out &
- i=`expr $i + 1`
-done
-wait
diff --git a/testcases/realtime/perf/latency/run_auto.sh b/testcases/realtime/perf/latency/run_auto.sh
new file mode 100755
index 0000000..2c0d203
--- /dev/null
+++ b/testcases/realtime/perf/latency/run_auto.sh
@@ -0,0 +1,45 @@
+#! /bin/bash
+
+if [ ! $SCRIPTS_DIR ]; then
+ # assume we're running standalone
+ export SCRIPTS_DIR=../../scripts/
+fi
+
+source $SCRIPTS_DIR/setenv.sh
+LOG_FILE="$LOG_DIR/$LOG_FORMAT-pthread_cond_many.log"
+
+echo -e "Logging to: " | tee -a $LOG_FILE
+echo -e "$LOG_FILE " | tee -a $LOG_FILE
+echo -e "and to local individual .out files " | tee -a $LOG_FILE
+
+#
+# make will eventually go away from here, as will the above echoes
+#
+make
+
+#
+# Test lots of threads. Specify "--realtime" if you want the first
+# process to run realtime. The remainder of the processes (if any)
+# will run non-realtime in any case.
+
+nthread=5000
+iter=400
+nproc=5
+
+echo -e "pthread_cond_many configuration:" | tee -a $LOG_FILE
+echo -e "number of threads = $nthread " | tee -a $LOG_FILE
+echo -e "number of iterations = $iter " | tee -a $LOG_FILE
+echo -e "number of processes = $nproc " | tee -a $LOG_FILE
+
+# Remove any existing local log files
+rm -f $nthread.$iter.$nproc.*.out
+
+i=0
+./pthread_cond_many --realtime --broadcast -i $iter -n $nthread > $nthread.$iter.$nproc.$i.out &
+i=1
+while test $i -lt $nproc
+do
+ ./pthread_cond_many --broadcast -i $iter -n $nthread > $nthread.$iter.$nproc.$i.out &
+ i=`expr $i + 1`
+done
+wait
--
1.7.10.4
------------------------------------------------------------------------------
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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [LTP] [PATCH 2/6] added run_auto.sh to install targets for realtime tests
2013-08-05 19:02 [LTP] [PATCHv2 0/6] update make install when enable realtime test suite Anders Roxell
2013-08-05 19:02 ` [LTP] [PATCH 1/6] realtime/(func|perf)/: rename run.sh to run_auto.sh Anders Roxell
@ 2013-08-05 19:02 ` Anders Roxell
2013-08-05 19:02 ` [LTP] [PATCH 3/6] realtime tests: added additional install targets Anders Roxell
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Anders Roxell @ 2013-08-05 19:02 UTC (permalink / raw)
To: ltp-list; +Cc: patches
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
testcases/realtime/func/async_handler/Makefile | 1 +
testcases/realtime/func/gtod_latency/Makefile | 1 +
testcases/realtime/func/hrtimer-prio/Makefile | 1 +
testcases/realtime/func/matrix_mult/Makefile | 1 +
testcases/realtime/func/measurement/Makefile | 1 +
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 +
testcases/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 +
17 files changed, 17 insertions(+)
diff --git a/testcases/realtime/func/async_handler/Makefile b/testcases/realtime/func/async_handler/Makefile
index faf4fa9..f334cfa 100644
--- a/testcases/realtime/func/async_handler/Makefile
+++ b/testcases/realtime/func/async_handler/Makefile
@@ -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
diff --git a/testcases/realtime/func/gtod_latency/Makefile b/testcases/realtime/func/gtod_latency/Makefile
index bd67ed6..89d82c9 100644
--- a/testcases/realtime/func/gtod_latency/Makefile
+++ b/testcases/realtime/func/gtod_latency/Makefile
@@ -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
diff --git a/testcases/realtime/func/hrtimer-prio/Makefile b/testcases/realtime/func/hrtimer-prio/Makefile
index 0a1872c..d294ee2 100644
--- a/testcases/realtime/func/hrtimer-prio/Makefile
+++ b/testcases/realtime/func/hrtimer-prio/Makefile
@@ -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
diff --git a/testcases/realtime/func/matrix_mult/Makefile b/testcases/realtime/func/matrix_mult/Makefile
index c19cad1..3d89133 100644
--- a/testcases/realtime/func/matrix_mult/Makefile
+++ b/testcases/realtime/func/matrix_mult/Makefile
@@ -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
diff --git a/testcases/realtime/func/measurement/Makefile b/testcases/realtime/func/measurement/Makefile
index fdad2c5..36343e9 100644
--- a/testcases/realtime/func/measurement/Makefile
+++ b/testcases/realtime/func/measurement/Makefile
@@ -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
diff --git a/testcases/realtime/func/periodic_cpu_load/Makefile b/testcases/realtime/func/periodic_cpu_load/Makefile
index 275eb06..e7ec8fc 100644
--- a/testcases/realtime/func/periodic_cpu_load/Makefile
+++ b/testcases/realtime/func/periodic_cpu_load/Makefile
@@ -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
diff --git a/testcases/realtime/func/pi-tests/Makefile b/testcases/realtime/func/pi-tests/Makefile
index eb9cca3..5273952 100644
--- a/testcases/realtime/func/pi-tests/Makefile
+++ b/testcases/realtime/func/pi-tests/Makefile
@@ -22,6 +22,7 @@
top_srcdir ?= ../../../..
+INSTALL_TARGETS := run_auto.sh
include $(top_srcdir)/include/mk/env_pre.mk
include $(abs_srcdir)/../../config.mk
diff --git a/testcases/realtime/func/pi_perf/Makefile b/testcases/realtime/func/pi_perf/Makefile
index fbceaba..196fca8 100644
--- a/testcases/realtime/func/pi_perf/Makefile
+++ b/testcases/realtime/func/pi_perf/Makefile
@@ -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
diff --git a/testcases/realtime/func/prio-preempt/Makefile b/testcases/realtime/func/prio-preempt/Makefile
index 6da3504..b4c0b2e 100644
--- a/testcases/realtime/func/prio-preempt/Makefile
+++ b/testcases/realtime/func/prio-preempt/Makefile
@@ -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
diff --git a/testcases/realtime/func/prio-wake/Makefile b/testcases/realtime/func/prio-wake/Makefile
index 256f5fb..6cea976 100644
--- a/testcases/realtime/func/prio-wake/Makefile
+++ b/testcases/realtime/func/prio-wake/Makefile
@@ -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
diff --git a/testcases/realtime/func/pthread_kill_latency/Makefile b/testcases/realtime/func/pthread_kill_latency/Makefile
index b07d8de..fd3a059 100644
--- a/testcases/realtime/func/pthread_kill_latency/Makefile
+++ b/testcases/realtime/func/pthread_kill_latency/Makefile
@@ -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
diff --git a/testcases/realtime/func/rt-migrate/Makefile b/testcases/realtime/func/rt-migrate/Makefile
index b48f48a..ae4f610 100644
--- a/testcases/realtime/func/rt-migrate/Makefile
+++ b/testcases/realtime/func/rt-migrate/Makefile
@@ -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
diff --git a/testcases/realtime/func/sched_football/Makefile b/testcases/realtime/func/sched_football/Makefile
index 1b2a480..a5117fd 100644
--- a/testcases/realtime/func/sched_football/Makefile
+++ b/testcases/realtime/func/sched_football/Makefile
@@ -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
diff --git a/testcases/realtime/func/sched_jitter/Makefile b/testcases/realtime/func/sched_jitter/Makefile
index 95bc9a9..827a0db 100644
--- a/testcases/realtime/func/sched_jitter/Makefile
+++ b/testcases/realtime/func/sched_jitter/Makefile
@@ -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
diff --git a/testcases/realtime/func/sched_latency/Makefile b/testcases/realtime/func/sched_latency/Makefile
index 564d42f..b7327df 100644
--- a/testcases/realtime/func/sched_latency/Makefile
+++ b/testcases/realtime/func/sched_latency/Makefile
@@ -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
diff --git a/testcases/realtime/func/thread_clock/Makefile b/testcases/realtime/func/thread_clock/Makefile
index b94b897..5cac451 100644
--- a/testcases/realtime/func/thread_clock/Makefile
+++ b/testcases/realtime/func/thread_clock/Makefile
@@ -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
diff --git a/testcases/realtime/perf/latency/Makefile b/testcases/realtime/perf/latency/Makefile
index 6b1ad58..eea054d 100644
--- a/testcases/realtime/perf/latency/Makefile
+++ b/testcases/realtime/perf/latency/Makefile
@@ -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
--
1.7.10.4
------------------------------------------------------------------------------
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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [LTP] [PATCH 3/6] realtime tests: added additional install targets
2013-08-05 19:02 [LTP] [PATCHv2 0/6] update make install when enable realtime test suite Anders Roxell
2013-08-05 19:02 ` [LTP] [PATCH 1/6] realtime/(func|perf)/: rename run.sh to run_auto.sh Anders Roxell
2013-08-05 19:02 ` [LTP] [PATCH 2/6] added run_auto.sh to install targets for realtime tests Anders Roxell
@ 2013-08-05 19:02 ` Anders Roxell
2013-08-05 19:02 ` [LTP] [PATCH 4/6] realtime tests: created Makefiles for profiles/scripts Anders Roxell
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Anders Roxell @ 2013-08-05 19:02 UTC (permalink / raw)
To: ltp-list; +Cc: patches
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
testcases/realtime/func/pi-tests/Makefile | 2 +-
testcases/realtime/perf/latency/Makefile | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/testcases/realtime/func/pi-tests/Makefile b/testcases/realtime/func/pi-tests/Makefile
index 5273952..7a7a57a 100644
--- a/testcases/realtime/func/pi-tests/Makefile
+++ b/testcases/realtime/func/pi-tests/Makefile
@@ -22,7 +22,7 @@
top_srcdir ?= ../../../..
-INSTALL_TARGETS := run_auto.sh
+INSTALL_TARGETS := run_auto.sh parse-testpi1.py parse-testpi2.py
include $(top_srcdir)/include/mk/env_pre.mk
include $(abs_srcdir)/../../config.mk
diff --git a/testcases/realtime/perf/latency/Makefile b/testcases/realtime/perf/latency/Makefile
index eea054d..e8f3345 100644
--- a/testcases/realtime/perf/latency/Makefile
+++ b/testcases/realtime/perf/latency/Makefile
@@ -22,7 +22,7 @@
top_srcdir ?= ../../../..
-INSTALL_TARGETS := run_auto.sh
+INSTALL_TARGETS := run_auto.sh cpunoise.sh cpunoise2000.sh disknoise.sh
include $(top_srcdir)/include/mk/env_pre.mk
include $(abs_srcdir)/../../config.mk
include $(top_srcdir)/include/mk/generic_leaf_target.mk
--
1.7.10.4
------------------------------------------------------------------------------
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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [LTP] [PATCH 4/6] realtime tests: created Makefiles for profiles/scripts
2013-08-05 19:02 [LTP] [PATCHv2 0/6] update make install when enable realtime test suite Anders Roxell
` (2 preceding siblings ...)
2013-08-05 19:02 ` [LTP] [PATCH 3/6] realtime tests: added additional install targets Anders Roxell
@ 2013-08-05 19:02 ` Anders Roxell
2013-08-05 19:02 ` [LTP] [PATCH 5/6] realtime: only build tests if needed Anders Roxell
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Anders Roxell @ 2013-08-05 19:02 UTC (permalink / raw)
To: ltp-list; +Cc: patches
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
testcases/realtime/profiles/Makefile | 26 ++++++++++++++++++++++++++
testcases/realtime/scripts/Makefile | 26 ++++++++++++++++++++++++++
2 files changed, 52 insertions(+)
create mode 100644 testcases/realtime/profiles/Makefile
create mode 100644 testcases/realtime/scripts/Makefile
diff --git a/testcases/realtime/profiles/Makefile b/testcases/realtime/profiles/Makefile
new file mode 100644
index 0000000..c231f31
--- /dev/null
+++ b/testcases/realtime/profiles/Makefile
@@ -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
diff --git a/testcases/realtime/scripts/Makefile b/testcases/realtime/scripts/Makefile
new file mode 100644
index 0000000..28bf88e
--- /dev/null
+++ b/testcases/realtime/scripts/Makefile
@@ -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
--
1.7.10.4
------------------------------------------------------------------------------
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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [LTP] [PATCH 5/6] realtime: only build tests if needed
2013-08-05 19:02 [LTP] [PATCHv2 0/6] update make install when enable realtime test suite Anders Roxell
` (3 preceding siblings ...)
2013-08-05 19:02 ` [LTP] [PATCH 4/6] realtime tests: created Makefiles for profiles/scripts Anders Roxell
@ 2013-08-05 19:02 ` Anders Roxell
2013-08-05 19:02 ` [LTP] [PATCH 6/6] Remove reference to "java", missed in commit 78596957 Anders Roxell
2013-08-06 1:11 ` [LTP] [PATCHv2 0/6] update make install when enable realtime test suite Wanlong Gao
6 siblings, 0 replies; 8+ messages in thread
From: Anders Roxell @ 2013-08-05 19:02 UTC (permalink / raw)
To: ltp-list; +Cc: patches
stand alone run scripts can not build from the installed directory.
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
testcases/realtime/run.sh | 16 ++++++++++------
testcases/realtime/scripts/run_c_files.sh | 7 +++++--
testscripts/test_realtime.sh | 16 ++++++++++------
3 files changed, 25 insertions(+), 14 deletions(-)
diff --git a/testcases/realtime/run.sh b/testcases/realtime/run.sh
index 77e8d68..a66e4e5 100755
--- a/testcases/realtime/run.sh
+++ b/testcases/realtime/run.sh
@@ -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
diff --git a/testcases/realtime/scripts/run_c_files.sh b/testcases/realtime/scripts/run_c_files.sh
index 3ab52ec..6e73f38 100755
--- a/testcases/realtime/scripts/run_c_files.sh
+++ b/testcases/realtime/scripts/run_c_files.sh
@@ -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
diff --git a/testscripts/test_realtime.sh b/testscripts/test_realtime.sh
index 22c3692..ad5075f 100755
--- a/testscripts/test_realtime.sh
+++ b/testscripts/test_realtime.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
--
1.7.10.4
------------------------------------------------------------------------------
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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [LTP] [PATCH 6/6] Remove reference to "java", missed in commit 78596957
2013-08-05 19:02 [LTP] [PATCHv2 0/6] update make install when enable realtime test suite Anders Roxell
` (4 preceding siblings ...)
2013-08-05 19:02 ` [LTP] [PATCH 5/6] realtime: only build tests if needed Anders Roxell
@ 2013-08-05 19:02 ` Anders Roxell
2013-08-06 1:11 ` [LTP] [PATCHv2 0/6] update make install when enable realtime test suite Wanlong Gao
6 siblings, 0 replies; 8+ messages in thread
From: Anders Roxell @ 2013-08-05 19:02 UTC (permalink / raw)
To: ltp-list; +Cc: patches
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
testscripts/test_realtime.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testscripts/test_realtime.sh b/testscripts/test_realtime.sh
index ad5075f..0d424fc 100755
--- a/testscripts/test_realtime.sh
+++ b/testscripts/test_realtime.sh
@@ -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
--
1.7.10.4
------------------------------------------------------------------------------
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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [LTP] [PATCHv2 0/6] update make install when enable realtime test suite
2013-08-05 19:02 [LTP] [PATCHv2 0/6] update make install when enable realtime test suite Anders Roxell
` (5 preceding siblings ...)
2013-08-05 19:02 ` [LTP] [PATCH 6/6] Remove reference to "java", missed in commit 78596957 Anders Roxell
@ 2013-08-06 1:11 ` Wanlong Gao
6 siblings, 0 replies; 8+ messages in thread
From: Wanlong Gao @ 2013-08-06 1:11 UTC (permalink / raw)
To: Anders Roxell; +Cc: ltp-list, patches
On 08/06/2013 03:02 AM, Anders Roxell wrote:
> Hi,
>
> Split up previous patch sent to this mailing list.
Applied this version, thank you.
Wanlong Gao
>
> /Anders
------------------------------------------------------------------------------
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=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-08-06 1:11 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-05 19:02 [LTP] [PATCHv2 0/6] update make install when enable realtime test suite Anders Roxell
2013-08-05 19:02 ` [LTP] [PATCH 1/6] realtime/(func|perf)/: rename run.sh to run_auto.sh Anders Roxell
2013-08-05 19:02 ` [LTP] [PATCH 2/6] added run_auto.sh to install targets for realtime tests Anders Roxell
2013-08-05 19:02 ` [LTP] [PATCH 3/6] realtime tests: added additional install targets Anders Roxell
2013-08-05 19:02 ` [LTP] [PATCH 4/6] realtime tests: created Makefiles for profiles/scripts Anders Roxell
2013-08-05 19:02 ` [LTP] [PATCH 5/6] realtime: only build tests if needed Anders Roxell
2013-08-05 19:02 ` [LTP] [PATCH 6/6] Remove reference to "java", missed in commit 78596957 Anders Roxell
2013-08-06 1:11 ` [LTP] [PATCHv2 0/6] update make install when enable realtime test suite Wanlong Gao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox