You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Chris Novakovic b34d66cc17 explicit.graphviz: generate HTML-like node/edge labels 7 years ago
..
bugfixes prism-tests: tweak result values for test cases (better tests of the exact engine) 8 years ago
contrib/garavel prism-tests: tweak result values for test cases (better tests of the exact engine) 8 years ago
functionality test cases: add a few more R=?[F], R=?[S], R=?[C] properties for CTMCs 8 years ago
papers Move prism-tests into this repository and update Makefile "tests" target. 8 years ago
pmc Move prism-tests into this repository and update Makefile "tests" target. 8 years ago
README.md Move prism-tests into this repository and update Makefile "tests" target. 8 years ago
all-engines.args Makefile: new target 'testsfull' 8 years ago
example.nm Move prism-tests into this repository and update Makefile "tests" target. 8 years ago
example.nm.props Move prism-tests into this repository and update Makefile "tests" target. 8 years ago

README.md

PRISM Regression Tests

This is the PRISM Regression Test Suite, a collection of probabilistic model checking tasks that PRISM can perform, along with their expected result/output.

Most tests take the form of a PRISM model file (e.g. test.nm), usually with an accompanying property file with a matching name (e.g. test.nm.props). Command-line switches that need to be passed to PRISM to run the test can be included in a separate .args file, again with matching name (e.g. test.nm.props.args).

The tests are executed by running PRISM in test mode 'prism -test'. This looks for a comment of the form '// RESULT: xxx' preceding each property and then checks agains the expected result (xxx) after model checking. See e.g. the files example.nm and example.nm.props in this directory.

Use the prism-test script (in etc/scripts/) to automate test execution. (In fact, this works via the prism-auto script, also in etc/scripts.) You can give prism-test either a specific property file (test.nm.props) or a model file (test.nm), which runs all tests for that model. Alternatively, pass prism-test a directory, which is searched recursively for tests. For example:

  • prism-test pmc/lec12mdp.nm.props
  • prism-test pmc/lec12mdp.nm
  • prism-test pmc

Current test sets are:

  • functionality/ : currently partial coverage of PRISM's functionality
  • bugfixes/ : examples based on previously fixed bugs
  • papers/ : tutorial/toy examples from papers
  • pmc/ : examples from Probabilistic Model Checking lecture course
  • contrib/ : test contributed by others

See here for more details: