Adding Integration tests for later building option (#126)
* Adding Integeration tests for later building option * Update CMakeLists.txt --------- Co-authored-by: Ammar ELWazir <aelwazir@amd.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
af750616db
Коммит
e4bb0df9d5
@@ -7,8 +7,11 @@ if ( NOT DEFINED TEST_DIR )
|
||||
set ( TEST_DIR ${CMAKE_CURRENT_SOURCE_DIR} )
|
||||
set ( TEST_BINARY_DIR ${CMAKE_BINARY_DIR} )
|
||||
project ( ${EXE_NAME} )
|
||||
list ( APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../cmake_modules" )
|
||||
## Set build environment
|
||||
include ( env )
|
||||
enable_testing()
|
||||
include(CTest)
|
||||
endif ()
|
||||
|
||||
## Util sources
|
||||
@@ -83,7 +86,8 @@ install(FILES ${TEST_DIR}/run_install.sh RENAME run_tests.sh
|
||||
|
||||
add_test(NAME legacy-tests COMMAND "${TEST_BINARY_DIR}/run.sh")
|
||||
|
||||
if(AQLPROFILE_BUILD_TESTS)
|
||||
option(AQLPROFILE_BUILD_INTEGERATION_TESTS "Build integration tests" ON)
|
||||
|
||||
if(AQLPROFILE_BUILD_INTEGERATION_TESTS)
|
||||
add_subdirectory(integration)
|
||||
enable_testing()
|
||||
endif()
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
#include "hsa/hsa_ext_amd.h"
|
||||
#include "aql_profile_v2.h"
|
||||
#include "aqlprofile-sdk/aql_profile_v2.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
@@ -11,6 +11,8 @@ if(NOT DEFINED AQLPROFILE_TARGET)
|
||||
HINTS /opt/rocm ${CMAKE_INSTALL_PREFIX}
|
||||
PATHS /opt/rocm
|
||||
PATH_SUFFIXES lib)
|
||||
enable_testing()
|
||||
include(CTest)
|
||||
endif()
|
||||
|
||||
find_package(
|
||||
|
||||
@@ -38,8 +38,7 @@
|
||||
#include <hsa/hsa.h>
|
||||
#include <hsa/hsa_ext_amd.h>
|
||||
#include <hsa/hsa_ven_amd_aqlprofile.h>
|
||||
//#include "/opt/rocm/include/aqlprofile-sdk/aql_profile_v2.h"
|
||||
#include "aql_profile_v2.h"
|
||||
#include "aqlprofile-sdk/aql_profile_v2.h"
|
||||
|
||||
#define CHECK_HSA(x) if ((x) != HSA_STATUS_SUCCESS) { std::cerr << __FILE__ << " error at " << __LINE__ << std::endl; exit(-1); }
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include <hsa/hsa.h>
|
||||
#include <hsa/hsa_ext_amd.h>
|
||||
#include <hsa/hsa_ven_amd_aqlprofile.h>
|
||||
#include "aql_profile_v2.h"
|
||||
#include "aqlprofile-sdk/aql_profile_v2.h"
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <atomic>
|
||||
|
||||
Ссылка в новой задаче
Block a user