CMakeLists.txt 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. # Unit tests.
  11. ly_add_pytest(
  12. NAME LyTestTools_Unit
  13. TEST_SUITE smoke
  14. PATH ${CMAKE_CURRENT_LIST_DIR}/unit/
  15. COMPONENT TestTools
  16. )
  17. get_property(O3DE_PROJECTS_NAME GLOBAL PROPERTY O3DE_PROJECTS_NAME)
  18. if(PAL_TRAIT_BUILD_HOST_TOOLS AND PAL_TRAIT_BUILD_TESTS_SUPPORTED AND AutomatedTesting IN_LIST O3DE_PROJECTS_NAME)
  19. # Integration tests.
  20. ly_add_pytest(
  21. NAME LyTestTools_Integ_Sanity
  22. PATH ${CMAKE_CURRENT_LIST_DIR}/integ/sanity_tests.py
  23. TEST_SERIAL
  24. TEST_SUITE smoke
  25. RUNTIME_DEPENDENCIES
  26. Legacy::Editor
  27. AssetProcessor
  28. AutomatedTesting.GameLauncher
  29. AutomatedTesting.ServerLauncher
  30. AutomatedTesting.Assets
  31. COMPONENT TestTools
  32. )
  33. ly_add_pytest(
  34. NAME LyTestTools_Integ_Codeowners
  35. PATH ${CMAKE_CURRENT_LIST_DIR}/integ/test_o3de_codeowners.py
  36. TEST_SUITE smoke
  37. COMPONENT TestTools
  38. )
  39. ly_add_pytest(
  40. NAME LyTestTools_Integ_ProcessUtils
  41. PATH ${CMAKE_CURRENT_LIST_DIR}/integ/test_process_utils.py
  42. TEST_SERIAL
  43. TEST_SUITE smoke
  44. COMPONENT TestTools
  45. )
  46. ly_add_pytest(
  47. NAME LyTestTools_Integ_ProcessUtilsLinux
  48. PATH ${CMAKE_CURRENT_LIST_DIR}/integ/test_process_utils_linux.py
  49. TEST_SERIAL
  50. TEST_SUITE smoke
  51. COMPONENT TestTools
  52. )
  53. # Regression tests.
  54. ly_add_pytest(
  55. NAME LyTestTools_Integ_RegressionTests
  56. PATH ${CMAKE_CURRENT_LIST_DIR}/integ/test_regression.py
  57. TEST_SERIAL
  58. TEST_SUITE periodic
  59. RUNTIME_DEPENDENCIES
  60. Legacy::Editor
  61. AssetProcessor
  62. AutomatedTesting.GameLauncher
  63. AutomatedTesting.Assets
  64. COMPONENT TestTools
  65. )
  66. endif()