General test support.
More...
|
| namespace | Array |
| | Tests for arrays.
|
| namespace | Assign |
| | Tests for assignments.
|
| namespace | Branch |
| | Tests for branchings.
|
| namespace | Fault |
| namespace | FlatZinc |
| | Tests for FlatZinc.
|
| namespace | Float |
| | Testing domain floats.
|
| namespace | Groups |
| namespace | Int |
| | Testing finite domain integers.
|
| namespace | LDSB |
| | Testing for LDSB.
|
| namespace | NoGoods |
| | Tests for search using no-goods.
|
| namespace | Search |
| | Tests for search engines.
|
| namespace | Set |
| | Testing finite sets.
|
|
| void | report_error (const std::string &name, unsigned int seed, Options &options, std::ostream &ostream) |
| bool | run_test (Base *test, unsigned int test_seed, const Options &options, std::ostream &ostream) |
| | Run a single test, returning true iff the test succeeded.
|
| int | run_tests (const std::vector< Base * > &tests, const Options &options) |
| | Run all the tests with the supplied options.
|
| int | run_tests_parallel (const std::vector< Base * > &tests, const Options &options) |
| | Run all the tests with the supplied options i parallel.
|
| int | main (int argc, char *argv[]) |
| | Main function.
|
| std::ostream & | operator<< (std::ostream &os, const Test::ind &i) |
| | Print indentation.
|
◆ MatchType
How to match.
| Enumerator |
|---|
| MT_ANY | |
| MT_NOT | |
| MT_FIRST | |
Definition at line 76 of file test.hh.
◆ report_error()
| void Test::report_error |
( |
const std::string & | name, |
|
|
unsigned int | seed, |
|
|
Options & | options, |
|
|
std::ostream & | ostream ) |
◆ run_test()
| bool Test::run_test |
( |
Base * | test, |
|
|
unsigned int | test_seed, |
|
|
const Options & | options, |
|
|
std::ostream & | ostream ) |
Run a single test, returning true iff the test succeeded.
Definition at line 251 of file test.cpp.
◆ run_tests()
| int Test::run_tests |
( |
const std::vector< Base * > & | tests, |
|
|
const Options & | options ) |
Run all the tests with the supplied options.
Definition at line 279 of file test.cpp.
◆ run_tests_parallel()
| int Test::run_tests_parallel |
( |
const std::vector< Base * > & | tests, |
|
|
const Options & | options ) |
Run all the tests with the supplied options i parallel.
Definition at line 443 of file test.cpp.
◆ afc
◆ olog
| std::ostringstream Test::olog |
Stream used for logging.
The olog is buffered and printed only if an error has occurred.
Definition at line 54 of file test.cpp.
◆ opt
The options.
Definition at line 95 of file test.cpp.