Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
JkSelf committed Dec 17, 2024
1 parent dc790b6 commit 2fdcae8
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions velox/connectors/hive/storage_adapters/hdfs/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,27 @@ target_link_libraries(
target_compile_options(velox_hdfs_file_test
PRIVATE -Wno-deprecated-declarations)

add_executable(velox_hdfs_insert_test InsertIntoHdfsTest.cpp
HdfsMiniCluster.cpp HdfsUtilTest.cpp)

add_test(velox_hdfs_insert_test velox_hdfs_insert_test)

target_link_libraries(
velox_hdfs_insert_test
velox_exec_test_lib
velox_exec
GTest::gtest
GTest::gtest_main
GTest::gmock)

target_compile_options(velox_hdfs_insert_test
PRIVATE -Wno-deprecated-declarations)

# velox_hdfs_insert_test and velox_hdfs_file_test two tests can't run in
# parallel due to the port conflict in Hadoop NameNode and DataNode. The
# namenode port conflict can be resolved using the -nnport configuration in
# hadoop-mapreduce-client-jobclient-3.3.0-tests.jar. However the data node port
# cannot be configured. Therefore, we need to make sure that
# velox_hdfs_file_test runs only after velox_hdfs_insert_test has finished.
set_tests_properties(velox_hdfs_insert_test PROPERTIES DEPENDS
velox_hdfs_file_test)
# add_executable(velox_hdfs_insert_test InsertIntoHdfsTest.cpp
# HdfsMiniCluster.cpp HdfsUtilTest.cpp)

# add_test(velox_hdfs_insert_test velox_hdfs_insert_test)

# target_link_libraries(
# velox_hdfs_insert_test
# velox_exec_test_lib
# velox_exec
# GTest::gtest
# GTest::gtest_main
# GTest::gmock)

# target_compile_options(velox_hdfs_insert_test
# PRIVATE -Wno-deprecated-declarations)

# # velox_hdfs_insert_test and velox_hdfs_file_test two tests can't run in
# # parallel due to the port conflict in Hadoop NameNode and DataNode. The
# # namenode port conflict can be resolved using the -nnport configuration in
# # hadoop-mapreduce-client-jobclient-3.3.0-tests.jar. However the data node port
# # cannot be configured. Therefore, we need to make sure that
# # velox_hdfs_file_test runs only after velox_hdfs_insert_test has finished.
# set_tests_properties(velox_hdfs_insert_test PROPERTIES DEPENDS
# velox_hdfs_file_test)

0 comments on commit 2fdcae8

Please sign in to comment.