-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
...to make at least a some basic check that built JDK is sort of working.
- Loading branch information
Showing
3 changed files
with
26 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,23 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
HERE=$(realpath $(dirname $0)) | ||
|
||
. "${HERE}/setup.sh" | ||
|
||
make JOBS=1 -C openj9-openjdk-jdk11 all | ||
|
||
arch="${TARGET%%-*}" | ||
builddir="${HERE}/openj9-openjdk-jdk11/build/$(ls "${HERE}/openj9-openjdk-jdk11/build" | grep "linux-${arch}-*")" | ||
|
||
if test "${HOST}" != "${TARGET}"; then | ||
qemu=$(type -P qemu-${arch}-static) | ||
if [[ -z "${qemu}" ]]; then | ||
"WARN: no ${qemu} found, cannot test / output 'java -version'!" | ||
else | ||
${qemu} -L "${SYSROOT}" "${builddir}/images/jdk/bin/java" -version | ||
fi | ||
else | ||
"${builddir}/images/jdk/bin/java" -version | ||
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
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