02b6b1dbf4
* add remaining hydra code for test to run using new parallel test classes and interfaces
* fix return value of Secondary Grid Spacing property test for Grid Entity
* Add `or error_tracer.has_asserts` call for better error catching
* make `Tests.viewport_set` test check a `Report.critical_result()` check instead of `Report.result()` check
* add updates from PR feedback: makes constants for re-used component name strings, move test verifications into the Report() call instead of setting first then calling Report(), use builtin math.isclose function over custom function
* remove after_level_load() and split it into several function calls, add screenshot check, cleanup the GPU script and fix the rendering not displaying by setting global_extra_cmdline_args = []
* fixes the viewport Test check and splits up the helper functions into multiple functions
* add comment for global_extra_cmdline_args update in test and rename the zip file to f'screenshots_{formatted_timestamp}.zip'
Signed-off-by: jromnoa <jromnoa@amazon.com>
Co-authored-by: smurly <scottmur@amazon.com>
83 lines
2.4 KiB
CMake
83 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::Atom_TestSuite_Main
|
|
TEST_SUITE main
|
|
PATH ${CMAKE_CURRENT_LIST_DIR}/TestSuite_Main.py
|
|
TEST_SERIAL
|
|
TIMEOUT 600
|
|
RUNTIME_DEPENDENCIES
|
|
AssetProcessor
|
|
AutomatedTesting.Assets
|
|
Editor
|
|
COMPONENT
|
|
Atom
|
|
)
|
|
ly_add_pytest(
|
|
NAME AutomatedTesting::Atom_TestSuite_Main_Optimized
|
|
TEST_SUITE main
|
|
PATH ${CMAKE_CURRENT_LIST_DIR}/TestSuite_Main_Optimized.py
|
|
TEST_SERIAL
|
|
TIMEOUT 600
|
|
RUNTIME_DEPENDENCIES
|
|
AssetProcessor
|
|
AutomatedTesting.Assets
|
|
Editor
|
|
COMPONENT
|
|
Atom
|
|
)
|
|
ly_add_pytest(
|
|
NAME AutomatedTesting::Atom_TestSuite_Sandbox
|
|
TEST_SUITE sandbox
|
|
PATH ${CMAKE_CURRENT_LIST_DIR}/TestSuite_Sandbox.py
|
|
TEST_SERIAL
|
|
TIMEOUT 400
|
|
RUNTIME_DEPENDENCIES
|
|
AssetProcessor
|
|
AutomatedTesting.Assets
|
|
Editor
|
|
COMPONENT
|
|
Atom
|
|
)
|
|
ly_add_pytest(
|
|
NAME AutomatedTesting::Atom_TestSuite_Main_GPU
|
|
TEST_SUITE main
|
|
TEST_REQUIRES gpu
|
|
TEST_SERIAL
|
|
TIMEOUT 1200
|
|
PATH ${CMAKE_CURRENT_LIST_DIR}/TestSuite_Main_GPU.py
|
|
RUNTIME_DEPENDENCIES
|
|
AssetProcessor
|
|
AutomatedTesting.Assets
|
|
Editor
|
|
COMPONENT
|
|
Atom
|
|
)
|
|
ly_add_pytest(
|
|
NAME AutomatedTesting::Atom_TestSuite_Main_GPU_Optimized
|
|
TEST_SUITE main
|
|
TEST_REQUIRES gpu
|
|
TEST_SERIAL
|
|
TIMEOUT 1200
|
|
PATH ${CMAKE_CURRENT_LIST_DIR}/TestSuite_Main_GPU_Optimized.py
|
|
RUNTIME_DEPENDENCIES
|
|
AssetProcessor
|
|
AutomatedTesting.Assets
|
|
Editor
|
|
COMPONENT
|
|
Atom
|
|
)
|
|
endif()
|