Skip to content

Commit

Permalink
test the current installer against the existing releases
Browse files Browse the repository at this point in the history
  • Loading branch information
k-rister committed Nov 3, 2024
1 parent 19e8497 commit 689c504
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crucible-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ function list_releases {
git ls-remote --tags \
--sort='version:refname' \
https://github.com/perftool-incubator/crucible.git \
| awk -F/ '{print$NF}' |
| awk -F/ '{print$NF}' \
| grep -E '20[0-9]{2}\.[1234]'
}

Expand Down
20 changes: 20 additions & 0 deletions tests/test-installer
Original file line number Diff line number Diff line change
Expand Up @@ -208,3 +208,23 @@ sudo ./crucible-install.sh \
--verbose
test "$?" = "$ec" || exit 1
stop_test

for arg_mode in client-server engine; do
for $tag in $tags; do
start_test
echo "testing arg_mode=${arg_mode} tag=${tag}"
# install existing release with current installer
touch /tmp/auth-file.json
cfgfile=$(grep SYSCONFIG= crucible-install.sh | cut -d '=' -f2 | sed 's/"//g')
# TODO(rfolco): temporary workaround until we make it distro generic
sudo mkdir -p $(dirname $cfgfile)
sudo ./crucible-install.sh \
--release $tag \
--${arg_mode}-registry myregistry.io/crucible \
--${arg_mode}-auth-file /tmp/auth-file.json \
--verbose
test "$?" = "0" || exit 1
ls /opt/crucible-moved* || exit 1
stop_test
done
done

0 comments on commit 689c504

Please sign in to comment.