Skip to content

Commit

Permalink
release: Prepare a release candidate for 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Snaipe committed Sep 18, 2016
1 parent e864f3d commit a9df791
Show file tree
Hide file tree
Showing 19 changed files with 112 additions and 78 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 2.3.0-dev
current_version = 2.3.0-rc1
commit = False
parse = ^
(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+) # minimum 'N.N.N'
Expand Down
4 changes: 2 additions & 2 deletions .cmake/Modules/Properties.cmake
Expand Up @@ -2,9 +2,9 @@
# Redistribution and use of this file is allowed according to the terms of the MIT license.
# For details see the LICENSE file distributed with Criterion.

set (PROJECT_VERSION "2.3.0-dev")
set (PROJECT_VERSION "2.3.0-rc1")
set (PROJECT_SOVERSION 3)
set (PROJECT_SONAME 3.0.0)
set (PROJECT_SONAME 3.1.0)

set (LOCALEDIR_REL "share/locale")
set (LOCALEDIR "${CMAKE_INSTALL_PREFIX}/${LOCALEDIR_REL}")
Expand Down
34 changes: 34 additions & 0 deletions ChangeLog
@@ -1,3 +1,37 @@
2018-09-18 Franklin "Snaipe" Mathieu <franklinmathieu@gmail.com>

* criterion: version 2.3.0
* Addition: added German translation files (Matthias "ailu" Günzel).
* Addition: added a pkg-config file.
* Addition: allow tests to be skipped with cr_skip_test() (Matthias "ailu" Günzel).
* Addition: assertions on wide-strings are now available (Kevin "kevinoid" Locke).
* Addition: crash-mode with --crash to raise a trap when an assertion fails for debugging purposes (Matthias "ailu" Günzel).
* Addition: debugging mode with --debug.
* Addition: global test timeout with --timeout.
* Addition: header files in the public API now have doxygen documentation (Matthias "ailu" Günzel).
* Addition: test filtering now works on windows.
* Addition: user logging API with cr_log, cr_log_info, cr_log_warning, and cr_log_error.
* Breaking: dropped support for MinGW, use MinGW-w64.
* Breaking: dropped support for Windows XP, use Windows 7 and later.
* Breaking: the SOVERSION now follows the SONAME major independently of the project version.
* Change: --pattern has been renamed to --filter.
* Change: removed dependency on PCRE for filtering (Matthias "ailu" Günzel).
* Change: sections of all loaded shared modules are now inspected for tests and hooks.
* Change: setting .exit_code = 0 now enforces the exit code of the test to be 0.
* Change: string assertions now print the contents of string parameters ("kaidowei").
* Change: tests are no longer executed in parallel on windows by default to mitigate a nanomsg bug (see https://github.com/Snaipe/Criterion/issues/118).
* Change: xml reports now includes elapsed times ("kaidowei").
* Deprecation: --no-early-exit is now a no-op and should no longer be used.
* Deprecation: internal logging API is no longer public, fallbacks to the new logging API.
* Fix: fail-fast now works correctly.
* Fix: fixed FindCriterion.cmake with the correct package name (László "MrAnno" Várady).
* Fix: position-independent executables now work.
* Fix: string assertions no longer crash with a NULL parameter ("kaidowei").
* Fix: the data pipe no longer gets corrupted when running a large quantity of assertions in parallel.
* Fix: using dmalloc on tests now works.
* Fix: using the GOLD linker rather than BFD now works.
* Fix: using the musl C library now works.

2016-06-20 Franklin "Snaipe" Mathieu <franklinmathieu@gmail.com>

* criterion: version 2.2.2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -6,7 +6,7 @@
[![Windows Build Status](https://ci.appveyor.com/api/projects/status/github/Snaipe/Criterion?svg=true&branch=bleeding)](https://ci.appveyor.com/project/Snaipe/Criterion/branch/bleeding)
[![Coverage Status](https://img.shields.io/codecov/c/github/Snaipe/Criterion/bleeding.svg)](https://codecov.io/github/Snaipe/Criterion?branch=bleeding)
[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/Snaipe/Criterion/blob/master/LICENSE)
[![Version](https://img.shields.io/badge/version-v2.3.0--dev-blue.svg?style=flat)](https://github.com/Snaipe/Criterion/releases)
[![Version](https://img.shields.io/badge/version-v2.3.0--rc1-blue.svg?style=flat)](https://github.com/Snaipe/Criterion/releases)

A dead-simple, yet extensible, C and C++ unit testing framework.

Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
@@ -1,4 +1,4 @@
version: 2.3.0-dev_b{build}-{branch}
version: 2.3.0-rc1_b{build}-{branch}

os: Visual Studio 2015

Expand Down
2 changes: 1 addition & 1 deletion doc/conf.py
Expand Up @@ -54,7 +54,7 @@
# built documents.
#
# The short X.Y version.
version = '2.3.0-dev'
version = '2.3.0-rc1'
# The full version, including alpha/beta/rc tags.
release = version

Expand Down
12 changes: 6 additions & 6 deletions test/cram/core.t
@@ -1,10 +1,10 @@
Checking the version

$ simple.c.bin --version
Tests compiled with Criterion v2.3.0-dev
Tests compiled with Criterion v2.3.0-rc1

$ simple.cc.bin --version
Tests compiled with Criterion v2.3.0-dev
Tests compiled with Criterion v2.3.0-rc1

Running the simplest test

Expand All @@ -21,7 +21,7 @@ Running the simplest test
Running with verbose output

$ simple.c.bin --verbose
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-dev (esc)
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-rc1 (esc)
[\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)
Expand All @@ -31,7 +31,7 @@ Running with verbose output
[\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)

$ simple.cc.bin --verbose
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-dev (esc)
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-rc1 (esc)
[\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)
Expand Down Expand Up @@ -67,7 +67,7 @@ Testing the fixtures
Testing descriptions

$ description.c.bin --verbose
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-dev (esc)
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-rc1 (esc)
[\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)
Expand All @@ -78,7 +78,7 @@ Testing descriptions
[\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)

$ description.cc.bin --verbose
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-dev (esc)
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-rc1 (esc)
[\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)
Expand Down
10 changes: 5 additions & 5 deletions test/cram/crashes.t
Expand Up @@ -15,7 +15,7 @@ Simple crashes & signal testing
Simple crashes & signal testing (verbose)

$ signal.c.bin --verbose
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-dev (esc)
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-rc1 (esc)
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m3\x1b[0m tests from \x1b[0;33msimple\x1b[0m: (esc)
[\x1b[0;34mRUN \x1b[0m] simple::caught (esc)
\[\\x1b\[0;32mPASS\\x1b\[0m\] simple::caught: \(\d\.\d\ds\) \(esc\) (re)
Expand All @@ -27,7 +27,7 @@ Simple crashes & signal testing (verbose)
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m3\x1b[0;1m | Passing: \x1b[0;32m1\x1b[0;1m | Failing: \x1b[0;31m2\x1b[0;1m | Crashing: \x1b[0;31m1\x1b[0;1m \x1b[0m (esc)

$ signal.cc.bin --verbose
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-dev (esc)
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-rc1 (esc)
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m3\x1b[0m tests from \x1b[0;33msimple\x1b[0m: (esc)
[\x1b[0;34mRUN \x1b[0m] simple::caught (esc)
\[\\x1b\[0;32mPASS\\x1b\[0m\] simple::caught: \(\d\.\d\ds\) \(esc\) (re)
Expand All @@ -53,7 +53,7 @@ Crashes outside of the test
Crashes outside of the test (verbose)

$ other-crashes.c.bin --verbose
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-dev (esc)
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-rc1 (esc)
[\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::setup_crash (esc)
[\x1b[0;34m----\x1b[0m] \x1b[0;1mWarning! The test `misc::setup_crash` crashed during its setup or teardown.\x1b[0m (esc)
Expand All @@ -63,7 +63,7 @@ Crashes outside of the test (verbose)
[\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[0;31m1\x1b[0;1m \x1b[0m (esc)

$ other-crashes.cc.bin --verbose
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-dev (esc)
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-rc1 (esc)
[\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::setup_crash (esc)
[\x1b[0;34m----\x1b[0m] \x1b[0;1mWarning! The test `misc::setup_crash` crashed during its setup or teardown.\x1b[0m (esc)
Expand All @@ -90,7 +90,7 @@ C++ Exceptions should be handled
C++ Exceptions should be handled (verbose)

$ exception.cc.bin --verbose
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-dev (esc)
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-rc1 (esc)
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m6\x1b[0m tests from \x1b[0;33mexception\x1b[0m: (esc)
[\x1b[0;34mRUN \x1b[0m] exception::raise_any (esc)
[\x1b[0;34m----\x1b[0m] exception::raise_any: Caught some unexpected exception during the test execution. (esc)
Expand Down
4 changes: 2 additions & 2 deletions test/cram/exit.t
@@ -1,7 +1,7 @@
Testing tests that call exit()

$ exit.c.bin --verbose
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-dev (esc)
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-rc1 (esc)
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m3\x1b[0m tests from \x1b[0;33mexit\x1b[0m: (esc)
[\x1b[0;34mRUN \x1b[0m] exit::expected_exit (esc)
\[\\x1b\[0;32mPASS\\x1b\[0m\] exit::expected_exit: \(\d\.\d\ds\) \(esc\) (re)
Expand All @@ -18,7 +18,7 @@ Testing tests that call exit()
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m5\x1b[0;1m | Passing: \x1b[0;32m3\x1b[0;1m | Failing: \x1b[0;31m2\x1b[0;1m | Crashing: \x1b[0;31m1\x1b[0;1m \x1b[0m (esc)

$ exit.cc.bin --verbose
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-dev (esc)
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-rc1 (esc)
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m3\x1b[0m tests from \x1b[0;33mexit\x1b[0m: (esc)
[\x1b[0;34mRUN \x1b[0m] exit::expected_exit (esc)
\[\\x1b\[0;32mPASS\\x1b\[0m\] exit::expected_exit: \(\d\.\d\ds\) \(esc\) (re)
Expand Down
4 changes: 2 additions & 2 deletions test/cram/fail-fast.t
@@ -1,7 +1,7 @@
Testing --fail-fast

$ simple.c.bin --fail-fast --verbose
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-dev (esc)
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-rc1 (esc)
[\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)
Expand All @@ -12,7 +12,7 @@ Testing --fail-fast
Testing CRITERION_FAIL_FAST

$ CRITERION_FAIL_FAST=1 simple.c.bin --verbose
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-dev (esc)
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-rc1 (esc)
[\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)
Expand Down
4 changes: 2 additions & 2 deletions test/cram/help.t
@@ -1,7 +1,7 @@
Display the help message

$ simple.c.bin --help
Tests compiled with Criterion v2.3.0-dev
Tests compiled with Criterion v2.3.0-rc1

usage: .*simple\.c\.bin(\.exe)? OPTIONS (re)
options:
Expand All @@ -25,7 +25,7 @@ Display the help message
-OP:F or --output=PROVIDER=FILE: write test report to FILE using the specified provider
$ simple.cc.bin --help
Tests compiled with Criterion v2.3.0-dev
Tests compiled with Criterion v2.3.0-rc1
usage: .*simple\.cc\.bin(\.exe)? OPTIONS (re)
options:
Expand Down
18 changes: 9 additions & 9 deletions test/cram/json.t
Expand Up @@ -2,7 +2,7 @@ Testing multiple samples with --json

$ simple.c.bin --json
{
"id": "Criterion v2.3.0-dev",
"id": "Criterion v2.3.0-rc1",
"passed": 1,
"failed": 1,
"errored": 0,
Expand Down Expand Up @@ -35,7 +35,7 @@ Testing multiple samples with --json

$ signal.c.bin --json
{
"id": "Criterion v2.3.0-dev",
"id": "Criterion v2.3.0-rc1",
"passed": 1,
"failed": 2,
"errored": 1,
Expand Down Expand Up @@ -74,7 +74,7 @@ Testing multiple samples with --json

$ asserts.c.bin --json
{
"id": "Criterion v2.3.0-dev",
"id": "Criterion v2.3.0-rc1",
"passed": 5,
"failed": 2,
"errored": 0,
Expand Down Expand Up @@ -137,7 +137,7 @@ Testing multiple samples with --json

$ more-suites.c.bin --json
{
"id": "Criterion v2.3.0-dev",
"id": "Criterion v2.3.0-rc1",
"passed": 2,
"failed": 0,
"errored": 0,
Expand Down Expand Up @@ -191,7 +191,7 @@ Testing multiple samples with --json

$ long-messages.c.bin --json
{
"id": "Criterion v2.3.0-dev",
"id": "Criterion v2.3.0-rc1",
"passed": 0,
"failed": 1,
"errored": 0,
Expand Down Expand Up @@ -222,7 +222,7 @@ Testing multiple samples with --json

$ description.c.bin --json
{
"id": "Criterion v2.3.0-dev",
"id": "Criterion v2.3.0-rc1",
"passed": 0,
"failed": 1,
"errored": 0,
Expand Down Expand Up @@ -258,7 +258,7 @@ Testing --output=json

$ simple.c.bin --output=json:-
{
"id": "Criterion v2.3.0-dev",
"id": "Criterion v2.3.0-rc1",
"passed": 1,
"failed": 1,
"errored": 0,
Expand Down Expand Up @@ -293,7 +293,7 @@ Testing CRITERION_OUTPUTS

$ CRITERION_OUTPUTS=json:- simple.c.bin
{
"id": "Criterion v2.3.0-dev",
"id": "Criterion v2.3.0-rc1",
"passed": 1,
"failed": 1,
"errored": 0,
Expand Down Expand Up @@ -326,7 +326,7 @@ Testing CRITERION_OUTPUTS

$ skip.c.bin --json
{
"id": "Criterion v2.3.0-dev",
"id": "Criterion v2.3.0-rc1",
"passed": 0,
"failed": 0,
"errored": 0,
Expand Down
4 changes: 2 additions & 2 deletions test/cram/log.t
@@ -1,7 +1,7 @@
Testing log messages

$ log.c.bin --verbose
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-dev (esc)
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-rc1 (esc)
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m2\x1b[0m tests from \x1b[0;33mlogging\x1b[0m: (esc)
[\x1b[0;34mRUN \x1b[0m] logging::format (esc)
[\x1b[0;34m----\x1b[0m] Log messages are printf-formatted strings. (esc)
Expand All @@ -14,7 +14,7 @@ Testing log messages
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m2\x1b[0;1m | Passing: \x1b[0;32m2\x1b[0;1m | Failing: \x1b[0m0\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)

$ log.cc.bin --verbose
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-dev (esc)
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-rc1 (esc)
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m1\x1b[0m test from \x1b[0;33mlogging\x1b[0m: (esc)
[\x1b[0;34mRUN \x1b[0m] logging::stream (esc)
[\x1b[0;34m----\x1b[0m] This is an informational message. They are not displayed by default. (esc)
Expand Down
4 changes: 2 additions & 2 deletions test/cram/parameterized.t
Expand Up @@ -45,7 +45,7 @@ Using parameterized tests
Using parameterized tests (verbose)

$ parameterized.c.bin --verbose
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-dev (esc)
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-rc1 (esc)
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m3\x1b[0m tests from \x1b[0;33mparams\x1b[0m: (esc)
[\x1b[0;34mRUN \x1b[0m] params::cleanup (esc)
[\x1b[0;34m----\x1b[0m] \x1b[0;1mparameterized.c\x1b[0m:\x1b[0;31m78\x1b[0m: Assertion failed: Parameters: (1, 2.000000) (esc)
Expand Down Expand Up @@ -77,7 +77,7 @@ Using parameterized tests (verbose)
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m9\x1b[0;1m | Passing: \x1b[0;32m0\x1b[0;1m | Failing: \x1b[0;31m9\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)

$ parameterized.cc.bin --verbose
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-dev (esc)
[\x1b[0;34m----\x1b[0m] Criterion v2.3.0-rc1 (esc)
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m3\x1b[0m tests from \x1b[0;33mparams\x1b[0m: (esc)
[\x1b[0;34mRUN \x1b[0m] params::cleanup (esc)
[\x1b[0;34m----\x1b[0m] \x1b[0;1mparameterized.cc\x1b[0m:\x1b[0;31m71\x1b[0m: Assertion failed: Parameters: (1, 2.000000) (esc)
Expand Down

0 comments on commit a9df791

Please sign in to comment.