47a8dbc1d0
* create PoC for starting point for parallel + batched Atom tests Signed-off-by: jromnoa <jromnoa@amazon.com> * CMakeLists.txt update Signed-off-by: jromnoa <jromnoa@amazon.com> * saving progress on re-factor for parallel and batched tests, added Tracer(), added Report(), and added new exit code validation method but code is unfinished still Signed-off-by: jromnoa <jromnoa@amazon.com> * finalize conversion of component tests into new optimized test setup for batched/parallel runs Signed-off-by: jromnoa <jromnoa@amazon.com> * fix REDO deletion check, remove class referencing a test not yet added to parallel runs Signed-off-by: jromnoa <jromnoa@amazon.com> * revert hydra_AtomEditorComponents_AddedToEntity.py back to its original version Signed-off-by: jromnoa <jromnoa@amazon.com> * re-add the DepthOfField component to expected_lines for non-optimized main suite (removed on accident) Signed-off-by: jromnoa <jromnoa@amazon.com> * remove test comments from legal header, add EditorEntity() class, remove hydra calls - updated for Decal component, but the next commit will get the rest Signed-off-by: jromnoa <jromnoa@amazon.com> * saving progress on converting over fully to using EditorEntity() per PR comments - almost done, will finish tomorrow Signed-off-by: jromnoa <jromnoa@amazon.com> * add new test setup docstring, fix the create entity test step wording, re-add accidental removal of string text from editor_entity_utils.py Signed-off-by: jromnoa <jromnoa@amazon.com> * finalize PR concerns, use EditorEntity object for most/all calls, tests pass when run Signed-off-by: jromnoa <jromnoa@amazon.com> * remove accidental change Signed-off-by: jromnoa <jromnoa@amazon.com> * update helper.open_level() call to not include 'Physics' in path, remove unnecessary f-string calls Signed-off-by: jromnoa <jromnoa@amazon.com> * editor_python_test_tools.asset_utils.Asset.find_asset_by_path(), add is_hidden() and is_visible() to editor_python_test_tools to use for verification, clean up UNDO/REDO comments, fix test order in file to match the order of the test files Signed-off-by: jromnoa <jromnoa@amazon.com>
80 lines
2.4 KiB
CMake
80 lines
2.4 KiB
CMake
#
|
|
# Copyright (c) Contributors to the Open 3D Engine Project.
|
|
# For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
#
|
|
#
|
|
|
|
################################################################################
|
|
# Atom Renderer: Automated Tests
|
|
# Runs EditorPythonBindings (hydra) scripts inside the Editor to verify test results for the Atom renderer.
|
|
################################################################################
|
|
|
|
if(PAL_TRAIT_BUILD_HOST_TOOLS AND PAL_TRAIT_BUILD_TESTS_SUPPORTED AND AutomatedTesting IN_LIST LY_PROJECTS)
|
|
ly_add_pytest(
|
|
NAME AutomatedTesting::AtomRenderer_HydraTests_Main
|
|
TEST_SUITE main
|
|
PATH ${CMAKE_CURRENT_LIST_DIR}/test_Atom_MainSuite.py
|
|
TEST_SERIAL
|
|
TIMEOUT 600
|
|
RUNTIME_DEPENDENCIES
|
|
AssetProcessor
|
|
AutomatedTesting.Assets
|
|
Editor
|
|
COMPONENT
|
|
Atom
|
|
)
|
|
ly_add_pytest(
|
|
NAME AutomatedTesting::AtomRenderer_HydraTests_MainOptimized
|
|
TEST_SUITE main
|
|
PATH ${CMAKE_CURRENT_LIST_DIR}/test_Atom_MainSuite_Optimized.py
|
|
TEST_SERIAL
|
|
TIMEOUT 600
|
|
RUNTIME_DEPENDENCIES
|
|
AssetProcessor
|
|
AutomatedTesting.Assets
|
|
Editor
|
|
COMPONENT
|
|
Atom
|
|
)
|
|
ly_add_pytest(
|
|
NAME AutomatedTesting::AtomRenderer_HydraTests_Sandbox
|
|
TEST_SUITE sandbox
|
|
PATH ${CMAKE_CURRENT_LIST_DIR}/test_Atom_SandboxSuite.py
|
|
TEST_SERIAL
|
|
TIMEOUT 400
|
|
RUNTIME_DEPENDENCIES
|
|
AssetProcessor
|
|
AutomatedTesting.Assets
|
|
Editor
|
|
COMPONENT
|
|
Atom
|
|
)
|
|
ly_add_pytest(
|
|
NAME AutomatedTesting::AtomRenderer_HydraTests_GPUTests
|
|
TEST_SUITE main
|
|
TEST_REQUIRES gpu
|
|
TEST_SERIAL
|
|
TIMEOUT 1200
|
|
PATH ${CMAKE_CURRENT_LIST_DIR}/test_Atom_GPUTests.py
|
|
RUNTIME_DEPENDENCIES
|
|
AssetProcessor
|
|
AutomatedTesting.Assets
|
|
Editor
|
|
COMPONENT
|
|
Atom
|
|
)
|
|
ly_add_pytest(
|
|
NAME AutomatedTesting::AtomRenderer_HydraTests_ShaderBuildPipeline
|
|
TEST_SUITE main
|
|
PATH ${CMAKE_CURRENT_LIST_DIR}/test_Atom_ShaderBuildPipelineSuite.py
|
|
TEST_SERIAL
|
|
TIMEOUT 600
|
|
RUNTIME_DEPENDENCIES
|
|
AssetProcessor
|
|
AutomatedTesting.Assets
|
|
Editor
|
|
)
|
|
endif()
|