diff options
author | Tyler Brock <tyler.brock@gmail.com> | 2013-11-22 17:49:32 -0500 |
---|---|---|
committer | Matt Kangas <matt.kangas@mongodb.com> | 2013-11-25 14:28:22 -0500 |
commit | 80f0e7bd7a12c3e7f573161b9ee7333f1b0e33d9 (patch) | |
tree | bcfff921989c22fecd16be1dd3bb9e9ce3b92aa1 /src/mongo/util/version.cpp | |
parent | c625d03f2dcc5086c0f4cb7e23cf31bf59c08836 (diff) | |
download | mongo-80f0e7bd7a12c3e7f573161b9ee7333f1b0e33d9.tar.gz |
SERVER-11639 migrate version startup test
Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Diffstat (limited to 'src/mongo/util/version.cpp')
-rw-r--r-- | src/mongo/util/version.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/mongo/util/version.cpp b/src/mongo/util/version.cpp index 349ad897e66..c58d3ee407e 100644 --- a/src/mongo/util/version.cpp +++ b/src/mongo/util/version.cpp @@ -31,7 +31,6 @@ #include "mongo/util/net/ssl_manager.h" #include "mongo/util/processinfo.h" #include "mongo/util/ramlog.h" -#include "mongo/util/startup_test.h" #include "mongo/util/stringutils.h" #include "mongo/util/version.h" @@ -198,28 +197,4 @@ namespace mongo { result.appendBool( "debug" , debug ); result.appendNumber("maxBsonObjectSize", BSONObjMaxUserSize); } - - class VersionArrayTest : public StartupTest { - public: - void run() { - verify( toVersionArray("1.2.3") == BSON_ARRAY(1 << 2 << 3 << 0) ); - verify( toVersionArray("1.2.0") == BSON_ARRAY(1 << 2 << 0 << 0) ); - verify( toVersionArray("2.0.0") == BSON_ARRAY(2 << 0 << 0 << 0) ); - - verify( toVersionArray("1.2.3-pre-") == BSON_ARRAY(1 << 2 << 3 << -100) ); - verify( toVersionArray("1.2.0-pre-") == BSON_ARRAY(1 << 2 << 0 << -100) ); - verify( toVersionArray("2.0.0-pre-") == BSON_ARRAY(2 << 0 << 0 << -100) ); - - verify( toVersionArray("1.2.3-rc0") == BSON_ARRAY(1 << 2 << 3 << -10) ); - verify( toVersionArray("1.2.0-rc1") == BSON_ARRAY(1 << 2 << 0 << -9) ); - verify( toVersionArray("2.0.0-rc2") == BSON_ARRAY(2 << 0 << 0 << -8) ); - - // Note that the pre of an rc is the same as the rc itself - verify( toVersionArray("1.2.3-rc3-pre-") == BSON_ARRAY(1 << 2 << 3 << -7) ); - verify( toVersionArray("1.2.0-rc4-pre-") == BSON_ARRAY(1 << 2 << 0 << -6) ); - verify( toVersionArray("2.0.0-rc5-pre-") == BSON_ARRAY(2 << 0 << 0 << -5) ); - - LOG(1) << "versionArrayTest passed" << endl; - } - } versionArrayTest; } |