View Issue Details

IDProjectCategoryView StatusLast Update
0005361DarkRadiantDesign/Codingpublic19.10.2020 17:15
Reportergreebo Assigned To 
PrioritynormalSeveritynormalReproducibilityhave not tried
Status confirmedResolutionopen 
Summary0005361: Unit testing infrastructure (Linux)
DescriptionGoogle tests are supported in Windows/VC++ by running the tests through Visual Studio. This issue's target is to have the unit tests up and running in Linux/GCC.

- configure.ac should detect whether the libgtest-dev library is available
- Makefile.am adjustments
- Maybe removal of boost.test
TagsNo tags attached.

Relationships

related to 0005200 resolvedgreebo Unit testing infrastructure 

Activities

There are no notes attached to this issue.

Related Changesets

DarkRadiant: master 52920389

2020-10-18 13:41:30

greebo

Details Diff
0005361: Start working on the automake files to compile the test executable Affected Issues
0005361
mod - Makefile.am Diff File
mod - configure.ac Diff File
add - test/Makefile.am Diff File

DarkRadiant: master 6bb4708e

2020-10-19 03:38:32

greebo

Details Diff
0005361: Rough implementation of the headless GL context module for Linux Affected Issues
0005361
mod - test/HeadlessOpenGLContext.cpp Diff File

DarkRadiant: master 32564499

2020-10-19 16:06:23

greebo

Details Diff
0005361: Module instance references automatically clear their cache once all modules have been uninitialised.
Since the core library is not unloaded from memory after calling dlclose() in Linux, no statics re-initialisation happens, so the references need to be safely cleared to allow the unit test sequence to run successfully.
Affected Issues
0005361
mod - include/imodule.h Diff File
mod - tools/msvc/properties/Tests.props Diff File

DarkRadiant: master dfe49ed2

2020-10-19 16:14:07

greebo

Details Diff
0005361: Makefile adjustments Affected Issues
0005361
mod - Makefile.am Diff File
mod - test/Makefile.am Diff File

DarkRadiant: master 993b1f1f

2020-10-19 17:15:23

greebo

Details Diff
0005361: Don't clear the list of registerable module creation functions, we need it multiple times in the test scenario in Linux (where modules are not unloaded and static initialisation doesn't occur more than once). Affected Issues
0005361
mod - libs/module/StaticModule.cpp Diff File
mod - libs/module/StaticModule.h Diff File

Issue History

Date Modified Username Field Change
18.10.2020 13:40 greebo New Issue
18.10.2020 13:40 greebo Relationship added related to 0005200
18.10.2020 13:40 greebo Status new => confirmed
19.10.2020 16:06 greebo Changeset attached => DarkRadiant master 32564499
19.10.2020 17:13 greebo Changeset attached => DarkRadiant master 52920389
19.10.2020 17:13 greebo Changeset attached => DarkRadiant master 6bb4708e
19.10.2020 17:13 greebo Changeset attached => DarkRadiant master dfe49ed2
19.10.2020 17:15 greebo Changeset attached => DarkRadiant master 993b1f1f