[rtems-testing commit] gdb-sim-run.in: Add skip interrupt critical section tests option
Joel Sherrill
joel at rtems.org
Tue Jun 12 22:51:43 UTC 2012
Module: rtems-testing
Branch: master
Commit: 26f6c1278fd029ebfbee06dec64160dcfa61058e
Changeset: http://git.rtems.org/rtems-testing/commit/?id=26f6c1278fd029ebfbee06dec64160dcfa61058e
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Tue Jun 12 17:51:34 2012 -0500
gdb-sim-run.in: Add skip interrupt critical section tests option
This is the -S option. These take a long time to run and will never
produce any useful results if the BSP uses the IDLE Clock Tick
implementation.
---
sim-scripts/gdb-sim-run.in | 27 +++++++++++++++++++++------
1 files changed, 21 insertions(+), 6 deletions(-)
diff --git a/sim-scripts/gdb-sim-run.in b/sim-scripts/gdb-sim-run.in
index 51fad91..9da325d 100755
--- a/sim-scripts/gdb-sim-run.in
+++ b/sim-scripts/gdb-sim-run.in
@@ -87,6 +87,7 @@ doTrace="no"
enable_display_adapter="no"
enable_network="no"
rtems_test="no"
+skip_interrupt_critical_section_tests="no"
while getopts "vcCgGil:L:DsNT" OPT
do
@@ -102,6 +103,7 @@ do
l) defaultLimit="$OPTARG";;
L) logdir="$OPTARG";;
s) use_sysv_ipc="yes";;
+ S) skip_interrupt_critical_section_tests="yes";;
t) doTrace="yes";;
T) rtems_test="yes";;
*) fatal;;
@@ -135,6 +137,7 @@ bspNeedsTraceConversion="no"
bspRunsFailRandomly="no"
bspInputDevice=/dev/console
bspRedirectInput=no
+bspSkipInterruptCriticalSectionTests="no"
for v in 4.11 4.10 4.9 4.8 4.7 ""
do
@@ -410,16 +413,28 @@ do
## in batch mode, skip it.
case ${baseToRun} in
appstart*)
- warn "skipping intermediate file ${baseToRun}"
- continue
- ;;
+ warn "skipping intermediate file ${baseToRun}"
+ continue
+ ;;
*-node2*)
- fatal "MP tests not supported"
- warn "Skipping ${baseToRun}; 'runtest' runs both nodes when for *-node1"
- continue;;
+ fatal "MP tests not supported"
+ warn "Skipping ${baseToRun}; 'runtest' runs both nodes when for *-node1"
+ continue
+ ;;
*-node1*)
warn "Running both nodes associated with ${baseToRun}"
;;
+ spintr*|psxintr*)
+ if [ ${skip_interrupt_critical_section_tests} = "yes" -o \
+ ${bspSkipInterruptCriticalSectionTests} = "yes" ]; then
+ warn "Skipping interrupt critical section test ${baseToRun}"
+ continue
+ fi
+ ;;
+ fileio.*|termios.*)
+ warn "skipping interactive ${baseToRun}"
+ continue
+ ;;
pppd*)
warn "skipping long running ${baseToRun}"
continue
More information about the vc
mailing list