simulator tests: Fix test setup to tolerate very busy or slow host systems

Adjust the RUNLIMIT to specify instructions instead of wall clock time.

On an unfettered system, the sel32 test completes after some 588 million
instructions.  On a slow host system, the system clock tick processing will
add to the total instructions executed.  Increase the limit to 750 million
instructions.
This commit is contained in:
Mark Pizzolato 2022-11-12 17:23:41 -10:00 committed by Paul Koning
parent 756ac0d2a1
commit 6c398df0ae
5 changed files with 7 additions and 7 deletions

View file

@ -14,7 +14,7 @@ set mt debug=cmd;data;detail;exp
set dsk debug=cmd;data;detail;exp
:: Limit maximum diagnostic execution time
runlimit 2 minutes
runlimit 50M instructions
set on
on error ignore
on runtime echof "\r\n*** Test Runtime Limit %SIM_RUNLIMIT% %SIM_RUNLIMIT_UNITS% Exceeded ***\r\n"; exit 1

View file

@ -9,7 +9,7 @@ set cpu eae
cd %~p0
:: Limit maximum diagnostic execution time
::
set runlimit 2 minutes
set runlimit 10M instructions
set on
on error ignore
on runtime echof "\r\n*** Test Runtime Limit %SIM_RUNLIMIT% %SIM_RUNLIMIT_UNITS% Exceeded ***\n"; exit 1

View file

@ -7,7 +7,7 @@
cd %~p0
:: Limit maximum diagnostic execution time
runlimit 2 minutes
runlimit 1500M instructions
set on
on error ignore
on runtime echof "\r\n*** Test Runtime Limit %SIM_RUNLIMIT% %SIM_RUNLIMIT_UNITS% Exceeded ***\n"; exit 1

View file

@ -23,7 +23,7 @@ set env HOST=sel32
;======================================================
;
; Set run limit of 2 minutes
set runlimit 2 minutes
set runlimit 750M instructions
set on
on error ignore
on runtime echof "\r\n*** FAILED - SEL32 Test Runtime Limit %SIM_RUNLIMIT% %SIM_RUNLIMIT_UNITS% Exceeded ***\n"; exit 1

View file

@ -18,7 +18,7 @@
#set cpu hist=20000
#break A3B4 SHOW HIST=40
cd %~p0
set runlimit 2 minutes
set runlimit 600M instructions
set on
on error ignore
on runtime echof "\r\n*** Test Runtime Limit %SIM_RUNLIMIT% %SIM_RUNLIMIT_UNITS% Exceeded ***\n"; exit 1
@ -125,7 +125,7 @@ expect "DS> " send "ATTACH KA820 HUB KA0 4096 0\r"; go -q
expect "DS> " send "ATTACH DWBUA HUB DW0 4 5\r"; go -q
# VAX 8200 simulates the floating point accelerator which then
# inspires tests to use it. This takes more time.
set runlimit 3 minutes
set runlimit 600M instructions # Override prior runlimit
call Common
call do_test EVKAB "VAX Basic Instructions Exerciser"
call do_test EVKAC "VAX Floating Point Instructions Exerciser"