-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v2.0.0] Merge branch 'bleeding' (Version release)
- Loading branch information
Showing
155 changed files
with
4,564 additions
and
749 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[bumpversion] | ||
current_version = 1.3.1 | ||
commit = True | ||
commit = False | ||
|
||
[bumpversion:file:CMakeLists.txt] | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright (C) 2015 Franklin "Snaipe" Mathieu. | ||
# 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. | ||
|
||
# - Find dyncall | ||
# Find the native libcsptr headers and libraries. | ||
# | ||
# DYNCALL_INCLUDE_DIRS - where to find smart_ptr.h, etc. | ||
# DYNCALL_LIBRARIES - List of libraries when using libcsptr. | ||
# DYNCALL_FOUND - True if libcsptr has been found. | ||
|
||
# Look for the header file. | ||
FIND_PATH(DYNCALL_INCLUDE_DIR dyncall.h) | ||
|
||
# Look for the library. | ||
FIND_LIBRARY(DYNCALL_LIBRARY NAMES dyncall_s) | ||
|
||
# Handle the QUIETLY and REQUIRED arguments and set DYNCALL_FOUND to TRUE if all listed variables are TRUE. | ||
INCLUDE(FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(DYNCALL DEFAULT_MSG DYNCALL_LIBRARY DYNCALL_INCLUDE_DIR) | ||
|
||
# Copy the results to the output variables. | ||
IF(DYNCALL_FOUND) | ||
SET(DYNCALL_LIBRARIES ${DYNCALL_LIBRARY}) | ||
SET(DYNCALL_INCLUDE_DIRS ${DYNCALL_INCLUDE_DIR}) | ||
ELSE(DYNCALL_FOUND) | ||
SET(DYNCALL_LIBRARIES) | ||
SET(DYNCALL_INCLUDE_DIRS) | ||
ENDIF(DYNCALL_FOUND) | ||
|
||
MARK_AS_ADVANCED(DYNCALL_INCLUDE_DIRS DYNCALL_LIBRARIES) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
if(EXISTS "${PROJECT_SOURCE_DIR}/.gitmodules") | ||
message(STATUS "Updating submodules to their latest/fixed versions") | ||
message(STATUS "(this can take a while, please be patient)") | ||
|
||
### set the direcory where the submodules live | ||
set(GIT_SUBMODULES_DIRECTORY dependencies) | ||
|
||
### set the directory names of the submodules | ||
set(GIT_SUBMODULES libcsptr dyncall) | ||
|
||
### set each submodules's commit or tag that is to be checked out | ||
### (leave empty if you want master) | ||
|
||
### First, get all submodules in | ||
if(${GIT_SUBMODULES_CHECKOUT_QUIET}) | ||
execute_process( | ||
COMMAND git submodule update --init --recursive | ||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} | ||
OUTPUT_QUIET | ||
ERROR_QUIET | ||
) | ||
else() | ||
execute_process( | ||
COMMAND git submodule update --init --recursive | ||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} | ||
) | ||
endif() | ||
|
||
### Then, checkout each submodule to the specified commit | ||
# Note: Execute separate processes here, to make sure each one is run, | ||
# should one crash (because of branch not existing, this, that ... whatever) | ||
foreach(GIT_SUBMODULE ${GIT_SUBMODULES}) | ||
|
||
if( "${GIT_SUBMODULE_VERSION_${GIT_SUBMODULE}}" STREQUAL "" ) | ||
message(STATUS "no specific version given for submodule ${GIT_SUBMODULE}, checking out master") | ||
set(GIT_SUBMODULE_VERSION_${GIT_SUBMODULE} "master") | ||
endif() | ||
|
||
if(${GIT_SUBMODULES_CHECKOUT_QUIET}) | ||
execute_process( | ||
COMMAND git checkout ${GIT_SUBMODULE_VERSION_${GIT_SUBMODULE}} | ||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/${GIT_SUBMODULES_DIRECTORY}/${GIT_SUBMODULE} | ||
OUTPUT_QUIET | ||
ERROR_QUIET | ||
) | ||
else() | ||
message(STATUS "checking out ${GIT_SUBMODULE}'s commit/tag ${GIT_SUBMODULE_VERSION_${GIT_SUBMODULE}}") | ||
execute_process( | ||
COMMAND git checkout -q ${GIT_SUBMODULE_VERSION_${GIT_SUBMODULE}} | ||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/${GIT_SUBMODULES_DIRECTORY}/${GIT_SUBMODULE} | ||
) | ||
endif() | ||
|
||
endforeach(${GIT_SUBMODULE}) | ||
|
||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[submodule "dependencies/libcsptr"] | ||
path = dependencies/libcsptr | ||
url = https://github.com/Snaipe/libcsptr.git | ||
[submodule "dependencies/dyncall"] | ||
path = dependencies/dyncall | ||
url = https://github.com/Snaipe/dyncall.git | ||
[submodule "dependencies/wingetopt"] | ||
path = dependencies/wingetopt | ||
url = https://github.com/alex85k/wingetopt.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Contributing | ||
|
||
Contributions are welcomed, but must follow a simple set of rules in order to | ||
be merged. | ||
|
||
**Please follow these conventions if you want your pull request(s) accepted.** | ||
|
||
## General | ||
|
||
* Use 4 (four) spaces for indentation. | ||
* No trailing whitespaces. | ||
* 80 chars column limit. | ||
* No trash files. Trash files are by-products of the compilation process, or | ||
generated files that does not need to be under version control. | ||
* Pull requests must compile and work properly. | ||
* Pull requests must pass all tests. | ||
* Pull requests must be mergeable automatically. | ||
* Number of commits in a pull request should be kept to one commit and all | ||
additional commits must be squashed. | ||
* You may have more than one commit in a pull request if the commits are | ||
separate changes, otherwise squash them. | ||
|
||
## Translations | ||
|
||
* You can contribute new translation files for output messages, on the | ||
condition that you are fluent with the language itself. | ||
* Each correction on existing translations must be followed by a | ||
rationale ("why would the translation be better if the change is applied?") | ||
|
||
## Roadmap | ||
|
||
. | ||
|- .cmake/: CMake modules | ||
|- dependencies/: dependencies for building libcriterion | ||
|- doc/: Sphinx documentation files | ||
|- include/criterion/: Public API | ||
|- src/: Sources for libcriterion | ||
| `- log/: Output providers, all the output logic in general | ||
|- po/: Translation files, i18n stuff | ||
|- test/: Unit tests for libcriterion | ||
`- samples/: Sample files | ||
|- outputs/: Expected output files for the current samples | ||
`- tests/: Internal regression tests | ||
`- outputs/: Expected output files for the regression tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,26 @@ | ||
2015-09-14 Franklin "Snaipe" Mathieu <[email protected]> | ||
|
||
* criterion: version 2.0.0 | ||
* Breaking: ABI incompatibility with prior versions of criterion. You | ||
**must** recompile your tests. | ||
* Breaking: cr_abort_test(NULL) does not compile anymore. | ||
* Change: Changed all assertion macros to accept a printf format string as a | ||
message. | ||
* Change: Made the API C++11-compatible. | ||
* Change: Made the library ISO C compliant. You can now compile the library | ||
with VC 14+. | ||
* Addition: Added support for theories. | ||
* Addition: Added ability to test the exit status of a test. | ||
* Addition: Added C++11 throw assertions. | ||
* Addition: Added assert message localization. | ||
* Addition: Added test timeouts. | ||
* Addition: Added test standard i/o redirection & file comparison assertions. | ||
* Removal: Removed the deprecated prefixless assertion macros | ||
* Deprecation: Deprecated cr_abort_test. | ||
* Deprecation: cr_{assert,expect}_strings_* and cr_{assert,expect}_arrays_* | ||
are deprecated in favor of cr_{assert,expect}_str_* and | ||
cr_{assert,expect}_arr_* respectively. | ||
|
||
2015-08-20 Franklin "Snaipe" Mathieu <[email protected]> | ||
|
||
* criterion: version 1.3.1 | ||
|
Oops, something went wrong.