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:06:48 UTC

[orc] branch main 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 main
in repository https://gitbox.apache.org/repos/asf/orc.git


The following commit(s) were added to refs/heads/main by this push:
     new a855ea7  ORC-886,ORC-905: Add integration tests for Java tools/examples (#823)
a855ea7 is described below

commit a855ea703bd3c154cb0c34222a221550dd643678
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.
---
 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)