Skip to content

Commit afa8956

Browse files
committed
Initial commite for Os based container tests.
1 parent 751abef commit afa8956

File tree

73 files changed

+2510
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+2510
-2
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "run-folder-as-tests"]
2+
path = run-folder-as-tests
3+
url = https://github.com/rh-openjdk/run-folder-as-tests

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 Scott Froberg
3+
Copyright (c) 2018, 202 jdkContainerOsTests authors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,24 @@
1-
# jdkContainerOsTests
1+
# jdkContainerOsTests
2+
3+
This repository holds the collection of tests run against Red Hat's Build of OpenJDK Containers on different versions of Red Hat Enterprise Linux (RHEL). The supported version of RHEL are 7.9, 8.8 and 9.2
4+
5+
Supported Containers:
6+
7+
| Operating System version | OpenJDK Version | Runtime of Full JDK | Link to Container |
8+
|--------------------------|-----------------|---------------------|--------------------------------------------------------------------------------------------------------------------------------------|
9+
| Rhel 7 | 8 | Full JDK | [openjdk18-openshift](https://catalog.redhat.com/software/containers/redhat-openjdk-18/openjdk18-openshift/58ada5701fbe981673cd6b10) |
10+
| Rhel 7 | 11 | Full JDK | [openjdk-11-rhel7](https://catalog.redhat.com/software/containers/openjdk/openjdk-11-rhel7/5bf57185dd19c775cddc4ce5) |
11+
| UBI 8 | 8 | Full JDK | [openjdk-8](https://catalog.redhat.com/software/containers/ubi8/openjdk-8/5dd6a48dbed8bd164a09589a) |
12+
| UBI 8 | 11 | Full JDK | [openjdk-11](https://catalog.redhat.com/software/containers/ubi8/openjdk-11/5dd6a4b45a13461646f677f4) |
13+
| UBI 8 | 17 | Full JDK | [openjdk-17](https://catalog.redhat.com/software/containers/ubi8/openjdk-17/618bdbf34ae3739687568813) |
14+
| UBI 8 | 8 | Runtime | [openjdk-8-runtime](https://catalog.redhat.com/software/containers/ubi8/openjdk-8-runtime/6048ed07dbb14c0b8248bdc4) |
15+
| UBI 8 | 11 | Runtime | [openjdk-11-runtime](https://catalog.redhat.com/software/containers/ubi8/openjdk-11-runtime/606dcb7d0f75e8ece4deec1f) |
16+
| UBI 8 | 17 | Runtime | [openjdk-17-runtime](https://catalog.redhat.com/software/containers/ubi8/openjdk-17-runtime/618bdc5f843af1624c4e4ba8) |
17+
| UBI 9 | 11 | Full JDK | [openjdk-11](https://catalog.redhat.com/software/containers/ubi9/openjdk-11/61ee7bafed74b2ffb22b07ab) |
18+
| UBI 9 | 17 | Full JDK | [openjdk-17](https://catalog.redhat.com/software/containers/ubi9/openjdk-17/61ee7c26ed74b2ffb22b07f6) |
19+
| UBI 9 | 11 | Runtime | [openjdk-11-runtime](https://catalog.redhat.com/software/containers/ubi9/openjdk-11-runtime/61ee7d1c33f211c45407a91c) |
20+
| UBI 9 | 17 | Runtime | [openjdk-17-runtime](https://catalog.redhat.com/software/containers/ubi9/openjdk-17-runtime/61ee7d45384a3eb331996bee) |
21+
22+
How to run the container testsuite.
23+
24+
TODO
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
set -ex
3+
set -o pipefail
4+
5+
## resolve folder of this script, following all symlinks,
6+
## http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
7+
SCRIPT_SOURCE="${BASH_SOURCE[0]}"
8+
while [ -h "$SCRIPT_SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
9+
SCRIPT_DIR="$( cd -P "$( dirname "$SCRIPT_SOURCE" )" && pwd )"
10+
SCRIPT_SOURCE="$(readlink "$SCRIPT_SOURCE")"
11+
# if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
12+
[[ $SCRIPT_SOURCE != /* ]] && SCRIPT_SOURCE="$SCRIPT_DIR/$SCRIPT_SOURCE"
13+
done
14+
readonly SCRIPT_DIR="$( cd -P "$( dirname "$SCRIPT_SOURCE" )" && pwd )"
15+
16+
filename=$(basename -- "$SCRIPT_SOURCE")
17+
18+
source $SCRIPT_DIR/testlib.bash
19+
20+
echo "Filename is still: $filename"
21+
parseArguments "$@"
22+
processArguments
23+
archiveMetadataFiles
24+
pretest
25+
cleanContainerQaPropertiesFile 2>&1| tee -a $REPORT_FILE
26+
cleanRuntimeImages 2>&1| tee -a $REPORT_FILE
27+
pullImage 2>&1| tee -a $REPORT_FILE
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
set -ex
3+
set -o pipefail
4+
5+
## resolve folder of this script, following all symlinks,
6+
## http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
7+
SCRIPT_SOURCE="${BASH_SOURCE[0]}"
8+
while [ -h "$SCRIPT_SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
9+
SCRIPT_DIR="$( cd -P "$( dirname "$SCRIPT_SOURCE" )" && pwd )"
10+
SCRIPT_SOURCE="$(readlink "$SCRIPT_SOURCE")"
11+
# if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
12+
[[ $SCRIPT_SOURCE != /* ]] && SCRIPT_SOURCE="$SCRIPT_DIR/$SCRIPT_SOURCE"
13+
done
14+
readonly SCRIPT_DIR="$( cd -P "$( dirname "$SCRIPT_SOURCE" )" && pwd )"
15+
16+
source $SCRIPT_DIR/testlib.bash
17+
18+
parseArguments "$@"
19+
processArguments
20+
setup
21+
podmanVersion 2>&1| tee -a $REPORT_FILE

containersDotNet/002_baseImage.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
set -ex
3+
set -o pipefail
4+
5+
## resolve folder of this script, following all symlinks,
6+
## http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
7+
SCRIPT_SOURCE="${BASH_SOURCE[0]}"
8+
while [ -h "$SCRIPT_SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
9+
SCRIPT_DIR="$( cd -P "$( dirname "$SCRIPT_SOURCE" )" && pwd )"
10+
SCRIPT_SOURCE="$(readlink "$SCRIPT_SOURCE")"
11+
# if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
12+
[[ $SCRIPT_SOURCE != /* ]] && SCRIPT_SOURCE="$SCRIPT_DIR/$SCRIPT_SOURCE"
13+
done
14+
readonly SCRIPT_DIR="$( cd -P "$( dirname "$SCRIPT_SOURCE" )" && pwd )"
15+
16+
source $SCRIPT_DIR/testlib.bash
17+
18+
parseArguments "$@"
19+
processArguments
20+
setup
21+
checkImage 2>&1| tee $REPORT_FILE

containersDotNet/003_hostInfo.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
set -ex
3+
set -o pipefail
4+
5+
## resolve folder of this script, following all symlinks,
6+
## http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
7+
SCRIPT_SOURCE="${BASH_SOURCE[0]}"
8+
while [ -h "$SCRIPT_SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
9+
SCRIPT_DIR="$( cd -P "$( dirname "$SCRIPT_SOURCE" )" && pwd )"
10+
SCRIPT_SOURCE="$(readlink "$SCRIPT_SOURCE")"
11+
# if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
12+
[[ $SCRIPT_SOURCE != /* ]] && SCRIPT_SOURCE="$SCRIPT_DIR/$SCRIPT_SOURCE"
13+
done
14+
readonly SCRIPT_DIR="$( cd -P "$( dirname "$SCRIPT_SOURCE" )" && pwd )"
15+
16+
source $SCRIPT_DIR/testlib.bash
17+
18+
parseArguments "$@"
19+
processArguments
20+
setup
21+
imgHost 2>&1| tee $REPORT_FILE
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
set -ex
3+
set -o pipefail
4+
5+
## resolve folder of this script, following all symlinks,
6+
## http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
7+
SCRIPT_SOURCE="${BASH_SOURCE[0]}"
8+
while [ -h "$SCRIPT_SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
9+
SCRIPT_DIR="$( cd -P "$( dirname "$SCRIPT_SOURCE" )" && pwd )"
10+
SCRIPT_SOURCE="$(readlink "$SCRIPT_SOURCE")"
11+
# if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
12+
[[ $SCRIPT_SOURCE != /* ]] && SCRIPT_SOURCE="$SCRIPT_DIR/$SCRIPT_SOURCE"
13+
done
14+
readonly SCRIPT_DIR="$( cd -P "$( dirname "$SCRIPT_SOURCE" )" && pwd )"
15+
16+
source $SCRIPT_DIR/testlib.bash
17+
18+
parseArguments "$@"
19+
processArguments
20+
setup
21+
imgSzGet 2>&1| tee $REPORT_FILE
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
set -ex
3+
set -o pipefail
4+
5+
## resolve folder of this script, following all symlinks,
6+
## http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
7+
SCRIPT_SOURCE="${BASH_SOURCE[0]}"
8+
while [ -h "$SCRIPT_SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
9+
SCRIPT_DIR="$( cd -P "$( dirname "$SCRIPT_SOURCE" )" && pwd )"
10+
SCRIPT_SOURCE="$(readlink "$SCRIPT_SOURCE")"
11+
# if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
12+
[[ $SCRIPT_SOURCE != /* ]] && SCRIPT_SOURCE="$SCRIPT_DIR/$SCRIPT_SOURCE"
13+
done
14+
readonly SCRIPT_DIR="$( cd -P "$( dirname "$SCRIPT_SOURCE" )" && pwd )"
15+
16+
source $SCRIPT_DIR/testlib.bash
17+
18+
parseArguments "$@"
19+
processArguments
20+
setup
21+
imgSzChck 2>&1| tee $REPORT_FILE

containersDotNet/010_os.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
set -ex
3+
set -o pipefail
4+
5+
## resolve folder of this script, following all symlinks,
6+
## http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
7+
SCRIPT_SOURCE="${BASH_SOURCE[0]}"
8+
while [ -h "$SCRIPT_SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
9+
SCRIPT_DIR="$( cd -P "$( dirname "$SCRIPT_SOURCE" )" && pwd )"
10+
SCRIPT_SOURCE="$(readlink "$SCRIPT_SOURCE")"
11+
# if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
12+
[[ $SCRIPT_SOURCE != /* ]] && SCRIPT_SOURCE="$SCRIPT_DIR/$SCRIPT_SOURCE"
13+
done
14+
readonly SCRIPT_DIR="$( cd -P "$( dirname "$SCRIPT_SOURCE" )" && pwd )"
15+
16+
source $SCRIPT_DIR/testlib.bash
17+
18+
parseArguments "$@"
19+
processArguments
20+
setup
21+
imgOs 2>&1| tee $REPORT_FILE

0 commit comments

Comments
 (0)