diff --git a/tests/z_cr_test/cr-test.sh b/tests/z_cr_test/cr-test.sh new file mode 100644 index 0000000..fd481eb --- /dev/null +++ b/tests/z_cr_test/cr-test.sh @@ -0,0 +1,17 @@ +#!/bin/bash +# determining which packages we need to install from Base+Updates before trying the update against CR + +# generate local cache +./0-common/00_qa_repo_config.sh +yum --enablerepo=qa-cr list >/dev/null 2>&1 +sqlite3 $(find /var/cache/yum/$(t_GetArch)/$(t_DistCheck)/cr/ -iname '*.sqlite*') 'select name from packages;' > /tmp/packages.list + +t_Log "Installing needed packages from Base" +yum install -y -d0 $(cat /tmp/packages.list) 1>/dev/null +t_CheckExitStatus $? + +t_Log "Updating packages with the CR repo" +t_InstallPackage yum-presto +yum install --enablerepo=qa-cr -y -d0 $(cat /tmp/packages.list) +t_CheckExitStatus $? + diff --git a/tests/z_cr_test/readme b/tests/z_cr_test/readme new file mode 100644 index 0000000..6981292 --- /dev/null +++ b/tests/z_cr_test/readme @@ -0,0 +1,5 @@ +This test is disabled by default, but can be launched from the CDevQA provision script +when we need to test the packages from the CR repository +It will fetch packages names from the cr repo, install those packages from base+updates +and then will try the update process. +After that, all the usual functional tests will be launched