aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2024-03-25GCC build fixShauren
(cherry picked from commit b705283d0e6c1619ea3e436a15d40a0670caf1a3)
2024-03-25Tests: Disable intentionally triggered warning in test codeShauren
(cherry picked from commit 37899f395476c5f1c9d092a8f8425d2a379eeac7)
2024-03-25Core/Utils: unique_trackable_ptr improvementsShauren
* Added comparison operators * Added type casting helper functions (cherry picked from commit f690b693386ef44754fa4528f3c565d563ad9468)
2024-03-25Fix tests buildShauren
(cherry picked from commit 1f3ebbb23cea1778ddc5ca52941861a98b667530)
2024-03-25Core/Utils: Added a custom smart pointer type unique_trackable_ptr - a ↵Shauren
specialized variant of std::shared_ptr that enforces unique ownership * This is intended to be used by external code unable to track object lifetime such as custom scripting engines (cherry picked from commit 32e54b6bd168c196adb45360b18721851162d731)
2024-03-01Tests: Add missing includeFabian
2023-01-06Tests: Fixed environment variable confg test compilation on windowsShauren
2023-01-06Core/Misc: Remove boost::heap::fibonacci_heap from header filesShauren
2023-01-06Core/Utils: Replace boost flat_set with our ownShauren
2022-12-17GCC build fixShauren
2022-03-13Core/Config: Implement config override with env vars (#26811)Anton Popovichenko
* Core/Config: Implement config override with env vars Implement overriding of configuration from the .conf file with environment variables. Environment variables keys are autogenerated based on the keys defined in .conf file. Usage example: $ export TC_DATA_DIR=/usr $ TC_WORLD_SERVER_PORT=8080 ./worldserver * Core/Config Fix typo in logs Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> * Core/Config Fix code style in EnvVarForIniKey Co-authored-by: Shauren <shauren.trinity@gmail.com> * Update tests/common/Config.cpp * Apply suggestions from code review Co-authored-by: Peter Keresztes Schmidt <carbenium@outlook.com> * Apply suggestions from code review Co-authored-by: Peter Keresztes Schmidt <carbenium@outlook.com> Co-authored-by: Anton Popovichenko <anton.popovichenko@mendix.com> Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> Co-authored-by: Shauren <shauren.trinity@gmail.com> Co-authored-by: Peter Keresztes Schmidt <carbenium@outlook.com> (cherry picked from commit 1ddd9dc19cc1df1a1ab8c6123283999f9dea6760)
2022-02-27[3.3.5] ChatCommands, the other half: chat command resolution refactor (PR ↵Treeston
#25463) (cherry picked from commit 1eca51b417678b9a48b28552925d5694105f82bb)
2022-02-05[3.3.5] Core/ChatCommands: Show error messages from argument parsers (PR #25443)Treeston
(cherry picked from commit 75f9e7396e35360f3016cc0cb21e72e20f5d96d5)
2022-02-04Common/Util: Trinity::StringTo<double> support (PR #25364)Treeston
(cherry picked from commit f45aa5cac1579e87cbc599ffb58e10e662066792)
2022-02-04Core/Misc: DBC std::array refactors, and |Hachievement unit testsTreeston
(cherry picked from commit 3fbbe7cfbe1bc51db12bdc1ec7b21c16d1716366)
2022-02-04UnitTests: Add a first set of item hyperlink testsTreeston
(cherry picked from commit 5394b2ef0f1c7b48e8886257b93698358abb575f)
2022-02-04UnitTests: Add basic hyperlink unit testTreeston
(cherry picked from commit 86e6438008cf5179a2ff3b22c2e0459ee7aaa20c)
2022-02-04Core/ChatCommands: C++17 cleanup (again) (PR #25323)Treeston
(cherry picked from commit 2f7d2ef3e979ecd0536f3a3713e56c8e59652a47)
2022-02-04UnitTests: Cleanup + StringConvert/ChatCommand tests (PR #25353)Treeston
(cherry picked from commit 8ce3635d39dbdd101ddf180a66c483162df99c04)
2022-02-04Build/Tests: Set all our compile flags on testsShauren
Closes #25349 (cherry picked from commit f8a5783327f5ef5606453bcb9c906ba1297538ff)
2022-02-04Build: Put tests-common and sfmt under correct folders when WITH_SOURCE_TREE ↵Shauren
is set to hierarchical-folders (cherry picked from commit 19f69fcf060c4abba0cd3102529a4203eecac394)
2022-01-24Core/Common: Merge TimeTrackerSmall with TimeTrackerCarbenium
(cherry picked from commit 228696bf80bcd55d35445cd24ae119020c310f88)
2022-01-24Core/Common: Add a std::chrono interface to TimeTrackerSmallCarbenium
New methods: TimeTrackerSmall(Milliseconds expiry); void Update(Milliseconds diff); void Reset(Milliseconds expiry) Milliseconds GetExpiry() const Removed methods: int32 GetExpiry() const Also add basic unit tests. Core/Scripts: Use std::chrono interface of TimeTrackerSmall (cherry picked from commit e55516348dbabaa8c9d559426315f3f70967acaa)
2022-01-24tests/EventMap: Add tests for RepeatCarbenium
(cherry picked from commit e6f36f83b8af4d973a96f01c6095b075dd12f5d5)
2022-01-24Core/EventMap: Clarify documentation of ScheduleEventCarbenium
(cherry picked from commit 7865c1c197f4eb9165ef3ab26eb4f750a5b58960)
2022-01-24Core/EventMap: Unify semantics of DelayEventsCarbenium
DelayEvents(Milliseconds delay) had different semantics than DelayEvents(Milliseconds delay, uint32 group). The first method delayed the events only in the case the internal timer already ticked at least for the amount of delay. In contrast the latter method delayed events regardless of the internal timer value. Use the latter semantics for DelayEvents(Milliseconds delay) as well which makes the outcome more predictable. Adapt tests accordingly. (cherry picked from commit 4470b9122379dc846b322a441951a03913912b71)
2022-01-24tests/EventMap: Test for event past it's execution timeCarbenium
With the switch to std::chrono return type of GetTimeUntilEvent we don't run into an overflow condition which happend with the previous uint32 return value if the events scheduled execution time is in the past. Test for this case. (cherry picked from commit e877f988d1c4e1361612f3d5c4ebe915f746aee5)
2022-01-23EventMap: Change GetTimeUntilEvent to return std::chrono typesCarbenium
(cherry picked from commit 8cb35b0d5f1462387033e6bd2f99d0ea829fdcd8)
2022-01-23tests: Add some basic tests for EventMapCarbenium
(cherry picked from commit 7950275697c9d48781ad61cf3749e0392ee660bc)
2022-01-23dep: Add catch2 unit test framework and wire it upCarbenium
To enable the test suite, make sure to configure CMake with -DBUILD_TESTING=1 , since it is disabled by default. The catch2 dependency will be downloaded during configure time. Also add a new target "tests-common", which includes unit tests for the "common" project. To finally run the tests use the "test" target. CircleCI: Run unit tests (cherry picked from commit 6a28ee7b2a4269aa7e43265d1cd0067537e3e883)