CMakeLists.txt 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #
  2. # Copyright (c) Contributors to the Open 3D Engine Project.
  3. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. #
  5. # SPDX-License-Identifier: Apache-2.0 OR MIT
  6. #
  7. #
  8. # LyTestTools tests.
  9. #
  10. if(NOT PAL_TRAIT_BUILD_TESTS_SUPPORTED)
  11. return()
  12. endif()
  13. # Unit tests.
  14. ly_add_pytest(
  15. NAME LyTestTools_Unit
  16. TEST_SUITE smoke
  17. PATH ${CMAKE_CURRENT_LIST_DIR}/unit/
  18. COMPONENT TestTools
  19. )
  20. get_property(O3DE_PROJECTS_NAME GLOBAL PROPERTY O3DE_PROJECTS_NAME)
  21. if(PAL_TRAIT_BUILD_HOST_TOOLS AND PAL_TRAIT_BUILD_TESTS_SUPPORTED AND AutomatedTesting IN_LIST O3DE_PROJECTS_NAME)
  22. # Integration tests.
  23. ly_add_pytest(
  24. NAME LyTestTools_Integ_Sanity
  25. PATH ${CMAKE_CURRENT_LIST_DIR}/integ/sanity_tests.py
  26. TEST_SERIAL
  27. TEST_SUITE smoke
  28. RUNTIME_DEPENDENCIES
  29. Legacy::Editor
  30. AssetProcessor
  31. AutomatedTesting.GameLauncher
  32. AutomatedTesting.ServerLauncher
  33. AutomatedTesting.Assets
  34. COMPONENT TestTools
  35. )
  36. ly_add_pytest(
  37. NAME LyTestTools_Integ_Codeowners
  38. PATH ${CMAKE_CURRENT_LIST_DIR}/integ/test_o3de_codeowners.py
  39. TEST_SUITE smoke
  40. COMPONENT TestTools
  41. )
  42. ly_add_pytest(
  43. NAME LyTestTools_Integ_ProcessUtils
  44. PATH ${CMAKE_CURRENT_LIST_DIR}/integ/test_process_utils.py
  45. TEST_SERIAL
  46. TEST_SUITE smoke
  47. COMPONENT TestTools
  48. )
  49. ly_add_pytest(
  50. NAME LyTestTools_Integ_ProcessUtilsLinux
  51. PATH ${CMAKE_CURRENT_LIST_DIR}/integ/test_process_utils_linux.py
  52. TEST_SERIAL
  53. TEST_SUITE smoke
  54. COMPONENT TestTools
  55. )
  56. # Regression tests.
  57. ly_add_pytest(
  58. NAME LyTestTools_Integ_RegressionTests
  59. PATH ${CMAKE_CURRENT_LIST_DIR}/integ/test_regression.py
  60. TEST_SERIAL
  61. TEST_SUITE periodic
  62. RUNTIME_DEPENDENCIES
  63. Legacy::Editor
  64. AssetProcessor
  65. AutomatedTesting.GameLauncher
  66. AutomatedTesting.Assets
  67. COMPONENT TestTools
  68. )
  69. endif()