test_all.sh 1.01 KB
Newer Older
1
#!/bin/bash
2

3 4
EPMPKGFILE=/usr/src/RPM/RPMS/noarch/eepm-3*.rpm

Vitaly Lipatov's avatar
Vitaly Lipatov committed
5 6 7 8 9
fatal()
{
    exit 1
}

10 11 12
restore_epm()
{
	# in the far future: epm upgrade /usr/src/RPM/RPMS/noarch/*.rpm
13
	epm --auto install $EPMPKGFILE
14 15
}

16
set -e -x
Vitaly Lipatov's avatar
Vitaly Lipatov committed
17 18 19 20
set -o pipefail

epm print info

21 22
epm update

23
epm upgrade $EPMPKGFILE
24

25
epm downgrade $EPMPKGFILE
26

Vitaly Lipatov's avatar
Vitaly Lipatov committed
27 28
epm --auto remove erc

29 30 31 32 33 34
epm --auto install erc

epm --auto remove erc

epm --auto autoremove

Vitaly Lipatov's avatar
Vitaly Lipatov committed
35 36 37 38
epm --auto autoremove --direct

epm --auto autoorphans

39 40
epm --auto upgrade

Vitaly Lipatov's avatar
Vitaly Lipatov committed
41 42 43 44 45 46
epmqf bash

epm ql eepm | head

epm cl erc | head

47 48
# Sisyphus -> p10
epm --auto --force --force-yes downgrade-release p10
49
restore_epm
Vitaly Lipatov's avatar
Vitaly Lipatov committed
50

51 52
# p10 -> p9
epm --auto --force --force-yes downgrade-release
53
restore_epm
Vitaly Lipatov's avatar
Vitaly Lipatov committed
54

55 56
# p9 -> p10
epm --auto --force --force-yes upgrade-release
57
restore_epm
Vitaly Lipatov's avatar
Vitaly Lipatov committed
58

59 60
# try upgrade p10
epm --auto --force --force-yes upgrade-release && fatal
61
restore_epm
Vitaly Lipatov's avatar
Vitaly Lipatov committed
62

63 64
# p10 -> Sisyphus
epm --auto --force --force-yes upgrade-release Sisyphus
65
restore_epm
Vitaly Lipatov's avatar
Vitaly Lipatov committed
66 67 68

epm checkpkg eepm

69 70 71 72 73 74
epm upgrade eepm
restore_epm || :

epm downgrade eepm
restore_epm || :

Vitaly Lipatov's avatar
Vitaly Lipatov committed
75
epm clean