6d1bb8e439
* adds the Light component GPU screenshot test to AutomatedTesting Signed-off-by: jromnoa <jromnoa@amazon.com> * add LIGHT_TYPE_PROPERTY constant to test script since it is re-used multiple times Signed-off-by: jromnoa <jromnoa@amazon.com> * removes redundant f strings, adds LIGHT_COMPONENT and LIGHT_TYPE_PROPERTY constants for re-use, removed formattng errors, increase CMakeLists.txt timeout, add attach_component_to_entity() to hydra_editor_utils.py Signed-off-by: jromnoa <jromnoa@amazon.com> * fix ImportError Signed-off-by: jromnoa <jromnoa@amazon.com> * moves the LIGHT_TYPES constant to a new file since scripts rely on it that do not have the Editor launched (can't see hydra bindings so failes with ModuleNotFound error) Signed-off-by: jromnoa <jromnoa@amazon.com>
50 lines
1.6 KiB
CMake
50 lines
1.6 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
|
|
)
|
|
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
|
|
)
|
|
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
|
|
)
|
|
endif()
|