diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-06-12 17:51:34 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-06-12 17:55:11 -0500 |
commit | 26f6c1278fd029ebfbee06dec64160dcfa61058e (patch) | |
tree | 3a969041bfbc0df3fecbc3ac042ac608ebda1a3e /sim-scripts | |
parent | b36e8a5dd053534ccabe0592a55e14a4e4513d0d (diff) |
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.
Diffstat (limited to 'sim-scripts')
-rwxr-xr-x | 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 |