blob: 0295019e542d52f098491c1f8db8e237f3c884c7 [file] [log] [blame]
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# Everything in this module depends on test infrastructure.
if (NO_TESTS)
return()
endif()
set(TPCH_SRCS
tpch/rpc_line_item_dao.cc
)
add_library(tpch ${TPCH_SRCS})
target_link_libraries(tpch
itest_util
kudu_client)
# tpch1
add_executable(tpch1 tpch/tpch1.cc)
target_link_libraries(tpch1
${KUDU_MIN_TEST_LIBS}
tpch)
# tpch_real_world
add_executable(tpch_real_world tpch/tpch_real_world.cc)
target_link_libraries(tpch_real_world
${KUDU_MIN_TEST_LIBS}
tpch)
# rle
add_executable(rle rle.cc)
target_link_libraries(rle
${KUDU_MIN_TEST_LIBS}
kudu_util)
# Disabled on macOS since it relies on fdatasync() and sync_file_range().
if(NOT APPLE)
add_executable(wal_hiccup wal_hiccup.cc)
target_link_libraries(wal_hiccup
${KUDU_MIN_TEST_LIBS}
kudu_util)
endif()
# Tests
SET_KUDU_TEST_LINK_LIBS(tpch)
ADD_KUDU_TEST(tpch/rpc_line_item_dao-test)