CMakeLists.txt 4.2 KB
Newer Older
Z
zhunaipan 已提交
1 2 3
include(GoogleTest)

SET(DE_UT_SRCS
N
nhussain 已提交
4 5
        common/common.cc
        common/cvop_common.cc
6
        common/bboxop_common.cc
I
islam_amin 已提交
7
        auto_contrast_op_test.cc
N
nhussain 已提交
8 9 10 11 12 13 14
        batch_op_test.cc
        bit_functions_test.cc
        storage_container_test.cc
        treap_test.cc
        interrupt_test.cc
        image_folder_op_test.cc
        buddy_test.cc
15
        bounding_box_augment_op_test.cc
N
nhussain 已提交
16 17 18 19 20 21 22
        arena_test.cc
        btree_test.cc
        center_crop_op_test.cc
        channel_swap_test.cc
        circular_pool_test.cc
        client_config_test.cc
        connector_test.cc
M
mahdi 已提交
23
        cutmix_batch_op_test.cc
M
Mahdi 已提交
24
        cut_out_op_test.cc
N
nhussain 已提交
25 26
        datatype_test.cc
        decode_op_test.cc
I
islam_amin 已提交
27
        equalize_op_test.cc
N
nhussain 已提交
28 29 30 31 32
        execution_tree_test.cc
        global_context_test.cc
        main_test.cc
        map_op_test.cc
        mind_record_op_test.cc
M
Mahdi 已提交
33
        mixup_batch_op_test.cc
N
nhussain 已提交
34 35 36 37
        memory_pool_test.cc
        normalize_op_test.cc
        one_hot_op_test.cc
        pad_end_op_test.cc
M
Mahdi 已提交
38
        pad_op_test.cc
N
nhussain 已提交
39 40 41
        path_test.cc
        project_op_test.cc
        queue_test.cc
I
islam_amin 已提交
42
        random_affine_op_test.cc
A
Alexey Shevlyakov 已提交
43
        random_color_op_test.cc
N
nhussain 已提交
44
        random_crop_op_test.cc
D
Danish Farid 已提交
45
        random_crop_with_bbox_op_test.cc
N
nhussain 已提交
46 47
        random_crop_decode_resize_op_test.cc
        random_crop_and_resize_op_test.cc
D
Danish Farid 已提交
48
        random_crop_and_resize_with_bbox_op_test.cc
N
nhussain 已提交
49 50
        random_color_adjust_op_test.cc
        random_horizontal_flip_op_test.cc
51
        random_horizontal_flip_with_bbox_test.cc
N
nhussain 已提交
52
        random_resize_op_test.cc
53
        random_resize_with_bbox_op_test.cc
N
nhussain 已提交
54
        random_rotation_op_test.cc
N
nhussain 已提交
55
        random_solarize_op_test.cc
N
nhussain 已提交
56
        random_vertical_flip_op_test.cc
D
Danish Farid 已提交
57
        random_vertical_flip_with_bbox_op_test.cc
N
nhussain 已提交
58 59 60 61 62
        rename_op_test.cc
        repeat_op_test.cc
        rescale_op_test.cc
        resize_bilinear_op_test.cc
        resize_op_test.cc
63
        resize_with_bbox_op_test.cc
64 65
	rgba_to_bgr_op_test.cc
	rgba_to_rgb_op_test.cc
66
        schema_test.cc
67
        skip_op_test.cc
N
nhussain 已提交
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
        shuffle_op_test.cc
        stand_alone_samplers_test.cc
        status_test.cc
        task_manager_test.cc
        tensor_test.cc
        tensor_string_test.cc
        tensorshape_test.cc
        tfReader_op_test.cc
        to_float16_op_test.cc
        type_cast_op_test.cc
        zip_op_test.cc
        random_resize_op_test.cc
        subset_random_sampler_test.cc
        weighted_random_sampler_test.cc
        mnist_op_test.cc
        cifar_op_test.cc
        celeba_op_test.cc
        take_op_test.cc
        clue_op_test.cc
J
jiangzhiwen 已提交
87
        csv_op_test.cc
N
nhussain 已提交
88 89 90 91 92 93 94 95 96 97
        text_file_op_test.cc
        concat_op_test.cc
        jieba_tokenizer_op_test.cc
        tokenizer_op_test.cc
        gnn_graph_test.cc
        coco_op_test.cc
        fill_op_test.cc
        mask_test.cc
        trucate_pair_test.cc
        concatenate_op_test.cc
98 99
        cyclic_array_test.cc
        perf_data_test.cc
T
tony_liu2 已提交
100 101 102 103
        c_api_samplers_test.cc
        c_api_transforms_test.cc
        c_api_dataset_ops_test.cc
        c_api_dataset_cifar_test.cc
J
jiangzhiwen 已提交
104
        c_api_dataset_clue_test.cc
T
tony_liu2 已提交
105
        c_api_dataset_coco_test.cc
J
jiangzhiwen 已提交
106
        c_api_dataset_csv_test.cc
107
        c_api_dataset_filetext_test.cc
J
jiangzhiwen 已提交
108
        c_api_dataset_manifest_test.cc
X
xiefangqi 已提交
109
        c_api_dataset_randomdata_test.cc
T
tony_liu2 已提交
110 111
        c_api_dataset_voc_test.cc
        c_api_datasets_test.cc
112
        c_api_dataset_iterator_test.cc
113
        tensor_op_fusion_pass_test.cc
Y
YangLuo 已提交
114
        sliding_window_op_test.cc
115
        epoch_ctrl_op_test.cc
E
Eric 已提交
116
        sentence_piece_vocab_op_test.cc
N
nhussain 已提交
117 118 119
        solarize_op_test.cc
        swap_red_blue_test.cc
        distributed_sampler_test.cc
N
nhussain 已提交
120
        )
Z
zhunaipan 已提交
121

122 123 124 125 126 127 128 129 130 131
if (ENABLE_PYTHON)
    set(DE_UT_SRCS
            ${DE_UT_SRCS}
            filter_op_test.cc
            manifest_op_test.cc
            voc_op_test.cc
            sentence_piece_vocab_op_test.cc
            )
endif ()

Z
zhunaipan 已提交
132 133 134 135 136 137 138 139 140
add_executable(de_ut_tests ${DE_UT_SRCS})

set_target_properties(de_ut_tests PROPERTIES INSTALL_RPATH "$ORIGIN/../lib:$ORIGIN/../lib64")

target_link_libraries(de_ut_tests PRIVATE _c_dataengine pybind11::embed ${GTEST_LIBRARY} ${SECUREC_LIBRARY} ${SLOG_LIBRARY})

gtest_discover_tests(de_ut_tests WORKING_DIRECTORY ${Project_DIR}/tests/dataset)

install(TARGETS de_ut_tests
N
nhussain 已提交
141
        RUNTIME DESTINATION test)
Z
zhunaipan 已提交
142 143 144

# For internal testing only.
install(DIRECTORY ${Project_DIR}/tests/dataset/data/
N
nhussain 已提交
145
        DESTINATION test/data)