This chapter describes how the RVM is tested: the principle (native
ooRexx is the oracle), the suites under ../tests/ and the smoke test
under ../smoke/, the
oracles and fuzzers, the census of the official ooRexx test suite with
its accepted divergences, and the quick and full checks. It assumes the
overview (01); which suites to run for
which change is in 20.
Native ooRexx is the oracle. Every test is
differential: a program runs on native ooRexx 5 (rexx) and
on the RVM, and the RVM passes when its standard output, its standard
error and its exit code are byte for byte native's (20). There are
no hand-written expected outputs except where the RVM differs from
native on purpose (17): those few cases
carry an expected file that replaces native's output (see Deliberate deviations).
Two hosts, one R-code. The JavaScript host is judged
in two ways: against native, like the ooRexx host, and against the
ooRexx host on the same R-code file (rvm.rex -l
compiles once, both machines run the result). The second comparison
isolates the port: any difference is a difference between the two
machines, not of the compiler.
Several layers. No single suite covers everything:
| Layer | What it judges | Cost |
|---|---|---|
| The smoke test | Every R-code instruction, section and error code the suites use, on both hosts, against saved native output | minutes |
| Fixed end-to-end cases (Classic, OO, external routines, caches, interactive trace) | Behaviour chosen by hand, often the regression of a fix; stderr text and TRACE output included | seconds to minutes per suite; the OO suite whole is long |
| Fuzzers | Random programs in an area (arithmetic conversions, PARSE, CALL, SIGNAL, EXPOSE, TRACE, string BIFs, collections, interactive trace) | minutes per seed |
| The ooTest census | The official ooRexx test suite, group by group | about 20 minutes |
The official ooRexx test suite (ooTest) covers most of the language functionally: arithmetic and expressions, PARSE, every built-in function, the instructions (CALL, SIGNAL, DO/LOOP, SELECT, EXPOSE, INTERPRET, NUMERIC, TRACE objects...), String and MutableBuffer, the classes and collections, and the libraries (REXXUTIL, rxregexp, rxmath, rxsock, hostemu, json, rxqueue). It does not cover, or covers only sideways:
| Not in ooTest | Covered by |
|---|---|
The text of standard error: error reports
(Error 40.x running ... line N), tracebacks, the clause
shown. ooTest checks condition codes, not reports. |
Classic e2e, OO e2e (the err, raise-,
pre-tb- families), smoke |
The TRACE output line by line (*-*,
>V>, indentation, INTERPRET traced) |
Classic e2e, the TRACE fuzzer |
Interactive trace (TRACE ? with typed input) |
debug/ |
| Combinations nobody wrote (unusual NUMERIC settings, nested CALL/SIGNAL, PARSE templates, EXPOSE lists, collection operation sequences) | the fuzzers |
What exists only in the RVM: the .rcode caches and
their header, R-code-only external routines and the search order,
rvm -l/-s, RVM_CLOCK=virtual, the
same R-code on both hosts |
cache/, ext/, the JS-vs-ooRexx
comparisons |
| Deterministic concurrency and UNINIT order (native is not deterministic, so ooTest cannot fix them) | OO e2e (conc-, sem-, alarm-,
uninit-) |
| The ooRexx host itself: the census normally runs the JS host | Classic e2e, OO e2e, smoke |
bin/modules/rvm/
smoke/ smoke.rex, astcheck.rex, smoke-select.py, cases/
tests/
check.sh the quick and the full check
env.sh common settings (sourced)
e2e/ e2e.sh, cases/ Classic end-to-end
oo/ oo-e2e.sh, cases/ object-oriented end-to-end
ext/ ext.sh, cases/ external routines
cache/ cache-test.sh .rcode caches
fuzz/ oracle.rex, make-oracle*.sh, Classic fuzzers; oo/: OO fuzzers
debug/ debug-run.sh, cases/, fuzz-debug.py interactive trace
ootest/ census.sh and its tools; the reference census
Needed on the PATH: ooRexx 5 (rexx),
Node.js 22 or later (node), Python 3 (the Python fuzzers,
the census tools), timeout, bc; Subversion
(svn) to export ooTest for the census. The RVM must sit in
bin/modules/rvm/ of the Rexx Parser: every script finds the
RVM and bin/ from its own location and sets
REXX_PATH to bin/.
Every script sources ../tests/env.sh, which honours
these variables:
| Variable | Default | Meaning |
|---|---|---|
RVM_DIR |
the parent of tests/ |
The RVM under test |
RVM_BIN |
two levels above RVM_DIR |
The Rexx Parser's bin/, put in
REXX_PATH |
RVM_TESTS_TMP |
${TMPDIR:-/tmp}/rvm-tests |
Root of all work directories and logs |
RVM_TESTS_OUT |
$RVM_TESTS_TMP/oo |
Work directory of one oo-e2e.sh run |
RVM_OOTEST_DIR |
$RVM_TESTS_TMP/ootest-svn |
The ooTest export used by check.sh |
JOBS |
per script | Cases run in parallel by e2e.sh (8),
fuzz-trace-run.sh (4), the OO fuzzers (2) |
RVM_CLOCK=virtual (07) is set by smoke.rex,
oo-e2e.sh, census.sh and check.sh
unless the environment sets it: timers then cost no wall time and their
order is fixed, while native ignores the variable. Exit codes follow one
rule: 0 when everything passed, otherwise the number of failures (at
most 255).
Where the RVM differs from native on purpose (an entry of 17), a fixed test carries the RVM's expected output:
File next to NAME.rex |
Replaces | Used by |
|---|---|---|
NAME.expected |
native's standard output | e2e.sh, oracle.rex |
NAME.expected-err |
native's standard error; @CASES@ stands for the cases
directory (error reports name the program by its full path) |
e2e.sh |
NAME.expected-rc |
the exit code, for a -rvm-only case |
e2e.sh |
The exit code is otherwise always native's. A case whose name
contains -rvm-only is one that native cannot judge (native
crashes on it): it is not run on native; its .expected file
is its output, its standard error is empty unless
.expected-err exists, and its exit code is 0 unless
.expected-rc exists. The few .expected files
left are accepted divergences (MIN of a whole number, nested waits) and
native defects the RVM does not reproduce (XRANGE, DATE). The OO suite
has no expected files: its cases must equal native. The fuzzers avoid
deliberate differences by construction (the interactive trace fuzzer
never types what native mishandles).
tests/e2e/) About 240 programs, e2e-NNN-topic.rex, on Classic Rexx:
arithmetic, NUMERIC, DO, SELECT, PARSE, CALL/SIGNAL/RETURN,
PROCEDURE/EXPOSE, conditions, every built-in function and its errors,
streams, commands, ADDRESS, TRACE (results, intermediates, indentation,
scope, interactive settings), error reports, INTERPRET with its reports,
translation errors.
tests/e2e/e2e.sh [rvm | js | both] [PATTERN]
rvm: native against the ooRexx host. Both write to
pipes, as the cases expect
(STREAM('STDOUT','C','QUERY STREAMTYPE'), positioning
errors).js: the JS host against the ooRexx host on the same
R-code (each case is compiled once with rvm.rex -l and run
from its .rcode by both). A case that does not compile (a
translation error test, already judged in rvm mode) is
reported as skipped.both, the default: one after the other.PATTERN is a shell glob ('e2e-15*'). Outputs stay in
$RVM_TESTS_TMP/e2e-rvm and e2e-js
(NAME.n.* native, NAME.r.* ooRexx host,
NAME.o.*/NAME.j.* the two hosts in
js mode), with summary.txt. Cost: a couple of
minutes for both modes.
To add a case: write cases/e2e-NNN-topic.rex (the next
free number), printing what it tests with SAY (and trapping errors where
several should be shown); run e2e.sh both 'e2e-NNN*'. Add
an expected file only for a deliberate deviation.
tests/oo/) About 600 cases in cases/, named by family prefix
(arr-, cls-, meth-,
conc-, sem-, alarm-,
uninit-, nest-, err,
raise-, ctx-, vref-,
pkg-, ns-, rexxutil-,
rxq-, hostemu-, sock-,
lib-, stem-, strm-,
stdio-...), and the .cls packages that some
require (the stdio- cases run their .cls child
with its standard streams redirected to files and pipes). Each case runs
on native, on the ooRexx host and on the JS host (from the R-code of
rvm.rex -l); both hosts must equal native. A case that does
not compile runs on the ooRexx host only. Each host runs as its launcher
(RVM_EXECUTABLE, 13),
so programs started by a case run on the same host.
tests/oo/oo-e2e.sh [PATTERN...] # cases whose name contains a PATTERN
The whole suite takes about 25 minutes on a two-core machine (about
650 cases, two comparisons with native each, as oo-e2e.sh
counts them), because each case starts three processes; during
development it runs by prefix: the families the change
touches, plus those of the machine, errors and concurrency it can reach.
With RVM_TBCHECK=1 (as in the full check) every untrapped
error's report is also checked against its TRACEBACK (06). Native's rxapi daemon keeps
registrations made by ooTest groups that make
rexxutil-version1 fail: after any ooTest run,
pkill -x rxapi first.
A few cases depend on native's timing: ctx-thread gives
a START activity one millisecond to record its values, which native can
miss on a heavily loaded machine (the RVM, on the virtual clock,
cannot), and trace-reply, where native's order of the
activities after a REPLY changes then (its output gains a 97.2 and moves
trace lines). A failure of such a case in a parallel run is rerun alone
before it is investigated.
To add a case: cases/FAMILY-name.rex, writing everything
it checks (including the condition object of trapped errors, when errors
are the subject); a package it needs goes into cases/ as
.cls with a unique name. Concurrency cases must be
deterministic on native too, or they cannot be compared.
The reads of standard input that wait (stdin-wait*) need
a standard input that blocks: each runs a child
(stdin-c1.cls, on the same interpreter) whose standard
input is a FIFO open for reading and writing (<>: no
end of file), which an activity of the child writes, with a command,
after a few ticks; the read must let that activity run. A child that
blocked every activity would hang, so it runs under
timeout.
tests/ext/) Ten cases, each a directory cases/xNN-topic/ with
main.rex, the routines it calls, and optionally
in.txt (standard input) and .runner
(RUNDIR=sub to run from a subdirectory). They check
arguments, RESULT and the fresh settings of an external routine; errors
in it and their reports; TRACE and interactive trace across routines;
where the file is found (the caller's directory, the caller's extension,
.REX, .rex, the case of the name,
./ and ../); EXIT; INTERPRET and SIGNAL inside
a routine; and that each CALL of an external program makes a new package
whose public classes are merged into the caller's.
tests/ext/ext.sh rvm|js [PATTERN]
js compiles main.rex and runs it with
rvm.mjs -s (so the JS host compiles the external routines
itself). Seconds. To add a case: a new directory with its
main.rex.
tests/signal/)
signal.sh: Ctrl-C (07). Each case
(cases/sig-*.rex) gets a file name as its argument and
writes ready to it just before the code to interrupt; the
script waits for it, half a second more, and sends the signals of the
case's -- signal: line (INT by default, one
every half second), then waits for the end. Native against each RVM (the
JS one by its launcher, so in its worker): standard output, standard
error and the exit code, but for the first traceback line of an error
(the clause the signal fell on varies, natively too). The loops are on
one line, so that SIGL is the same. Standard input is
/dev/null, or, with a -- stdin: hold line, a
FIFO open for reading and writing that nothing writes, so that a read of
it waits. The cases: SIGNAL ON HALT, CALL ON HALT that goes on,
untrapped (4.1), SysSleep cut short, a semaphore wait that is not, two
activities, a comparator run by sortWith (one HALT, in it),
SIGTERM, two signals, a read of standard input that waits (a function, a
Stream method, and .INPUT's, whose HALT the caller traps:
the Monitor's activation forwards, a phantom), a command that waits (the
HALT when it ends). About a minute (mostly waiting); not in
check.sh: run it in the foreground (in the background the
shell makes the children ignore SIGINT) when the HALT path, the
scheduler's waits, the readers of standard input or rvm.mjs
change.
A terminal cannot be tested by these scripts. By hand, with a
pseudo-terminal (Python's pty): a read that waits while
another activity runs, the line typed, and Ctrl-C, on native and on both
RVMs. Run the program under a shell (bash -c), not as the
leader of the session: when the leader exits while a reader it killed
still holds the terminal, the kernel may keep it until the next
line.
tests/signal/signal.sh [rvm|js|both] [PATTERN]
tests/cache/)
cache-test.sh: sixteen checks, eight per host, of the
.rcode cache (03): no cache is written
without -w; -w writes it; a cache whose header
matches is used whatever the file dates; a routine with only its
.rcode is found; a cache made from another text, by another
compiler version or against another parser's frontier stamp is ignored.
Seconds.
tests/debug/) debug-run.sh [rvm|js|ORACLEDIR] runs the programs of
cases/ with fixed lines typed at the pauses (as standard
input) on native and on an RVM (through an oracle directory, below),
about 190 runs: pauses in blocks, labels and commands, = to
re-execute, flow changes typed at a pause (SIGNAL, EXIT, RETURN, LEAVE,
ITERATE), TRACE changes, errors typed at a pause. The fp-*
cases come from the fuzzer: NAME.in is the input that found
the difference and NAME.min its minimized form. To add a
case: put the program in cases/ and a
run NAME.rex 'typed\nlines\n' line in the script. Where
native is wrong (= at the pause of a SELECT or a repetitive
DO), the script does not type it.
fuzz-debug.py ORACLEDIR [N] [SEED] [OUTDIR] generates N
programs with random input at the pauses, with the same precautions;
differing cases are kept in OUTDIR.
An oracle directory holds oracle.rex next to a
run.rex that runs a program on one host.
make-oracle.sh [DIR] builds one for the ooRexx host;
make-oracle-js.sh [DIR] one for the JS host
(run.rex compiles with rvm.rex -l and runs
rvm.mjs -s; a program that does not compile runs on the
ooRexx host, which reports the translation error).
rexx DIR/oracle.rex [-e] FILE.rex runs FILE both ways and
compares standard output line by line and the exit code
(-e: standard error too), honouring
FILE.expected. Every fuzzer runner takes the oracle as its
first argument: rvm or js (the directory is
built under RVM_TESTS_TMP) or a directory.
Runner (tests/fuzz/) |
Generates | Default seeds | Judged with |
|---|---|---|---|
fuzz-whole-run.sh |
one program of 800 10 ** e cases per seed (whole-number
conversion, DIGITS 1–20) |
7 999 123 42 2026 | oracle.rex |
fuzz-strbif-run.sh |
one program of 800 random string BIF calls per seed, from the parser's BIF table | 7 999 123 42 2026 | oracle.rex |
fuzz-parse-run.sh |
200 PARSE programs per seed | 3 17 42 123 777 2024 | oracle.rex |
fuzz-call-run.sh |
300 CALL/RETURN/PROCEDURE programs per seed (100 recursive) | 7 42 123 999 2024 | oracle.rex |
fuzz-signal-run.sh |
200 SIGNAL/EXIT programs per seed | 7 42 123 999 2024 | oracle.rex |
fuzz-expose-run.sh |
100 PROCEDURE EXPOSE programs per seed | 1 2 3 4 5 | oracle.rex |
fuzz-trace-run.sh |
100 traced programs per seed (blocks, routines, SIGNAL, TRACE changes, layouts) | 1 2 3 | oracle.rex -e |
tests/fuzz/fuzz-parse-run.sh js 21
A fuzzer is run with one or two new seeds when its area changes, on
both oracles; a seed takes from seconds (whole numbers) to a few minutes
(TRACE). Generated programs that mismatch stay in a directory under
RVM_TESTS_TMP, named in the output; a mismatch becomes a
fixed case (Classic e2e) once understood and fixed.
The OO fuzzers (tests/fuzz/oo/) compare
native with both hosts directly, without an oracle directory:
fuzz-NAME-run.sh SEED N [OUTDIR] for array,
strmeth (String methods), list (List and
Queue), hash (Set, Bag, Relation; the programs that show
hash order are compared with the ooRexx host only, because the JS host
does not reproduce native's bucket order), stem and
mbuf (MutableBuffer). Every operation runs under SIGNAL ON
SYNTAX and prints the condition object, so one program exercises all its
operations. Run the fuzzer of a collection when that collection
changes.
The census runs every testGroup of an export of the ooRexx test suite
on native and on the JS host (with ENG=rvm, the ooRexx
host, much slower), and compares the counts that ooTest prints (tests
ran, assertions, failures, errors):
svn export https://svn.code.sf.net/p/oorexx/code-0/test/trunk SVNDIR
tests/ootest/census.sh SVNDIR OUT [PATTERN] [JOBS]
PATTERN (a basic grep regular expression on the group
path, e.g. 'bif/TRUNC\.') runs only some groups: the groups
of the area touched take seconds; the whole census about 20 minutes with
two jobs. Each group runs alone from its directory; the framework is
compiled once and the JS host writes .rcode caches next to
the groups (-w), so after a compiler change they must be
deleted (find SVNDIR -name '*.rcode' -delete). The RVM runs
as its launcher (RVM_EXECUTABLE), so that programs a test
starts with execRexxPrg run on the RVM, and the samples of
the installed ooRexx are linked where locateSamplePrg looks
for them.
OUT/census.tsv has a line per group: the group, native's
four counts, the RVM's, the status and the seconds. Status:
SAME; DIFF; NOSUMMARY (no
summary: the group did not compile or crashed); TIMEOUT;
NATIVE-FAIL (native itself fails or prints no summary: not
counted); SKIP (not run: the groups that SKIP
matches, none by default). The socket samples, which start a server and
a client as commands from concurrent activities on one port, run last,
one at a time (SERIAL). The full outputs are in
OUT/runs/.
Accepted divergences.
accepted.py OUT SVNDIR (run by census.sh)
classifies each failure that is a documented divergence by a narrow rule
(REXXINTEGER, STRID, WEAKREF, REXXC, RXUNIXSYS, EXECUTABLE, RXAPI),
writing OUT/accepted.tsv (group, count) and
OUT/accepted-tests.tsv (group, test, rule). The rules and
the divergence each one stands for are in 17; a new rule
needs a new entry there. A failure that no rule matches is the RVM's to
fix or a gap (18).
The tools that read a census:
| Script | Gives |
|---|---|
compare.py BASE.tsv NEW.tsv [ACCEPTED.tsv] |
the share of native-passed tests the RVM passes, raw and counting NEW's accepted ones, and every group whose status or count changed |
analyze.py OUT [ENG] [TOP] |
the failures grouped by signature (accepted ones left out), and why each group without a summary has none |
fails.py OUT SVNDIR [ENG] |
one line per failing test that is not accepted (including tests the RVM fails in groups native also fails) |
fails-table.py OUT [NOTES.tsv] |
a Markdown table of what the RVM does not pass, per group, with acceptance |
ootest-run.sh OUT GROUP... |
a few groups fetched with curl (no export needed) on
native and both hosts |
The reference census of the JS host is ../tests/ootest/census-js.tsv,
with its accepted tests in accepted-tests-js.tsv. A batch
of fixes aimed at ooTest runs the census before and after and compares
with it:
compare.py ootest/census-js.tsv OUT/census.tsv OUT/accepted.tsv.
When a new census is accepted as the baseline, its
census.tsv and accepted-tests.tsv replace the
two reference files.
../smoke/ is the test
that runs after any change, from anywhere, with one command, and the
only one the Rexx Parser's own workflow runs when the parser
changes:
rexx bin/modules/rvm/smoke/smoke.rex [rvm | js | both] [PATTERN]
It holds about 150 programs taken from the Classic and OO suites,
with native's output saved next to each (NAME.out,
NAME.err, NAME.rc), and compares both hosts
with them (a path to cases/ in the output is written as
<SMOKE>). A program whose output depends on the clock
has an empty NAME.live file: its expected output is
native's, run at test time. A few minutes for both hosts.
Before the programs it runs astcheck.rex (about a
second; one more failure if it fails): every class of the parser that is
a clause, an expression or a term must have an rcompile, or
be in its list with a reason (a base class, a part compiled by its
instruction, a directive, a form not compiled on purpose). A new AST
class without one (NEW), or one listed that the parser
dropped or that got an rcompile (GONE), is
reported by name, instead of waiting for a program that runs it (20).
The programs are chosen by smoke-select.py: a
greedy cover of the features of every program of the two suites (the
R-code opcodes it uses, each opcode with its named operand — built-in
function and argument count, condition, environment —, its non-empty
R-code sections, its ::OPTIONS, and the error codes in
native's standard error), so that together they use everything the
compiler generates for the suites. Cases with expected files are left
out. To rebuild it (after many new cases, or when the compiler generates
new instructions):
tests/e2e/e2e.sh js and tests/oo/oo-e2e.sh
(whole), which leave the R-code and native's standard error in
RVM_TESTS_TMP.python3 smoke/smoke-select.py > chosen.txt (options
--e2e-out, --oo-out for other work
directories; a comma-separated list of
e2e:NAME/oo:NAME to exclude).smoke/cases/ with the chosen programs
(e2e:NAME from tests/e2e/cases/,
oo:NAME from tests/oo/cases/) and the
.cls packages they require; create NAME.live
for those that show the date or time.rexx smoke/smoke.rex --make (writes the expected files
with native), then rexx smoke/smoke.rex.The programs run in a copy of cases/ in the temporary
directory (TMPDIR, TEMP or /tmp),
never in the package, which a synchronized folder may hold; after each
run, what the program left there is deleted and the session queue is
emptied (a program run by smoke.rex inherits its queue). A
program that differs leaves its expected files and what each host gave
(NAME.expected.{out,err,rc}, NAME.rvm.*,
NAME.js.*) in rvm-smoke-failed/ of the
temporary directory, emptied at the start of every run.
rexx smoke.rex [--live | --files] [--dir DIR] [--batch K [--size N]]
[rvm | js | both] [PATTERN]
--live: the reference is native, run again for every
program, not the saved files (--files).--dir DIR runs another directory of cases
(tests/e2e/cases, tests/oo/cases), always
--live, with the suites' conventions
(.expected, .expected-err with
@CASES@, .expected-rc,
-rvm-only); for e2e, standard output and error
are pipes, as in e2e.sh.--batch K runs only the K-th group of 50 programs in
the order of their names (--size N: of N); the first line
says which.RVM_EXECUTABLE is each host's launcher, for the
programs that start a child through
.RexxInfo~executable.The suites' scripts are bash; on Windows the RVM is tested with
smoke.rex alone, from the root of the Rexx Parser, in
cmd.exe:
rexx bin\modules\rvm\smoke\smoke.rex
rexx bin\modules\rvm\smoke\smoke.rex --dir tests\e2e\cases --batch 1
rexx bin\modules\rvm\smoke\smoke.rex --dir tests\oo\cases --batch 1
There --live is the default (the saved files are made on
Unix), the programs run with cmd.exe (cd /d,
< NUL, double quotes) and the time limit is timeout.mjs (Windows's
TIMEOUT is a pause): it kills the program itself, gives its
rc as 0–255 as on Unix (an ooRexx Error 98 is -98 on
Windows), and with --out/--err gives the
program pipes (Node's pipes are named pipes on Windows). The output is
normalized before comparing: CR LF to LF, the working directory (any
case) to <SMOKE>, <SMOKE>\ to
<SMOKE>/. The launchers are rvm.cmd and
js\rvm.cmd. On Unix, RVM_WINDOWS_SHARING=1
makes the JS host apply Windows's file sharing (13), and
RVM_WINDOWS_HOSTEMU=1 makes both apply Windows's hostemu
(12).
Programs that do not apply on Windows, whatever the RVM does:
rm,
printf, touch: 26 of e2e, 30 of
oo) and depend on them, such as e2e-129
(QUERY TIMESTAMP) and e2e-130;e2e-207-setlocal-nesting-rvm-only (SETLOCAL is
Unix's);e2e-200-time-elapsed-activation: Windows's clock does
not see the short loops of Spin, and native gives
TIME('E') 0;conc-cmd3: two commands write cmd.exe's message on the
standard error at once, in a different order each time;priv-native1: native reports the errors of four START
threads, two lines each, from threads of its own, and their lines
interleave;stream-1: native's garbage collector closes the streams
that LINES opened implicitly and nobody holds, and its
explicit OPEN then gets the file; the RVM's stay open until
the program ends (17), and Windows's
sharing makes that OPEN ERROR:13;
stream-table-reply, the same: the stream the method opened
is still open when the program reads the file;sock-: 18, "Sockets on
Windows";rexxutil-getkey2: native's SysGetKey reads
the console even when the standard input is not one
(_getch), so it waits for a key (rc 124);rexxutil-macro2, rxq-5,
rxq-6: the macrospace and the queues are not yet shared
with commands on Windows (the native rxqueue.exe puts its
lines in rxapi's queue; 18). In
rxq-5 the RVM then ends at LINEIN('QUEUE:') on
an empty queue, where native would wait (17);lib-rxmath1: MathLoadFuncs writes its
banner with printf, which Microsoft's C library keeps in
its buffer until the process ends when the output is not a console (SAY
writes straight): native's banner comes last;hostemu-diskr2: a start of 99999999999999999999 is
2147483647 there, and native reads that many times past the end of the
file (it does not stop): the time limit ends it (rc 124). Up to there it
must be equal;cls-methlists, env-prelude1,
env-prelude2, env-prelude3: OLE
(OLEObject, OLEVariant in
.environment; 18);with-obj-instream: 17.../tests/check.sh runs
the suites in parallel, one log per part in
$RVM_TESTS_TMP/check/, and prints a summary: per part OK or
FAIL, its seconds and its result lines. Its exit code is the number of
parts that failed.
tests/check.sh quick [-p PREFIX[,PREFIX...]] [-t PATTERN]
tests/check.sh full [-t PATTERN]
| quick | full | |
|---|---|---|
| Smoke test, both hosts | yes | yes |
Classic e2e (rvm, js), ext (both hosts),
caches |
yes | yes |
| OO e2e | the families of -p |
whole, with RVM_TBCHECK=1 |
| ooTest census | the groups of -t, run after the rest |
whole, compared with the reference (or the groups of
-t) |
Classic fuzzers, both oracles (fixed seeds 21, 22),
debug-run.sh, fuzz-debug.py (100 cases, seed
21) |
— | yes |
| OO fuzzers (seeds 4 and 5) | — | yes |
| Wall time (two cores) | about 7–10 minutes (the smoke test is the longest part) | at least 25 minutes: the whole OO e2e is the longest part, with the census and the fuzzers running alongside |
For a census part, check.sh uses
RVM_OOTEST_DIR (default
$RVM_TESTS_TMP/ootest-svn) and exports ooTest there with
svn if it is missing; without svn that part is
skipped and says so. It stops the rxapi daemon before the OO e2e runs
and after a census. In quick, a census group passes when it
is SAME or when all its differences are accepted.
The quick check is the default after any change; the full check
closes a batch of changes or precedes a release. Which OO families,
fuzzers and census groups to add for each kind of change is in 20. Parser
changes also run the repository's own tests/RunTests.rex,
outside check.sh.
oracle.rex) serves every Classic fuzzer
and both hosts, so a new fuzzer is just a generator.ENG=rvm) is not part of
the full check: it takes several times longer than the JS census; the
ooRexx host is judged by the e2e suites and the smoke test.tests/: the self-hosting check (the compiler
run on the JS host gives the same R-code as rvm -l), the
browser host's end-to-end run, and the fuzzers for rxregexp, streams
(character, line, commands) and free arithmetic expressions.check.sh runs oo-e2e.sh and the census in
parallel in full; a rexxutil- failure there
should be rerun by prefix after pkill -x rxapi.keyword/TRACE.testGroup and
keyword/TRACE_TraceObject.testGroup can run at the same
time in the same directory and read each other's temporary programs
(test_forwarded3.rex): a NATIVE-FAIL or DIFF of
TEST_TRACE_LABEL_WITH_FORWARD should be rerun alone
(census.sh SVNDIR OUT 'keyword/TRACE.testGroup' 1).rexxutil/SysSearchPath.testGroup
counts the files of its directory (three assertions each): the temporary
files of another rexxutil group running at the same time
give one side more assertions (a DIFF with no failure); rerun it
alone.