[SERVER-11639] Migrate 'startup tests' to C++ unit test or dbtest framework Created: 08/Nov/13  Updated: 18/May/15  Resolved: 18/May/15

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Unassigned
Resolution: Duplicate Votes: 1
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File startup_tests.cpp    
Issue Links:
Duplicate
duplicates SERVER-18463 Remove the StartupTests infrastructure Closed
Participants:

 Description   

The StartupTests introduce code that is not necessary for the server to run into the server runtime environment. The tests also rely on static initialization for registration.

Given that we now rely on our CI system to validate the server, the concept of startup tests is no longer helpful.

These tests should be migrated into C++ unit tests, either standalone or dbtest style. Some tests are probably redundant with existing tests, those should be removed.



 Comments   
Comment by Githook User [ 25/Nov/13 ]

Author:

{u'username': u'TylerBrock', u'name': u'Tyler Brock', u'email': u'tyler.brock@gmail.com'}

Message: SERVER-11639 migrate version startup test

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/80f0e7bd7a12c3e7f573161b9ee7333f1b0e33d9

Comment by Githook User [ 25/Nov/13 ]

Author:

{u'username': u'TylerBrock', u'name': u'Tyler Brock', u'email': u'tyler.brock@gmail.com'}

Message: SERVER-11639 migrate simpleRegex Startuptest to CppUnitTest

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/c0bfcf83377220ae5fe79322e55ce96ef7dc470d

Comment by Tyler Brock [ 15/Nov/13 ]

Attaching the output of grep annotated with code snippet where StartupTest was found.

Comment by Eliot Horowitz (Inactive) [ 10/Nov/13 ]

Some of these tests sanity check the environment (Endianness, etc...)
So while most should be moved, some need to remain and put in some new kind of thing.

Generated at Thu Feb 08 03:26:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.