forked from bitcoin/bitcoin
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3154ea6 Bump version to 0.0.10.0-rc1 (dexX7)
- Loading branch information
Showing
4 changed files
with
60 additions
and
12 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
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,40 @@ | ||
#include "omnicore/version.h" | ||
|
||
#include "config/bitcoin-config.h" | ||
|
||
#include <string> | ||
|
||
#include <boost/test/unit_test.hpp> | ||
|
||
BOOST_AUTO_TEST_SUITE(omnicore_version_tests) | ||
|
||
BOOST_AUTO_TEST_CASE(version_comparison) | ||
{ | ||
BOOST_CHECK(OMNICORE_VERSION > 900300); // Master Core v0.0.9.3 | ||
} | ||
|
||
/** | ||
* The following tests are very unhandy, because any version bump | ||
* breaks the tests. | ||
* | ||
* TODO: might be removed completely. | ||
*/ | ||
|
||
BOOST_AUTO_TEST_CASE(version_string) | ||
{ | ||
BOOST_CHECK_EQUAL(OmniCoreVersion(), "0.0.10-rc1"); | ||
} | ||
|
||
BOOST_AUTO_TEST_CASE(version_number) | ||
{ | ||
BOOST_CHECK_EQUAL(OMNICORE_VERSION, 1000000); | ||
} | ||
|
||
BOOST_AUTO_TEST_CASE(config_package_version) | ||
{ | ||
// the package version is used in the file names: | ||
BOOST_CHECK_EQUAL(PACKAGE_VERSION, "0.0.10.0-rc1"); | ||
} | ||
|
||
|
||
BOOST_AUTO_TEST_SUITE_END() |
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