-
-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support OPENJCEPLUS_GIT_REPO and OPENJCEPLUS_GIT_BRANCH in testenv.pr…
…operties - create testenvSettings.sh for testenv variable settings - export OPENJCEPLUS_GIT_REPO and OPENJCEPLUS_GIT_BRANCH values in testenvSettings.sh - update functional/OpenJcePlusTests/build.xml to handle branch/tag/sha values - add JDKXXX_OPENJCEPLUS_GIT_REPO and JDKXXX_OPENJCEPLUS_GIT_BRANCH in testenv.properties - when DYNAMIC_COMPILE=true, we will run make test command directly (compile.sh will be skipped) To fix #4509, testenvSettings.sh needs to run before make test command resolves: #5290 and #4509 Signed-off-by: Lan Xia <Lan_Xia@ca.ibm.com>
- Loading branch information
Showing
5 changed files
with
103 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/usr/bin/env bash | ||
set +x | ||
set -eo pipefail | ||
|
||
if [[ $USE_TESTENV_PROPERTIES == true ]]; then | ||
testenv_file=".vcnb/testenv/testenv.properties" | ||
if [[ "$PLATFORM" == *"zos"* ]]; then | ||
testenv_file="./testenv/testenv_zos.properties" | ||
fi | ||
if [[ "$PLATFORM" == *"arm"* ]] && [[ "$JDK_VERSION" == "8" ]]; then | ||
testenv_file="./testenv/testenv_arm32.properties" | ||
fi | ||
while read line; do | ||
export $line | ||
done <$testenv_file | ||
if [[ $JDK_IMPL == "openj9" ]] || [[ $JDK_IMPL == "ibm" ]]; then | ||
repo=JDK${JDK_VERSION}_OPENJ9_REPO | ||
branch=JDK${JDK_VERSION}_OPENJ9_BRANCH | ||
|
||
openjceplus_repo=JDK${JDK_VERSION}_OPENJCEPLUS_GIT_REPO | ||
openjceplus_branch=JDK${JDK_VERSION}_OPENJCEPLUS_GIT_BRANCH | ||
eval openjceplus_repo2='$'$openjceplus_repo | ||
eval openjceplus_branch2='$'$openjceplus_branch | ||
export OPENJCEPLUS_GIT_REPO=$openjceplus_repo2 | ||
export OPENJCEPLUS_GIT_BRANCH=$openjceplus_branch2 | ||
|
||
else | ||
repo=JDK${JDK_VERSION}_REPO | ||
branch=JDK${JDK_VERSION}_BRANCH | ||
fi | ||
|
||
eval repo2='$'$repo | ||
eval branch2='$'$branch | ||
|
||
export JDK_REPO=$repo2 | ||
export JDK_BRANCH=$branch2 | ||
echo "Set values based on ${testenv_file}:" | ||
echo "=========" | ||
cat $testenv_file | ||
echo "" | ||
echo "=========" | ||
echo "" | ||
echo "JDK_REPO=${JDK_REPO}" | ||
echo "JDK_BRANCH=${JDK_BRANCH}" | ||
echo "OPENJCEPLUS_GIT_REPO=${OPENJCEPLUS_GIT_REPO}" | ||
echo "OPENJCEPLUS_GIT_BRANCH=${OPENJCEPLUS_GIT_BRANCH}" | ||
|
||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters