-
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.
Merge pull request #6 from rh-openjdk/new_tar_check_tc
Added testcase to check if tar is installed in the container image.
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
set -ex | ||
set -o pipefail | ||
|
||
## resolve folder of this script, following all symlinks, | ||
## http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in | ||
SCRIPT_SOURCE="${BASH_SOURCE[0]}" | ||
while [ -h "$SCRIPT_SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink | ||
SCRIPT_DIR="$( cd -P "$( dirname "$SCRIPT_SOURCE" )" && pwd )" | ||
SCRIPT_SOURCE="$(readlink "$SCRIPT_SOURCE")" | ||
# if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located | ||
[[ $SCRIPT_SOURCE != /* ]] && SCRIPT_SOURCE="$SCRIPT_DIR/$SCRIPT_SOURCE" | ||
done | ||
readonly SCRIPT_DIR="$( cd -P "$( dirname "$SCRIPT_SOURCE" )" && pwd )" | ||
|
||
source $SCRIPT_DIR/testlib.bash | ||
|
||
parseArguments "$@" | ||
processArguments | ||
setup | ||
testTarIsInstalled 2>&1| tee $REPORT_FILE # then check the 8 or 11 in it against some NVR |
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