2016-01-14 00:38:37 +01:00
|
|
|
Checking the version
|
|
|
|
|
|
|
|
$ simple.c.bin --version
|
2016-09-19 00:21:17 +02:00
|
|
|
Tests compiled with Criterion v2.3.0-rc1
|
2016-01-14 00:38:37 +01:00
|
|
|
|
|
|
|
$ simple.cc.bin --version
|
2016-09-19 00:21:17 +02:00
|
|
|
Tests compiled with Criterion v2.3.0-rc1
|
2016-01-14 00:38:37 +01:00
|
|
|
|
|
|
|
Running the simplest test
|
|
|
|
|
|
|
|
$ simple.c.bin
|
|
|
|
[\x1b[0;34m----\x1b[0m] \x1b[0;1msimple.c\x1b[0m:\x1b[0;31m4\x1b[0m: Assertion failed: The expression 0 is false. (esc)
|
2016-09-04 12:19:56 +02:00
|
|
|
\[\\x1b\[0;31mFAIL\\x1b\[0m\] misc::failing: \(\d\.\d\ds\) \(esc\) (re)
|
2016-02-11 14:31:35 +01:00
|
|
|
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m2\x1b[0;1m | Passing: \x1b[0;32m1\x1b[0;1m | Failing: \x1b[0;31m1\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)
|
2016-01-14 00:38:37 +01:00
|
|
|
|
|
|
|
$ simple.cc.bin
|
|
|
|
[\x1b[0;34m----\x1b[0m] \x1b[0;1msimple.cc\x1b[0m:\x1b[0;31m4\x1b[0m: Assertion failed: The expression 0 is false. (esc)
|
2016-09-04 12:19:56 +02:00
|
|
|
\[\\x1b\[0;31mFAIL\\x1b\[0m\] misc::failing: \(\d\.\d\ds\) \(esc\) (re)
|
2016-02-11 14:31:35 +01:00
|
|
|
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m2\x1b[0;1m | Passing: \x1b[0;32m1\x1b[0;1m | Failing: \x1b[0;31m1\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)
|
2016-01-14 00:38:37 +01:00
|
|
|
|
|
|
|
Running with verbose output
|
|
|
|
|
|
|
|
$ simple.c.bin --verbose
|
2016-09-19 00:21:17 +02:00
|
|
|
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-rc1 (esc)
|
2016-01-14 00:38:37 +01:00
|
|
|
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m2\x1b[0m tests from \x1b[0;33mmisc\x1b[0m: (esc)
|
|
|
|
[\x1b[0;34mRUN \x1b[0m] misc::failing (esc)
|
|
|
|
[\x1b[0;34m----\x1b[0m] \x1b[0;1msimple.c\x1b[0m:\x1b[0;31m4\x1b[0m: Assertion failed: The expression 0 is false. (esc)
|
2016-09-04 12:19:56 +02:00
|
|
|
\[\\x1b\[0;31mFAIL\\x1b\[0m\] misc::failing: \(\d\.\d\ds\) \(esc\) (re)
|
2016-01-14 00:38:37 +01:00
|
|
|
[\x1b[0;34mRUN \x1b[0m] misc::passing (esc)
|
2016-09-04 12:19:56 +02:00
|
|
|
\[\\x1b\[0;32mPASS\\x1b\[0m\] misc::passing: \(\d\.\d\ds\) \(esc\) (re)
|
2016-02-11 14:31:35 +01:00
|
|
|
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m2\x1b[0;1m | Passing: \x1b[0;32m1\x1b[0;1m | Failing: \x1b[0;31m1\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)
|
2016-01-14 00:38:37 +01:00
|
|
|
|
|
|
|
$ simple.cc.bin --verbose
|
2016-09-19 00:21:17 +02:00
|
|
|
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-rc1 (esc)
|
2016-01-14 00:38:37 +01:00
|
|
|
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m2\x1b[0m tests from \x1b[0;33mmisc\x1b[0m: (esc)
|
|
|
|
[\x1b[0;34mRUN \x1b[0m] misc::failing (esc)
|
|
|
|
[\x1b[0;34m----\x1b[0m] \x1b[0;1msimple.cc\x1b[0m:\x1b[0;31m4\x1b[0m: Assertion failed: The expression 0 is false. (esc)
|
2016-09-04 12:19:56 +02:00
|
|
|
\[\\x1b\[0;31mFAIL\\x1b\[0m\] misc::failing: \(\d\.\d\ds\) \(esc\) (re)
|
2016-01-14 00:38:37 +01:00
|
|
|
[\x1b[0;34mRUN \x1b[0m] misc::passing (esc)
|
2016-09-04 12:19:56 +02:00
|
|
|
\[\\x1b\[0;32mPASS\\x1b\[0m\] misc::passing: \(\d\.\d\ds\) \(esc\) (re)
|
2016-02-11 14:31:35 +01:00
|
|
|
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m2\x1b[0;1m | Passing: \x1b[0;32m1\x1b[0;1m | Failing: \x1b[0;31m1\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)
|
2016-01-14 00:38:37 +01:00
|
|
|
|
|
|
|
Listing the tests
|
|
|
|
|
|
|
|
$ simple.c.bin --list
|
|
|
|
misc: 2 tests
|
|
|
|
├── failing
|
|
|
|
└── passing
|
|
|
|
|
|
|
|
$ simple.cc.bin --list
|
|
|
|
misc: 2 tests
|
|
|
|
├── failing
|
|
|
|
└── passing
|
|
|
|
|
|
|
|
Testing the fixtures
|
|
|
|
|
|
|
|
$ fixtures.c.bin
|
|
|
|
Runs before the test
|
|
|
|
Runs after the test
|
2016-02-11 14:31:35 +01:00
|
|
|
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m1\x1b[0;1m | Passing: \x1b[0;32m1\x1b[0;1m | Failing: \x1b[0m0\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)
|
2016-01-14 00:38:37 +01:00
|
|
|
|
|
|
|
$ fixtures.cc.bin
|
|
|
|
Runs before the test
|
|
|
|
Runs after the test
|
2016-02-11 14:31:35 +01:00
|
|
|
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m1\x1b[0;1m | Passing: \x1b[0;32m1\x1b[0;1m | Failing: \x1b[0m0\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)
|
2016-01-14 00:38:37 +01:00
|
|
|
|
|
|
|
Testing descriptions
|
|
|
|
|
|
|
|
$ description.c.bin --verbose
|
2016-09-19 00:21:17 +02:00
|
|
|
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-rc1 (esc)
|
2016-01-14 00:38:37 +01:00
|
|
|
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m2\x1b[0m tests from \x1b[0;33mmisc\x1b[0m: (esc)
|
|
|
|
[\x1b[0;34mRUN \x1b[0m] misc::failing (esc)
|
|
|
|
[\x1b[0;34m----\x1b[0m] Just a failing test (esc)
|
|
|
|
[\x1b[0;34m----\x1b[0m] \x1b[0;1mdescription.c\x1b[0m:\x1b[0;31m4\x1b[0m: Assertion failed: The expression 0 is false. (esc)
|
2016-09-04 12:19:56 +02:00
|
|
|
\[\\x1b\[0;31mFAIL\\x1b\[0m\] misc::failing: \(\d\.\d\ds\) \(esc\) (re)
|
2016-09-05 10:22:03 +02:00
|
|
|
[\x1b[0;33mSKIP\x1b[0m] misc::skipped: Test is disabled (esc)
|
2016-01-14 00:38:37 +01:00
|
|
|
[\x1b[0;34m----\x1b[0m] This one is skipped (esc)
|
2016-02-11 14:31:35 +01:00
|
|
|
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m1\x1b[0;1m | Passing: \x1b[0;32m0\x1b[0;1m | Failing: \x1b[0;31m1\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)
|
2016-01-14 00:38:37 +01:00
|
|
|
|
|
|
|
$ description.cc.bin --verbose
|
2016-09-19 00:21:17 +02:00
|
|
|
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-rc1 (esc)
|
2016-01-14 00:38:37 +01:00
|
|
|
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m2\x1b[0m tests from \x1b[0;33mmisc\x1b[0m: (esc)
|
|
|
|
[\x1b[0;34mRUN \x1b[0m] misc::failing (esc)
|
|
|
|
[\x1b[0;34m----\x1b[0m] Just a failing test (esc)
|
|
|
|
[\x1b[0;34m----\x1b[0m] \x1b[0;1mdescription.cc\x1b[0m:\x1b[0;31m4\x1b[0m: Assertion failed: The expression 0 is false. (esc)
|
2016-09-04 12:19:56 +02:00
|
|
|
\[\\x1b\[0;31mFAIL\\x1b\[0m\] misc::failing: \(\d\.\d\ds\) \(esc\) (re)
|
2016-09-05 10:22:03 +02:00
|
|
|
[\x1b[0;33mSKIP\x1b[0m] misc::skipped: Test is disabled (esc)
|
2016-01-14 00:38:37 +01:00
|
|
|
[\x1b[0;34m----\x1b[0m] This one is skipped (esc)
|
2016-02-11 14:31:35 +01:00
|
|
|
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m1\x1b[0;1m | Passing: \x1b[0;32m0\x1b[0;1m | Failing: \x1b[0;31m1\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)
|
2016-01-14 15:36:06 +01:00
|
|
|
|
|
|
|
Testing report hooks
|
|
|
|
|
|
|
|
$ report.c.bin
|
|
|
|
criterion_init
|
|
|
|
testing test in category sample
|
2016-01-20 15:16:07 +01:00
|
|
|
[\x1b[0;34m----\x1b[0m] \x1b[0;1mreport.c\x1b[0m:\x1b[0;31m5\x1b[0m: Assertion failed: The expression 0 is false. (esc)
|
2016-01-14 15:36:06 +01:00
|
|
|
Asserts: [1 passed, 1 failed, 2 total]
|
2016-09-04 12:19:56 +02:00
|
|
|
\[\\x1b\[0;31mFAIL\\x1b\[0m\] sample::test: \(\d\.\d\ds\) \(esc\) (re)
|
2016-01-14 15:36:06 +01:00
|
|
|
criterion_fini
|
2016-02-11 14:31:35 +01:00
|
|
|
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m1\x1b[0;1m | Passing: \x1b[0;32m0\x1b[0;1m | Failing: \x1b[0;31m1\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)
|
2016-01-14 15:36:06 +01:00
|
|
|
|
|
|
|
$ report.cc.bin
|
|
|
|
criterion_init
|
|
|
|
testing test in category sample
|
2016-01-20 15:16:07 +01:00
|
|
|
[\x1b[0;34m----\x1b[0m] \x1b[0;1mreport.cc\x1b[0m:\x1b[0;31m5\x1b[0m: Assertion failed: The expression 0 is false. (esc)
|
2016-01-14 15:36:06 +01:00
|
|
|
Asserts: [1 passed, 1 failed, 2 total]
|
2016-09-04 12:19:56 +02:00
|
|
|
\[\\x1b\[0;31mFAIL\\x1b\[0m\] sample::test: \(\d\.\d\ds\) \(esc\) (re)
|
2016-01-14 15:36:06 +01:00
|
|
|
criterion_fini
|
2016-02-11 14:31:35 +01:00
|
|
|
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m1\x1b[0;1m | Passing: \x1b[0;32m0\x1b[0;1m | Failing: \x1b[0;31m1\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)
|