Commit Graph

42 Commits

Author SHA1 Message Date
nick edwards
99e9cd0694 Fix DequeTest and PagedArrayTest to use TEST_CASE_NAMED for all tests which previously used it, as well as new tests that have been recently added.
#rb chris.constantinescu
#jira none
#preflight 6409f17cc41a0a2a770b7ef1

[CL 24575701 by nick edwards in ue5-main branch]
2023-03-09 10:02:44 -05:00
nick edwards
dbf7df1ef5 Add missing include to TokenTest.h
#rb trivial
#jira none
#preflight skip

[CL 24573397 by nick edwards in ue5-main branch]
2023-03-09 05:51:20 -05:00
nick edwards
20040f5353 Add serializers for TPagedArray
#rb elias.lozadabenavent, steve.robb
#preflight 6405d349c13b7130d2ca260b, 6408a106aa00423335ab51ec, 6408a727827cf9251b20e1c0

[CL 24562507 by nick edwards in ue5-main branch]
2023-03-08 12:38:22 -05:00
Andriy Tylychko
3e75268230 removed the old FTicker that was deprecated in 5.0
#preflight 6400ac55c63aaf1e136075c5
#rb francis.hurteau
#preflight 640782937348fee37b0ab4c2

[CL 24544720 by Andriy Tylychko in ue5-main branch]
2023-03-07 13:53:21 -05:00
elias lozadabenavent
93e5b49a63 Updated TPagedArray:
* Fixed TPagedArray::Emplace to properly construct the element in the first available page.
* Updated API to match TArray's:
** Added Emplace_GetRef
** Added Add_GetRef
** Emplace now returns the insertion index.
** Add now returns the insertion index.
** Added a Reset overload with a parameter capacity.
** Added an Empty overload with a parameter capacity.
** Updated code to use UE_NODISCARD

* Updated unit tests
** Added Reserve Emplace multiple pages
** Added Emplace variants
** Added Empty with target capacity
** Added Empty vs Reset with target capacity

#tests passed unit tests
#rb steve.robb
#preflight 64072ae5c13b7130d24177d2

[CL 24541998 by elias lozadabenavent in ue5-main branch]
2023-03-07 12:01:43 -05:00
nick edwards
d9d54f3cc6 [Backout] - CL24537645
[FYI] nick.edwards
Original CL Desc
-----------------------------------------------------------------
Cherrypicked CL 23921097: Consistency: TEST_CASE_NAMED for Deque and PagedArray tests

#preflight 63d8608b31334253e538e9e1
#rnx
[FYI] elias.lozadabenavent

#ushell-cherrypick of 23921097 by chris.constantinescu

[CL 24537934 by nick edwards in ue5-main branch]
2023-03-07 06:24:32 -05:00
Mikita Hauruk
61486b8a30 Translated tests which not needed in new macro implementation
Translated Core\Tests\Math\ColorTests.cpp
Translated Core\Tests\Containers\TokenTest.cpp
Translated Core\Tests\Hash\Blake3Test.cpp
Translated Core\Tests\HAL\PlatformStringTests.cpp
Translated 3 files from String directory

#jira UE-176646
#rb adam.miezianko, chris.constantinescu, oleg.krasnov, mikalai.sukhikh
#preflight 6401a0cda20ddf1bf498910b, 6401a0e75515f4f57baf5c6d

[CL 24519078 by Mikita Hauruk in ue5-main branch]
2023-03-06 03:11:25 -05:00
Mikita Hauruk
f8eb728e13 Translated tests which needed in new macro implementation
Translated Core\Tests\Containers\StringViewTest.cpp
Translated all files under Core\Tests\Templates
Translated Core\Tests\Compression\CompressedBufferTest.cpp
Translated two files under Core\Tests\Serialization
Translate all files under Core\Tests\Memory

#jira UE-176646
#rb adam.miezianko, chris.constantinescu, oleg.krasnov, mikalai.sukhikh
#preflight 63fc53a3dd78dd50f65f6c68, 63fc53b32b1a2765f9511939

[CL 24496245 by Mikita Hauruk in ue5-main branch]
2023-03-03 04:24:53 -05:00
chris constantinescu
fd65d87219 TDeque test - potential memory issue when AGGRESSIVE_MEMORY_SAVING=1
#rb Elias.Lozada-Benavente
#preflight skip

[CL 24447474 by chris constantinescu in ue5-main branch]
2023-02-28 14:09:33 -05:00
saltanat janybekova
80562ad548 Migrate tests from files RobinHoodHashTableTest.cpp, StridedViewTest.cpp, TickerTests.cpp
#jira UE-174537
#rb adam.miezianko, chris.constantinescu
#preflight 63e0bde49103f2813b64efba
#preflight 63e0bdc75c0ce8f11babc99f

[CL 24028765 by saltanat janybekova in ue5-main branch]
2023-02-06 07:53:49 -05:00
henrik karlsson
8eca022454 [Core]
* RingBufferTest - Fixed c++20 compile error

#preflight 63daa1a3cf52968117253ca1
#rb none
#jira none

[CL 23952500 by henrik karlsson in ue5-main branch]
2023-02-01 13:05:39 -05:00
chris constantinescu
4eb5ed9575 Consistency: TEST_CASE_NAMED for Deque and PagedArray tests
#preflight 63d8608b31334253e538e9e1
#rnx

[CL 23921097 by chris constantinescu in ue5-main branch]
2023-01-30 22:06:39 -05:00
chris constantinescu
8af1c75006 All concurrent queue low level tests disabled
#preflight skip
#rnx

[CL 23915159 by chris constantinescu in ue5-main branch]
2023-01-30 15:30:17 -05:00
oleg krasnov
b245acf2dd Fixed false positive static analysis warnings (reccuring check) for the CHECK/REQUIRE_MESSAGE macros
#jira UE-173806
#rb adam.miezianko, chris.constantinescu
#preflight 63d80eed31334253e50d9c64

[CL 23914928 by oleg krasnov in ue5-main branch]
2023-01-30 15:21:58 -05:00
chris constantinescu
9b41b15f25 Another hanging test to skip (Catch2 only)
Likely requires better setup. Investigate Functional Test counterpart, which is never skipped.
#preflight skip
#rnx

[CL 23909524 by chris constantinescu in ue5-main branch]
2023-01-30 11:55:16 -05:00
chris constantinescu
7141252ed7 Skip hanging tests
#rnx
#preflight skip

[CL 23907635 by chris constantinescu in ue5-main branch]
2023-01-30 10:33:15 -05:00
mikalai sukhikh
4e553d5510 Migrate ClosableMpscQueueTest, ConcurrentQueuesTest, DepletableMpscQueueTest, RingBuffer tests to Catch2
#jira UE-174536
#rb adam.miezianko, chris.constantinescu
#preflight 63d26c5f450d5cdd0b4936b1
#preflight 63d26db4d05eec2267580215

[CL 23904800 by mikalai sukhikh in ue5-main branch]
2023-01-30 04:19:06 -05:00
saltanat janybekova
7dcdf18e6a Migrate tests from files RobinHoodHashTableTest.cpp, StridedViewTest.cpp, TickerTests.cpp
#jira UE-174537
#rb adam.miezianko, chris.constantinescu
#preflight 63d39f14ba4fadeef0eaa600
#preflight 63d3c10d31334253e5b78f2f

[CL 23904676 by saltanat janybekova in ue5-main branch]
2023-01-30 04:11:54 -05:00
oleg krasnov
a5212399bd Fix CIS static analysis warnings (reccuring check)
#jira none
#rb adam.miezianko, chris.constantinescu
#preflight 63d2b5e2d21dbe1d29ab0ccf
#preflight 63d2b5c15428dc67b1c92e61

[CL 23891072 by oleg krasnov in ue5-main branch]
2023-01-27 15:41:16 -05:00
oleg krasnov
f79a5edd5a Translate UniqueTest.cpp, TopologicalSort.cpp and BitArrayTests.cpp to Catch2.
Additionally it includes as a subset the changes for UE-174656

#jira UE-173806
#rb adam.miezianko, chris.constantinescu
#preflight 63d164c6ef20a5272daea68b
#preflight 63d164a594644f3e8ee34d2a

[CL 23855415 by oleg krasnov in ue5-main branch]
2023-01-25 15:45:59 -05:00
steve robb
736eeb9aaa Removed TIsSame usage from most of Core (part of a larger change to deprecate TIsSame).
#rb none
#preflight 63c5c3d70b358b97d15590e4

[CL 23741207 by steve robb in ue5-main branch]
2023-01-17 13:12:52 -05:00
chris constantinescu
4d7a8ddacc Remove compilation ambiguity from tests by renaming Engine\Source\Runtime\Core\Public\Tests\TestHarness.h - which is also present in LowLevelTestsRunner module - to TestHarnessAdapter.h
#rnx
#preflight N/A

[CL 23677998 by chris constantinescu in ue5-main branch]
2023-01-13 10:54:10 -05:00
brandon schaefer
9758ca0b9e Fix StringViewTest using TStringView over a temp object
[FYI] Devin.Doucette
#rb none
#preflight none

[CL 23481549 by brandon schaefer in ue5-main branch]
2022-12-12 15:08:57 -05:00
henrik karlsson
2b3ad519a5 Fixed compile error surfaced when orphaned headers got compiled (they were never included in their own module so compiler warning settings was never applied)
Changes include
* Removed #pragma once in cpp files
* Removed dll export on templated types
* Fixed code in headers that didn't compile (probably never included anywhere
* Added casting for code going from int to float. Header was never compiled in the owning module that had warnings as errors

#preflight 637b10c6fa348e848054bd0d
#rb none (devin.doucette for a couple files)

[CL 23218414 by henrik karlsson in ue5-main branch]
2022-11-21 03:22:34 -05:00
devin doucette
5a15aba0e3 Converted the TStringView test to a Low Level Test
#preflight 63642ac7d308b70e66173182
#rb Zousar.Shaker
#rnx

[CL 22988797 by devin doucette in ue5-main branch]
2022-11-04 12:12:57 -04:00