Commit Graph

78 Commits

Author SHA1 Message Date
stephen ma
75512cbfc0 LowLevelTests: Allow GInternalProjectName to be defined by UE_PROJECT_NAME
#rb Chris.Constantinescu, Michael.Kirzinger
#preflight 64271ce1861bf344ce41070c

[CL 24927687 by stephen ma in ue5-main branch]
2023-04-05 10:20:42 -04:00
Mikita Hauruk
d38503fddd Translated tests from Engine\Source\Runtime\Core\Private\Tests\HAL
#jira UE-179766
#rb chris.constantinescu, oleg.krasnov, mikalai.sukhikh
#preflight 6417f3c3345ab08524995e40, 6417f43c42618c85c46420ee

[CL 24713496 by Mikita Hauruk in ue5-main branch]
2023-03-20 03:31:51 -04:00
Ryan Gerleve
4fdbfce9a0 Add a stub low-level tests program for the NetworkPrediction plugin.
Migrated and updated the only test code I found in the plugin, some basic predicted cue functionality, to the test program.
Low-level test runner InitAll helper function now sets GIsRunning to true, NetworkPrediction is checking for this during initialization.

#jira none
#rb brian.bekich, chris.constantinescu
#preflight 6413818332723d4a20e515c8

[CL 24679630 by Ryan Gerleve in ue5-main branch]
2023-03-16 17:08:41 -04:00
chris constantinescu
b0e2605d0a Nightly Low Level tests must run only slow and performance tests
Additional small quality of life fixes
#rb Jerome.Delattre, Rob.Huyett
#preflight 64120656bd6894c435c1f7c4

[CL 24660566 by chris constantinescu in ue5-main branch]
2023-03-15 15:35:19 -04:00
Ryan Gerleve
334fce160a Run EDelayedRegisterRunPhase::PreObjectSystemReady and EDelayedRegisterRunPhase::ObjectSystemReady in the low level test runner's InitCoreUObject helper.
Replication system tests: initialize some ini settings in the PreObjectSystemReady phase to prevent "Generating descriptor for struct that has custom serialization" warnings.

#jira UE-178241
#preflight 640123f33206d45d20ca57d5
#rb peter.engstrom, chris.constantinescu

[CL 24499028 by Ryan Gerleve in ue5-main branch]
2023-03-03 10:51:27 -05:00
Matt Peters
b76ee66366 Add -buildmachine to LowLevelTests, so that DDC performance warnings can be downgraded to display.
#rnx
#rb Zousar.Shaker, Devin.Doucette
#preflight 63fd16fe437ce3e7f3449cce

[CL 24434214 by Matt Peters in ue5-main branch]
2023-02-27 17:44:59 -05:00
Mikita Hauruk
b9a6423823 Translated tests from Engine\Source\Runtime\Core\Private\Tests\Math
Added CHECK_FALSE_MESSAGE

#jira UE-176630
#rb adam.miezianko, chris.constantinescu, oleg.krasnov, mikalai.sukhikh
#preflight 63f5e30e500c05a6241283b8, 63f5e306ff5afbbb038a30ab

[CL 24419943 by Mikita Hauruk in ue5-main branch]
2023-02-27 00:26:21 -05:00
chris constantinescu
2bfbb96df8 Mute missing packages when using platform file stub
#rb Ryan.Gerleve
#preflight 63f92d1a2b1a2765f99cccca

[CL 24411374 by chris constantinescu in ue5-main branch]
2023-02-24 18:10:16 -05:00
chris constantinescu
cd0c323c11 LLT options: Stub platform file and mock some default engine resources for low level tests that run with the engine.
- bUsePlatformFileStub = true replaces the default platform file. The default PF is saved and can be reused at any time.
The side effect is lots of warnings for missing files and object loading errors which is acceptable for low level tests.
- bMockEngineDefaults = true sets some mandatory engine defaults (materials, fonts etc) that can only be loaded from cooked assets.
#jira UE-178194
#rb Ryan.Gerleve
#preflight 63f8e7051206d91a2bd8b0cd

[CL 24407283 by chris constantinescu in ue5-main branch]
2023-02-24 15:27:37 -05:00
Ryan Gerleve
924855dfa9 Add a couple calls to RunAndClearDelayedAutoRegisterDelegates from the low-level tests runner to run additional initialization code, required to run tests that depend on the engine module on some platforms.
#jira UE-166991
#preflight 63f62f82ff5afbbb03a73268
#rb chris.constantinescu

[CL 24361348 by Ryan Gerleve in ue5-main branch]
2023-02-22 10:23:19 -05:00
wouter dek
3ae5c6c895 Convert shader type and parameter struct metadata from global variables to static locals to defer initialization. This allows us to create these types dynamically at startup, while keeping the rest of the infrastructure as is.
#rb jason.nadro
#preflight 63f352130803c73accb744f1

[CL 24311526 by wouter dek in ue5-main branch]
2023-02-20 06:10:39 -05:00
chris constantinescu
5a3a0cc990 Online LLT fix global setup
#rb stephen.ma
#preflight 63ee6fed4d2bd4346664ce25

[CL 24265150 by chris constantinescu in ue5-main branch]
2023-02-16 14:19:09 -05:00
Arciel Rekman
84d3f99470 [Backout] - CL24227640
#fyi wouter.dek

The problem with this change is that late-created shader types will not be in the shadertype list and as such will not be included in the shader map even if their ShouldCompilePermutation() would return true.

Original CL Desc
-----------------------------------------------------------------
Convert shader type and parameter struct metadata from global variables to static locals to defer initialization. This allows us to create these types dynamically at startup, while keeping the rest of the infrastructure as is.

#preflight 63eca58e7d2ec3d2fd286d9a
#rb zach.bethel

[CL 24240825 by Arciel Rekman in ue5-main branch]
2023-02-15 15:57:24 -05:00
wouter dek
7a70fa6a8f Convert shader type and parameter struct metadata from global variables to static locals to defer initialization. This allows us to create these types dynamically at startup, while keeping the rest of the infrastructure as is.
#preflight 63eca58e7d2ec3d2fd286d9a
#rb zach.bethel

[CL 24227640 by wouter dek in ue5-main branch]
2023-02-15 05:55:29 -05:00
chris constantinescu
4e7e7f9f3f LLT cleanup and improvements/updates:
- remove dependency on LaunchEngineLoop.cpp which also allows compilation against engine to succeed
- LowLevelTestsRunner no dependency on engine modules required: Launch, Core, Project
- EXPLICIT_TESTS_TARGET definition for self-contained tests: test modules and targets that derive from TestModuleRules/TestTargetRules respectively
- Cleanup Launch dependencies from existing explicit tests
- Cleanup redundant flags from existing explicit tests
- rename Self -> Foundation for in Horde
- additional platform fixes
Default #preflight 63e14d37244dc45a20e29337
All platform/tests LLTs #preflight 63e022f91b44ee7cb1c11d60
#rnx

[CL 24035900 by chris constantinescu in ue5-main branch]
2023-02-06 14:27:24 -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
oleg krasnov
c2e80f7007 Implement REQUIRE_MESSAGE macro
#jira UE-174660
#rb adam.miezianko, chris.constantinescu
#preflight 63d2614f574ab9cae41d0f5c
#preflight 63d26122450d5cdd0b4659aa

[CL 23910927 by oleg krasnov in ue5-main branch]
2023-01-30 12:42:57 -05:00
joe pribele
f8cb577af2 some minor fixes to WarnFilterScope
remove assignment and copy constructors

https://p4-swarm.epicgames.net/reviews/23876768
#rb devin.doucette
#preflight 63d308ef5354589b5c96ae35

[CL 23878035 by joe pribele in ue5-main branch]
2023-01-26 18:32:50 -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
joe pribele
d178978515 added a WarnFilterScope for filtering Warning messages from appear in the log for tests
Horde greps the log for warnings and will flag the warnings if they appear

https://p4-swarm.epicgames.net/reviews/23816461

#rb zousar.shaker
#preflight 63cefb25f2318350a2178e92

[CL 23822773 by joe pribele in ue5-main branch]
2023-01-23 17:14:28 -05:00
joe pribele
12cd475b42 changed REQUIRE_CHECK and REQUIRE_ENSURE test macros to disable themselves if DO_CHECK or DO_ENSURE it not enabled
this allows usage of REQUIRE_CHECK to not have to be guarded

https://p4-swarm.epicgames.net/reviews/23784409

#rb devin.doucette
#preflight 63cacd481835336af8f9bb2e

[CL 23792394 by joe pribele in ue5-main branch]
2023-01-20 12:35:12 -05:00
joe pribele
f635a843ea enabling REQUIRE_CHECK tests
supressed outputing the log line that Horde was flagging as an error

#rb devin.doucette
#fyi ben.marsh
#preflight 63c96f80b06522475035ebf0

[CL 23774731 by joe pribele in ue5-main branch]
2023-01-19 11:38:44 -05:00
joe pribele
8b67d0a16f fix for FName not resolving to strings in the debugger
changed testmain in lowleveltestrunner to use IMPLEMENT_APPLICATION which does all the correct things
https://p4-swarm.epicgames.net/reviews/23252374

#rb devin.doucette
#preflight 63b749a4577437afe682d0a3

[CL 23593508 by joe pribele in ue5-main branch]
2023-01-05 17:18:59 -05:00
Devin Doucette
3d6eadfbd6 LowLevelTests: Removed unnecessary public includes of DDC
#preflight 63920182cf0e31f7279e4644
#rb Zousar.Shaker
#rnx

[CL 23446983 by Devin Doucette in ue5-main branch]
2022-12-08 10:46:59 -05:00
joe pribele
746e381b12 compile fix for when DO_ENSURE is off
and compile fix for SHIPPING
#preflight 6390d7c4c0652bbec2055937

[CL 23431790 by joe pribele in ue5-main branch]
2022-12-07 13:40:53 -05:00