Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional testing for pax installs #28

Closed
wants to merge 1 commit into from
Closed

Conversation

DevonianTeuchter
Copy link
Collaborator

Tests the initial drop of pax install

set -x
WORKDIR="$1"

fail(){ echo "$@"; exit 8; }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this, perhaps we can make these functions available in a common script for consistency (could be in another PR)

echo "Testing if zopen was installed at: ${zopenenv}/usr/local/zopen"
[ ! -e "${zopenenv}/usr/local/zopen" ] && fail "File system not available"
echo "Testing source of the zopen-config file"
[ ! -e "${zopenenv}/etc/zopen-config" ] && fail "xopen configuration not available"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[ ! -e "${zopenenv}/etc/zopen-config" ] && fail "xopen configuration not available"
[ ! -e "${zopenenv}/etc/zopen-config" ] && fail "zopen configuration not available"


echo "Testing source of configuration file"
# shellcheck disable=SC1091
. "${zopenenv}/etc/zopen-config"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to check the return code as well?

Copy link
Collaborator

@IgorTodorovskiIBM IgorTodorovskiIBM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good other than a few minor comments, great job!

@DevonianTeuchter DevonianTeuchter marked this pull request as draft December 10, 2023 23:01
@DevonianTeuchter
Copy link
Collaborator Author

Closing - the new install process looks different to what this PR was originally going to test!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants