One line, from anywhere (the RVM mounted in
bin/modules/rvm/ of the Rexx Parser):
rexx bin/modules/rvm/smoke/smoke.rex
It runs every program of cases/ on the RVM of ooRexx and
on the RVM of JavaScript and compares what each one writes (standard
output, standard error) and its return code with what ooRexx gives
(NAME.out, NAME.err, NAME.rc).
The last line says smoke: OK, ...; otherwise, one line per
program that differs (FAIL rvm|js NAME: out err rc, the
parts that differ) and the count, which is also the return code. A few
minutes.
rexx smoke.rex rvm or rexx smoke.rex js:
only one of the RVMs.rexx smoke.rex both PATTERN: only the programs whose
name contains PATTERN (to rerun one:
rexx smoke.rex both e2e-105; to see the details, run it by
hand: cd cases && ../../rvm NAME.rex, and compare
with rexx NAME.rex).rexx smoke.rex --make: writes the expected files with
ooRexx (only when the programs change).astcheck.rex (also on its own:
REXX_PATH=bin rexx astcheck.rex): every class of the AST
must have a compiler (rcompile) or be in its list with a
reason; a class that is not (NEW), or one that the list
names in vain (GONE), is one more failure.NAME.live file next to it: its expected output is
what ooRexx gives when the test runs, not its files (which would fail
the next day).Needs ooRexx 5 (rexx) and Node.js 22 or later
(node) on the PATH, and timeout (coreutils; on
Windows, timeout.mjs, next to smoke.rex). The
programs run in a copy of cases/ in the temporary directory
(TMPDIR, TEMP or /tmp), never in
the package, their standard input empty, with the RVMs' virtual clock
(RVM_CLOCK=virtual). A program that differs leaves its
expected files and what each RVM gave in rvm-smoke-failed/
of the temporary directory (emptied at the start of every run; the last
line says where).
rexx smoke.rex [--live | --files] [--dir DIR] [--batch K [--size N]]
[rvm | js | both] [PATTERN]
--live: compare with ooRexx run again for every
program, not with the saved files (--files).--dir DIR: the programs of a suite
(tests/e2e/cases, tests/oo/cases), always
--live, with the suite's expected files.--batch K: only the K-th group of 50 programs, in the
order of their names (--size N: of N).It runs on Windows too, in cmd.exe, from the root of the Rexx Parser
(rexx bin\modules\rvm\smoke\smoke.rex), with
--live as the default (the saved files are made on Unix).
doc/16-testing.md (section "On Windows") lists the programs
that do not apply there.
They are a subset of the RVM's own tests (the end-to-end programs of
Classic Rexx, e2e-*, and the cases of the object-oriented
part), chosen greedily so that together they use every R-code
instruction the compiler generates for those tests, with their named
operands (the built-in functions, the conditions, the environments...),
every section of the R-code (classes, methods, routines, ::REQUIRES,
annotations, resources, ADDRESS WITH, ::OPTIONS) and every error number
that those tests raise. So a change of the parser that the compiler
depends on (the AST, the built-in function table, the error messages,
INTERPRET) shows up here. The full test suites are in ../tests/ (see
doc/16-testing.md).
This file is part of the RVM, the Rexx Virtual Machine [See https://rexx.epbcn.com/rexx-parser/]. Copyright (c) 2026 Josep Maria Blasco. License: Apache License 2.0.