Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,31 @@ jobs:
matrix:
jdkconf:
- JDK 25
- JDK 21
- JDK 17
- JDK 11
- JDK 8
include:
- jdkconf: JDK 25
jdkver: "25"
osver: "10"
jdkimage: "docker.io/library/eclipse-temurin:25-jdk-ubi10-minimal"
- jdkconf: JDK 21
jdkver: "21"
osver: "10"
jdkimage: "docker.io/library/eclipse-temurin:21-jdk-ubi10-minimal"
- jdkconf: JDK 17
jdkver: "17"
osver: "10"
jdkimage: "docker.io/library/eclipse-temurin:17-jdk-ubi10-minimal"
- jdkconf: JDK 11
jdkver: "11"
osver: "10"
jdkimage: "docker.io/library/eclipse-temurin:11-jdk-ubi10-minimal"
- jdkconf: JDK 8
jdkver: "8"
osver: "10"
jdkimage: "docker.io/library/eclipse-temurin:8-jdk-ubi10-minimal"
steps:
- uses: actions/checkout@v3
- name: "Install dependencies"
Expand All @@ -32,7 +52,7 @@ jobs:
run: |
podman --version
podman run --rm -it ${{matrix.jdkimage}} bash --version
podman run --rm -it ${{matrix.jdkimage}} java --version
podman run --rm -it ${{matrix.jdkimage}} java -version
podman run --rm -it ${{matrix.jdkimage}} cat /etc/redhat-release
- name: RFaS
run: |
Expand Down
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
test.1*
test.2*
test.3*
test.4*
test.5*
test.6*
test.7*
test.8*
test.9*
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ Supported Containers:
| UBI 9 | 11 | Runtime | [openjdk-11-runtime](https://catalog.redhat.com/software/containers/ubi9/openjdk-11-runtime/61ee7d1c33f211c45407a91c) |
| UBI 9 | 17 | Runtime | [openjdk-17-runtime](https://catalog.redhat.com/software/containers/ubi9/openjdk-17-runtime/61ee7d45384a3eb331996bee) |

How to run the container testsuite.

TODO
## How to run the container testsuite.
eg: `RFAT_RERUNS=1 WHITELIST=".*" sh run_containerqa.sh --container-image=docker.io/library/eclipse-temurin:8-jdk-ubi10-minimal`
Generally you need some container inage.... Consult GHAs for more hints.

## Cryptographic Algorithms/Providers Testing
The tests 700 - 705 are made for testing whether the Red Hat's Build of OpenJDK containers are FIPS-compatible and behave as expected (for example when setting FIPS in the container manually).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ processArguments
setup
echo "Verifier for Jira Ticket: OPENJDK-390." | tee $REPORT_FILE
echo "Jira Link: https://issues.redhat.com/browse/OPENJDK-390" | tee -a $REPORT_FILE
checkJavaHomeEnvVarValid 2>&1| tee -a $REPORT_FILE
checkJavaHomeEnvExists 2>&1| tee -a $REPORT_FILE
checkJavaHomeEnvIsFile 2>&1| tee -a $REPORT_FILE
checkJavaHomeEnvVarValid 2>&1| tee -a $REPORT_FILE
13 changes: 13 additions & 0 deletions containersQa/testlib.bash
Original file line number Diff line number Diff line change
Expand Up @@ -987,10 +987,23 @@ function checkJavaHomeEnvVar() {
runOnBaseDir bash -c 'echo $JAVA_HOME'
}

function checkJavaHomeEnvExists() {
runOnBaseDir bash -c 'ls -l $JAVA_HOME'
runOnBaseDir bash -c 'ls -l $JAVA_HOME/bin'
runOnBaseDir bash -c 'ls -l $JAVA_HOME/bin/java'
}

function checkJavaHomeEnvIsFile() {
runOnBaseDir bash -c 'test -d $JAVA_HOME'
runOnBaseDir bash -c 'test -d $JAVA_HOME/bin'
runOnBaseDir bash -c 'test -f $JAVA_HOME/bin/java'
}

function checkJavaHomeEnvVarValid() {
runOnBaseDir bash -c '$JAVA_HOME/bin/java -version'
}


function otherUserRun() {
set +e
#There is no test here. The call's output must be checked.
Expand Down