[SERVER-69843] Make generic PrettyPrinterUnitTest pseudobuilder Created: 20/Sep/22  Updated: 29/Oct/23  Resolved: 19/May/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: New Feature Priority: Major - P3
Reporter: Daniel Moody Assignee: Daniel Moody
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-69842 Write gdb pretty-printer test of ABT ... Closed
Assigned Teams:
Server Development Platform
Backwards Compatibility: Fully Compatible
Participants:

 Description   

In SERVER-62995, we added a prettyprinter unit test. Some of the setup is specific and hardcoded to that particular test but we may want to support the addition of other tests (like SERVER-69842), and not require so much boilerplate.

It could be general in the sense that someone could make a some arbitrary piece of code, then a list of gdb commands to run and the regex to apply to the output. The frame work would be responsible for then building the tests, tagging them as a pretty-printer AIB test component, and also generating the launchers so there is a single no arg entry point to fit in our current unit tests framework. The launchers would ensure to setup the python environment.

Similar to our CppUnitTest builder in the SConscripts but with different inputs (the source, list of gdb commands, and regex applied to output, instead of just source files) (edited)



 Comments   
Comment by Githook User [ 19/May/23 ]

Author:

{'name': 'Daniel Moody', 'email': 'dmoody256@gmail.com', 'username': 'dmoody256'}

Message: SERVER-76740 SERVER-69843 added pretty printer tests framework
Branch: master
https://github.com/mongodb/mongo/commit/1450624c71fb35ab61b36e87c7348395e659c395

Generated at Thu Feb 08 06:14:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.