source: yum/trunk/test/release.sh@ 1569

Last change on this file since 1569 was 516, checked in by Yuri Dario, 11 years ago

yum: update trunk to 3.4.3.

File size: 3.1 KB
Line 
1#! /bin/sh -e
2
3function bbanner
4{
5 python -c 'print "=" * 79'
6 echo $@
7 python -c 'print "-" * 79'
8}
9function ebanner
10{
11 python -c 'print "-" * 79'
12 echo $@
13 python -c 'print "=" * 79'
14}
15
16
17function utst
18{
19 bbanner "Testing (user):" $@
20 "$@"
21 ebanner "Does that look fine? For (user):" $@
22 sleep 8
23}
24
25function stst
26{
27 bbanner "Testing (root):" $@
28 sudo "$@"
29 ebanner "Does that look fine? For (root):" $@
30 sleep 8
31}
32
33stst yum version nogroups
34utst yum version nogroups
35stst yum history list
36stst yum history new
37stst yum history new
38
39utst yum list zzuf
40
41stst yum version nogroups
42stst yum install zzuf
43stst yum version nogroups
44stst yum reinstall zzuf
45stst yum version nogroups
46stst yum remove zzuf
47stst yum version nogroups
48stst yum install yourmom || true
49stst yum install -y zzuf | tee /tmp/yum-release-testing-install-y-zzuf
50stst cat /tmp/yum-release-testing-install-y-zzuf
51stst yum version nogroups
52stst yum remove -y zzuf | tee /tmp/yum-release-testing-remove-y-zzuf
53stst cat /tmp/yum-release-testing-remove-y-zzuf
54stst yum version nogroups
55
56stst yum history list
57
58stst yum localinstall || true
59stst yum localinstall yourmom || true
60
61stst yum list updates
62stst yum list obsoletes
63stst yum list available
64stst yum list installed
65stst yum check-update || true
66
67echo | stst yum update || true
68
69stst yum groupinstall 'News Server'
70stst yum groupremove 'News Server'
71stst yum groupinstall -y 'News Server'
72stst yum groupremove --setopt=clean_requirements_on_remove=true -y 'News Server'
73# News server has a bunch of deps.
74stst yum groupinstall -y 'News Server'
75
76stst yum history undo last-4 -y
77
78stst yum history list
79
80utst yum grouplist
81utst yum grouplist not_a_group
82utst yum groupinfo || true
83utst yum groupinfo not_a_group
84
85stst yum info zzuf
86utst yum info zzuf
87stst yum makecache
88utst yum makecache
89
90stst yum clean all
91utst yum clean all
92
93stst yum -d0 -e0 install || true
94
95utst yum --version
96
97utst yum search || true
98
99stst yum provides zzuf
100stst yum provides /usr/bin/zzuf
101stst yum provides /usr/bin/yum
102utst yum provides /usr/share/man/man1/zzuf.1.gz
103utst yum provides '/usr/share/man/man*/zzuf.*.gz'
104stst yum provides '/usr/share/man/man1/zzcat.*.gz'
105utst yum provides '/usr/share/man/man*/zzcat.*.gz'
106utst yum resolvedep /usr/bin/zzcat
107
108
109stst yum deplist yum
110utst yum deplist zzuf
111
112echo
113echo
114python -c 'print "*" * 79'
115echo "Running 'make check', this should work but meh:"
116python -c 'print "*" * 79'
117make check
118echo
119echo
120
121sleep 8
122
123echo
124echo
125python -c 'print "=" * 79'
126python -c 'print "*" * 79'
127echo "Done, good to do a release. Running git2cl:"
128make changelog || true
129python -c 'print "*" * 79'
130python -c 'print "=" * 79'
131echo "
132 Make sure you have edited yum/__init__.py:__version__
133 *.spec versions
134
135 If not check --version again.
136
137 ChangeLog has been updated, check with git diff, then:
138
139git commit
140git push
141
142git tag -a yum-#-#-#
143git push --tags
144
145make archive
146
147 Stick a build in rawhide.
148
149 Update webpages:
150 Main wiki page.
151 /whatsnew
152 /releases
153
154 Upload tarball to yum.baseurl.org:/srv/projects/yum/web/download/x.y
155
156 Send email to user and devel mailing list.
157"
158python -c 'print "=" * 79'
Note: See TracBrowser for help on using the repository browser.