You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 4.6 kB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. include(GoogleTest)
  2. SET(DE_UT_SRCS
  3. common/common.cc
  4. common/cvop_common.cc
  5. common/bboxop_common.cc
  6. auto_contrast_op_test.cc
  7. album_op_test.cc
  8. batch_op_test.cc
  9. bit_functions_test.cc
  10. storage_container_test.cc
  11. treap_test.cc
  12. interrupt_test.cc
  13. image_folder_op_test.cc
  14. buddy_test.cc
  15. bounding_box_augment_op_test.cc
  16. arena_test.cc
  17. btree_test.cc
  18. callback_test.cc
  19. center_crop_op_test.cc
  20. channel_swap_test.cc
  21. circular_pool_test.cc
  22. client_config_test.cc
  23. connector_test.cc
  24. cutmix_batch_op_test.cc
  25. cut_out_op_test.cc
  26. datatype_test.cc
  27. decode_op_test.cc
  28. equalize_op_test.cc
  29. execution_tree_test.cc
  30. global_context_test.cc
  31. main_test.cc
  32. map_op_test.cc
  33. mind_record_op_test.cc
  34. mixup_batch_op_test.cc
  35. memory_pool_test.cc
  36. normalize_op_test.cc
  37. one_hot_op_test.cc
  38. pad_end_op_test.cc
  39. pad_op_test.cc
  40. path_test.cc
  41. project_op_test.cc
  42. queue_test.cc
  43. random_affine_op_test.cc
  44. random_color_op_test.cc
  45. random_crop_op_test.cc
  46. random_crop_with_bbox_op_test.cc
  47. random_crop_decode_resize_op_test.cc
  48. random_crop_and_resize_op_test.cc
  49. random_crop_and_resize_with_bbox_op_test.cc
  50. random_color_adjust_op_test.cc
  51. random_horizontal_flip_op_test.cc
  52. random_horizontal_flip_with_bbox_test.cc
  53. random_resize_op_test.cc
  54. random_resize_with_bbox_op_test.cc
  55. random_rotation_op_test.cc
  56. random_solarize_op_test.cc
  57. random_vertical_flip_op_test.cc
  58. random_vertical_flip_with_bbox_op_test.cc
  59. rename_op_test.cc
  60. repeat_op_test.cc
  61. rescale_op_test.cc
  62. resize_op_test.cc
  63. resize_with_bbox_op_test.cc
  64. rgba_to_bgr_op_test.cc
  65. rgba_to_rgb_op_test.cc
  66. schema_test.cc
  67. skip_op_test.cc
  68. shuffle_op_test.cc
  69. stand_alone_samplers_test.cc
  70. status_test.cc
  71. task_manager_test.cc
  72. tensor_test.cc
  73. tensor_row_test.cc
  74. tensor_string_test.cc
  75. tensorshape_test.cc
  76. tfReader_op_test.cc
  77. to_float16_op_test.cc
  78. type_cast_op_test.cc
  79. zip_op_test.cc
  80. random_resize_op_test.cc
  81. subset_random_sampler_test.cc
  82. weighted_random_sampler_test.cc
  83. mnist_op_test.cc
  84. cifar_op_test.cc
  85. celeba_op_test.cc
  86. take_op_test.cc
  87. clue_op_test.cc
  88. csv_op_test.cc
  89. text_file_op_test.cc
  90. concat_op_test.cc
  91. jieba_tokenizer_op_test.cc
  92. tokenizer_op_test.cc
  93. gnn_graph_test.cc
  94. coco_op_test.cc
  95. fill_op_test.cc
  96. mask_test.cc
  97. trucate_pair_test.cc
  98. concatenate_op_test.cc
  99. cyclic_array_test.cc
  100. perf_data_test.cc
  101. build_vocab_test.cc
  102. c_api_samplers_test.cc
  103. c_api_transforms_test.cc
  104. c_api_vision_test.cc
  105. c_api_dataset_ops_test.cc
  106. c_api_dataset_album_test.cc
  107. c_api_dataset_cifar_test.cc
  108. c_api_dataset_clue_test.cc
  109. c_api_dataset_coco_test.cc
  110. c_api_dataset_csv_test.cc
  111. c_api_dataset_manifest_test.cc
  112. c_api_dataset_randomdata_test.cc
  113. c_api_dataset_textfile_test.cc
  114. c_api_dataset_tfrecord_test.cc
  115. c_api_dataset_voc_test.cc
  116. c_api_datasets_test.cc
  117. c_api_dataset_iterator_test.cc
  118. c_api_text_vocab_test.cc
  119. tensor_op_fusion_pass_test.cc
  120. sliding_window_op_test.cc
  121. epoch_ctrl_op_test.cc
  122. sentence_piece_vocab_op_test.cc
  123. solarize_op_test.cc
  124. swap_red_blue_test.cc
  125. distributed_sampler_test.cc
  126. data_helper_test.cc
  127. image_process_test.cc
  128. slice_op_test.cc
  129. )
  130. if (ENABLE_PYTHON)
  131. set(DE_UT_SRCS
  132. ${DE_UT_SRCS}
  133. filter_op_test.cc
  134. manifest_op_test.cc
  135. voc_op_test.cc
  136. sentence_piece_vocab_op_test.cc
  137. )
  138. endif ()
  139. add_executable(de_ut_tests ${DE_UT_SRCS})
  140. set_target_properties(de_ut_tests PROPERTIES INSTALL_RPATH "$ORIGIN/../lib:$ORIGIN/../lib64")
  141. target_link_libraries(de_ut_tests PRIVATE _c_dataengine pybind11::embed ${GTEST_LIBRARY} ${SECUREC_LIBRARY} ${SLOG_LIBRARY})
  142. gtest_discover_tests(de_ut_tests WORKING_DIRECTORY ${Project_DIR}/tests/dataset)
  143. install(TARGETS de_ut_tests
  144. RUNTIME DESTINATION test)
  145. # For internal testing only.
  146. install(DIRECTORY ${Project_DIR}/tests/dataset/data/
  147. DESTINATION test/data)