CMakeLists.txt 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. ################################################################################
  9. # Automated Tests
  10. ################################################################################
  11. if(PAL_TRAIT_BUILD_HOST_TOOLS AND PAL_TRAIT_BUILD_TESTS_SUPPORTED)
  12. ly_add_pytest(
  13. NAME AtomSampleViewer::PythonMainTests
  14. PATH ${CMAKE_CURRENT_LIST_DIR}/Automated/test_AtomSampleViewer_main_suite.py
  15. TEST_REQUIRES gpu
  16. TEST_SUITE main
  17. TEST_SERIAL
  18. TIMEOUT 600
  19. RUNTIME_DEPENDENCIES
  20. AssetProcessor
  21. AssetProcessorBatch
  22. AtomSampleViewerStandalone
  23. AtomSampleViewer.GameLauncher
  24. AtomSampleViewer.Assets
  25. )
  26. ly_add_pytest(
  27. NAME AtomSampleViewer::PythonPeriodicTests
  28. PATH ${CMAKE_CURRENT_LIST_DIR}/Automated/test_AtomSampleViewer_periodic_suite.py
  29. TEST_REQUIRES gpu
  30. TEST_SUITE periodic
  31. TEST_SERIAL
  32. TIMEOUT 1200
  33. RUNTIME_DEPENDENCIES
  34. AssetProcessor
  35. AssetProcessorBatch
  36. AtomSampleViewerStandalone
  37. AtomSampleViewer.GameLauncher
  38. AtomSampleViewer.Assets
  39. )
  40. ly_add_pytest(
  41. NAME AtomSampleViewer::PythonWARPTests
  42. PATH ${CMAKE_CURRENT_LIST_DIR}/Automated/test_AtomSampleViewer_warp_suite.py
  43. TEST_SUITE main
  44. TEST_SERIAL
  45. TIMEOUT 300
  46. RUNTIME_DEPENDENCIES
  47. AssetProcessor
  48. AssetProcessorBatch
  49. AtomSampleViewerStandalone
  50. AtomSampleViewer.GameLauncher
  51. AtomSampleViewer.Assets
  52. )
  53. ly_add_pytest(
  54. NAME AtomSampleViewer::PeriodicPerformanceBenchmarks
  55. PATH ${CMAKE_CURRENT_LIST_DIR}/Automated/benchmark_runner_periodic_suite.py
  56. TEST_REQUIRES gpu
  57. TEST_SUITE periodic
  58. TEST_SERIAL
  59. TIMEOUT 600
  60. RUNTIME_DEPENDENCIES
  61. AssetProcessor
  62. AssetProcessorBatch
  63. AtomSampleViewerStandalone
  64. AtomSampleViewer.GameLauncher
  65. AtomSampleViewer.Assets
  66. )
  67. endif()