Fixed test runner files and output binary files (#464)

Put "run_conformance.py" and all test runner files ".csv" in build directory

Put "run_conformance.py" and all test runner files ".csv" in build directory
Added steps in CMakeLists.txt to copy the ".csv" files and "run_conformance.py" from 'test_conformance' directory

Signed-off-by: bhargavthriler <bhargavthriler@gmail.com>

cl12: change binary names to aligned with the test runner files

Changed output binary names to match with the test runner files .csv files

Signed-off-by: bhargavthriler <bhargavthriler@gmail.com>

Removed relative paths, changed comment style

Removed relative paths and replaced with CMake variables
Changed comment style to match with remaining comment style to maintain consistency

changed destination relative path with cmake variable

Signed-off-by: bhargavthriler <bhargavthriler@gmail.com>

fixed binary name in test runner files

Signed-off-by: bhargavthriler <bhargavthriler@gmail.com>
This commit is contained in:
Bhargav Das
2020-01-10 20:42:11 +05:30
committed by Kévin Petit
parent db585e1fd0
commit 2c0abd3f75
41 changed files with 224 additions and 214 deletions

View File

@@ -1,4 +1,4 @@
add_executable(conformance_test_cl_copy_images
add_executable(test_cl_copy_images
main.cpp
test_copy_generic.cpp
test_copy_1D.cpp
@@ -45,10 +45,10 @@ set_source_files_properties(
../../../test_common/harness/msvc9.c
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_cl_copy_images
TARGET_LINK_LIBRARIES(test_cl_copy_images
${CLConform_LIBRARIES})
add_dependencies(OpenCLCTS conformance_test_cl_copy_images)
install(TARGETS conformance_test_cl_copy_images
add_dependencies(OpenCLCTS test_cl_copy_images)
install(TARGETS test_cl_copy_images
DESTINATION "${CLConf_OUT_DIR}"
COMPONENT OpenCLCTS)

View File

@@ -1,4 +1,4 @@
add_executable(conformance_test_cl_fill_images
add_executable(test_cl_fill_images
main.cpp
test_fill_generic.cpp
test_fill_1D.cpp
@@ -39,10 +39,10 @@ set_source_files_properties(
../../../test_common/harness/msvc9.c
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_cl_fill_images
TARGET_LINK_LIBRARIES(test_cl_fill_images
${CLConform_LIBRARIES})
add_dependencies(OpenCLCTS conformance_test_cl_fill_images)
install(TARGETS conformance_test_cl_fill_images
add_dependencies(OpenCLCTS test_cl_fill_images)
install(TARGETS test_cl_fill_images
DESTINATION "${CLConf_OUT_DIR}"
COMPONENT OpenCLCTS)

View File

@@ -1,4 +1,4 @@
add_executable(conformance_test_cl_get_info
add_executable(test_cl_get_info
main.cpp
test_1D.cpp
test_2D.cpp
@@ -36,10 +36,10 @@ set_source_files_properties(
../../../test_common/harness/typeWrappers.cpp
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_cl_get_info
TARGET_LINK_LIBRARIES(test_cl_get_info
${CLConform_LIBRARIES})
add_dependencies(OpenCLCTS conformance_test_cl_get_info)
install(TARGETS conformance_test_cl_get_info
add_dependencies(OpenCLCTS test_cl_get_info)
install(TARGETS test_cl_get_info
DESTINATION "${CLConf_OUT_DIR}"
COMPONENT OpenCLCTS)

View File

@@ -1,4 +1,4 @@
add_executable(conformance_test_cl_read_write_images
add_executable(test_cl_read_write_images
main.cpp
test_read_1D.cpp
test_read_1D_array.cpp
@@ -38,10 +38,10 @@ set_source_files_properties(
../../../test_common/harness/typeWrappers.cpp
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_cl_read_write_images
TARGET_LINK_LIBRARIES(test_cl_read_write_images
${CLConform_LIBRARIES})
add_dependencies(OpenCLCTS conformance_test_cl_read_write_images)
install(TARGETS conformance_test_cl_read_write_images
add_dependencies(OpenCLCTS test_cl_read_write_images)
install(TARGETS test_cl_read_write_images
DESTINATION "${CLConf_OUT_DIR}"
COMPONENT OpenCLCTS)

View File

@@ -1,4 +1,4 @@
add_executable(conformance_test_kernel_image_methods
add_executable(test_kernel_image_methods
main.cpp
test_1D.cpp
test_1D_array.cpp
@@ -38,10 +38,10 @@ set_source_files_properties(
../../../test_common/harness/typeWrappers.cpp
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_kernel_image_methods
TARGET_LINK_LIBRARIES(test_kernel_image_methods
${CLConform_LIBRARIES})
add_dependencies(OpenCLCTS conformance_test_kernel_image_methods)
install(TARGETS conformance_test_kernel_image_methods
add_dependencies(OpenCLCTS test_kernel_image_methods)
install(TARGETS test_kernel_image_methods
DESTINATION "${CLConf_OUT_DIR}"
COMPONENT OpenCLCTS)

View File

@@ -1,4 +1,4 @@
add_executable(conformance_test_image_streams
add_executable(test_image_streams
main.cpp
test_iterations.cpp
../image_helpers.cpp
@@ -48,10 +48,10 @@ set_source_files_properties(
../../../test_common/harness/typeWrappers.cpp
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_image_streams
TARGET_LINK_LIBRARIES(test_image_streams
${CLConform_LIBRARIES})
add_dependencies(OpenCLCTS conformance_test_image_streams)
install(TARGETS conformance_test_image_streams
add_dependencies(OpenCLCTS test_image_streams)
install(TARGETS test_image_streams
DESTINATION "${CLConf_OUT_DIR}"
COMPONENT OpenCLCTS)

View File

@@ -1,4 +1,4 @@
add_executable(conformance_test_samplerless_reads
add_executable(test_samplerless_reads
main.cpp
test_iterations.cpp
test_loops.cpp
@@ -40,10 +40,10 @@ set_source_files_properties(
../../../test_common/harness/typeWrappers.cpp
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_samplerless_reads
TARGET_LINK_LIBRARIES(test_samplerless_reads
${CLConform_LIBRARIES})
add_dependencies(OpenCLCTS conformance_test_samplerless_reads)
install(TARGETS conformance_test_samplerless_reads
add_dependencies(OpenCLCTS test_samplerless_reads)
install(TARGETS test_samplerless_reads
DESTINATION "${CLConf_OUT_DIR}"
COMPONENT OpenCLCTS)