You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@orc.apache.org by do...@apache.org on 2021/08/07 17:07:38 UTC
[orc] branch branch-1.7 updated: ORC-886,
ORC-905: Add integration tests for Java tools/examples (#823)
This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch branch-1.7
in repository https://gitbox.apache.org/repos/asf/orc.git
The following commit(s) were added to refs/heads/branch-1.7 by this push:
new a41bdbc ORC-886,ORC-905: Add integration tests for Java tools/examples (#823)
a41bdbc is described below
commit a41bdbc9d473b18f30d4412d5f2fbb7c5aef65cd
Author: William Hyun <wi...@apache.org>
AuthorDate: Sat Aug 7 10:06:45 2021 -0700
ORC-886,ORC-905: Add integration tests for Java tools/examples (#823)
### What changes were proposed in this pull request?
This PR aims to add integration tests for Java `tools` and `examples`
### Why are the changes needed?
To prevent the future regressions.
### How was this patch tested?
Pass the CIs.
(cherry picked from commit a855ea703bd3c154cb0c34222a221550dd643678)
Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
java/CMakeLists.txt | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/java/CMakeLists.txt b/java/CMakeLists.txt
index 8e7f290..231bf11 100644
--- a/java/CMakeLists.txt
+++ b/java/CMakeLists.txt
@@ -54,6 +54,16 @@ add_test(
-Dbuild.dir=${CMAKE_CURRENT_BINARY_DIR} test
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
+add_test(
+ NAME java-examples-test
+ COMMAND java -jar examples/orc-examples-${ORC_VERSION}-uber.jar write
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
+
+add_test(
+ NAME java-tools-test
+ COMMAND java -jar tools/orc-tools-${ORC_VERSION}-uber.jar version
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
+
install(
FILES ${ORC_JARS}
DESTINATION share)