Commit 0f27ec3f authored by Vitaly Lipatov's avatar Vitaly Lipatov

test_all.sh: improve tests

parent 68ea3a24
......@@ -5,6 +5,12 @@ fatal()
exit 1
}
restore_epm()
{
# in the far future: epm upgrade /usr/src/RPM/RPMS/noarch/*.rpm
epm --auto install /usr/src/RPM/RPMS/noarch/*.rpm
}
set -e -x
set -o pipefail
......@@ -12,6 +18,10 @@ epm print info
epm update
epm upgrade /usr/src/RPM/RPMS/noarch/*.rpm
epm downgrade /usr/src/RPM/RPMS/noarch/*.rpm
epm --auto remove erc
epm --auto install erc
......@@ -34,6 +44,7 @@ epm cl erc | head
# Sisyphus -> p10
epm --auto --force --force-yes downgrade-release p10
restore_epm
# p10 -> p9
epm --auto --force --force-yes downgrade-release
......@@ -41,13 +52,22 @@ restore_epm
# p9 -> p10
epm --auto --force --force-yes upgrade-release
restore_epm
# try upgrade p10
epm --auto --force --force-yes upgrade-release && fatal
restore_epm
# p10 -> Sisyphus
epm --auto --force --force-yes upgrade-release Sisyphus
restore_epm
epm checkpkg eepm
epm upgrade eepm
restore_epm || :
epm downgrade eepm
restore_epm || :
epm clean
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment