|
|
f9a98e |
From f805a19f8770bf051fa741558b10928fc612e01b Mon Sep 17 00:00:00 2001
|
|
|
f9a98e |
From: Jakub Filak <jfilak@redhat.com>
|
|
|
f9a98e |
Date: Wed, 29 Oct 2014 18:11:29 +0100
|
|
|
f9a98e |
Subject: [PATCH] Support test suite output files for multiple Java versions
|
|
|
f9a98e |
|
|
|
f9a98e |
Related to #42
|
|
|
f9a98e |
|
|
|
f9a98e |
Conflicts:
|
|
|
f9a98e |
test/CMakeLists.txt
|
|
|
f9a98e |
---
|
|
|
f9a98e |
test/CMakeLists.txt | 3 +++
|
|
|
f9a98e |
test/outputs/CMakeLists.txt | 4 ++++
|
|
|
f9a98e |
2 files changed, 7 insertions(+)
|
|
|
f9a98e |
|
|
|
f9a98e |
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
|
|
|
f9a98e |
index 5bb2b2d..b7818d6 100644
|
|
|
f9a98e |
--- a/test/CMakeLists.txt
|
|
|
f9a98e |
+++ b/test/CMakeLists.txt
|
|
|
f9a98e |
@@ -5,6 +5,9 @@ set(SERVER_URL "http://localhost")
|
|
|
f9a98e |
|
|
|
f9a98e |
find_package(Java REQUIRED)
|
|
|
f9a98e |
|
|
|
f9a98e |
+set(JAVA_TESTOUTPUT_VER java-${Java_VERSION_MAJOR}.${Java_VERSION_MINOR})
|
|
|
f9a98e |
+message("Requires testsuite ver: ${JAVA_TESTOUTPUT_VER}")
|
|
|
f9a98e |
+
|
|
|
f9a98e |
subdirs(outputs)
|
|
|
f9a98e |
|
|
|
f9a98e |
function(_get_target_names variable)
|
|
|
f9a98e |
diff --git a/test/outputs/CMakeLists.txt b/test/outputs/CMakeLists.txt
|
|
|
f9a98e |
index ede3758..0ab44f2 100644
|
|
|
f9a98e |
--- a/test/outputs/CMakeLists.txt
|
|
|
f9a98e |
+++ b/test/outputs/CMakeLists.txt
|
|
|
f9a98e |
@@ -14,5 +14,9 @@ foreach(infileName ${inFiles})
|
|
|
f9a98e |
set(infile "${CMAKE_CURRENT_SOURCE_DIR}/${infileName}")
|
|
|
f9a98e |
endif()
|
|
|
f9a98e |
|
|
|
f9a98e |
+ if(EXISTS "${infile}.${JAVA_TESTOUTPUT_VER}")
|
|
|
f9a98e |
+ set(infile "${infile}.${JAVA_TESTOUTPUT_VER}")
|
|
|
f9a98e |
+ endif()
|
|
|
f9a98e |
+
|
|
|
f9a98e |
configure_file("${infile}" "${outfile}")
|
|
|
f9a98e |
endforeach(infileName)
|
|
|
f9a98e |
--
|
|
|
f9a98e |
1.8.3.1
|
|
|
f9a98e |
|