Skip to content

Commit ec842f1

Browse files
zuyufacebook-github-bot
authored andcommitted
OrcReaderTest: Copy test input files to the binary dir (facebookincubator#10588)
Summary: This is a follow-up PR of facebookincubator#10194 to address test failures in the out-of-source build: ``` E20240728 Exceptions.h:67] Line: velox/velox/common/file/File.cpp:112, Function:LocalReadFile, Expression: No such file or directory: cmake-build-debug/velox/velox/dwio/orc/test/examples/TestStringDictionary.testRowIndex.orc, Source: RUNTIME, ErrorCode: FILE_NOT_FOUND E20240728 Exceptions.h:67] Line: velox/velox/common/file/File.cpp:112, Function:LocalReadFile, Expression: No such file or directory: cmake-build-debug/velox/velox/dwio/orc/test/examples/complextypes_iceberg.orc, Source: RUNTIME, ErrorCode: FILE_NOT_FOUND E20240728 Exceptions.h:67] Line: velox/velox/common/file/File.cpp:112, Function:LocalReadFile, Expression: No such file or directory: cmake-build-debug/velox/velox/dwio/orc/test/examples/orc_index_int_string.orc, Source: RUNTIME, ErrorCode: FILE_NOT_FOUND E20240728 Exceptions.h:67] Line: velox/velox/common/file/File.cpp:112, Function:LocalReadFile, Expression: No such file or directory: cmake-build-debug/velox/velox/dwio/orc/test/examples/TestOrcFile.testDate1900.orc, Source: RUNTIME, ErrorCode: FILE_NOT_FOUND E20240728 Exceptions.h:67] Line: velox/velox/common/file/File.cpp:112, Function:LocalReadFile, Expression: No such file or directory: cmake-build-debug/velox/velox/dwio/orc/test/examples/orc_all_type.orc, Source: RUNTIME, ErrorCode: FILE_NOT_FOUND ``` Pull Request resolved: facebookincubator#10588 Reviewed By: pedroerp Differential Revision: D60452930 Pulled By: Yuhta fbshipit-source-id: adeb972bd89ed0696639ab8b3379549f3138abe3
1 parent 2fb811a commit ec842f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

velox/dwio/orc/test/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ target_link_libraries(
2525
gtest
2626
gtest_main
2727
gmock)
28+
29+
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/examples
30+
DESTINATION ${CMAKE_CURRENT_BINARY_DIR})

0 commit comments

Comments
 (0)