CMakeLists.txt 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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(NOT PAL_TRAIT_BUILD_TESTS_SUPPORTED OR NOT PAL_TRAIT_BUILD_HOST_TOOLS)
  12. return()
  13. endif()
  14. o3de_pal_dir(pal_dir ${CMAKE_CURRENT_LIST_DIR}/Platform/${PAL_PLATFORM_NAME} "${gem_restricted_path}" "${gem_path}" "${gem_parent_relative_path}")
  15. include(${pal_dir}/PAL_${PAL_PLATFORM_NAME_LOWERCASE}.cmake)
  16. if(PAL_TRAIT_LOFT_SAMPLE_PERF_DX12_TESTS_SUPPORTED)
  17. ly_add_pytest(
  18. NAME LoftSample::PeriodicPerformanceBenchmarks_DX12
  19. PATH ${CMAKE_CURRENT_LIST_DIR}/Automated/benchmark_runner_periodic_suite_dx12.py
  20. TEST_REQUIRES gpu
  21. TEST_SUITE main
  22. TEST_SERIAL
  23. TIMEOUT 1200
  24. RUNTIME_DEPENDENCIES
  25. AssetProcessor
  26. AssetProcessorBatch
  27. LoftSample.GameLauncher
  28. LoftSample.Assets
  29. )
  30. endif()
  31. if(PAL_TRAIT_LOFT_SAMPLE_PERF_VULKAN_TESTS_SUPPORTED)
  32. ly_add_pytest(
  33. NAME LoftSample::PeriodicPerformanceBenchmarks_Vulkan
  34. PATH ${CMAKE_CURRENT_LIST_DIR}/Automated/benchmark_runner_periodic_suite_vulkan.py
  35. TEST_REQUIRES gpu
  36. TEST_SUITE main
  37. TEST_SERIAL
  38. TIMEOUT 1200
  39. RUNTIME_DEPENDENCIES
  40. AssetProcessor
  41. AssetProcessorBatch
  42. LoftSample.GameLauncher
  43. LoftSample.Assets
  44. )
  45. endif()