Joeri Exelmans f600f56401 Updated 'render' script + checked in reasonably looking rendered statechart images 5 lat temu
..
lib f600f56401 Updated 'render' script + checked in reasonably looking rendered statechart images 5 lat temu
pssm 3b1dc3aea2 A <slot> element in a test contains set of output events of a nonempty big step. 5 lat temu
scxml 3b1dc3aea2 A <slot> element in a test contains set of output events of a nonempty big step. 5 lat temu
semantics f600f56401 Updated 'render' script + checked in reasonably looking rendered statechart images 5 lat temu
wontfix f600f56401 Updated 'render' script + checked in reasonably looking rendered statechart images 5 lat temu
Makefile 1fea8fbf0d Shorter folder names. Got rid of outdated CSharp stuff. 5 lat temu
README.md f600f56401 Updated 'render' script + checked in reasonably looking rendered statechart images 5 lat temu
render.py f600f56401 Updated 'render' script + checked in reasonably looking rendered statechart images 5 lat temu
test.py 2e47398f26 Better to generate SMCAT files in python than with XSLT 5 lat temu

README.md

test.py

The Python program test.py replaces the old run_tests.py. It takes test input files (in SCCD XML format) as parameter. It compiles tests and runs them.

For example, to run the "semantics" tests:

python3 test.py semantics

This will create a 'build' directory with compiled statechart models. It is safe to remove this directory after testing, but this directory serves as a 'cache' for build artifacts.

render.py

The Python program render.py renders SVG graphs for test files. Rendered SVG files are checked in to this repository. If you wish to re-render them, you need the NPM (NodeJS) package 'state-machine-cat'. Install NodeJS and NPM, and then install the NPM package 'state-machine-cat':

npm i -g state-machine-cat

You can now render all the tests in the 'semantics' dir:

python3 render.py semantics

By default, the SVG files are stored next to the test XML files.