1 # rpmscript.at: rpm scriptlet tests
3 AT_BANNER([RPM scriptlets])
5 # ------------------------------
7 AT_SETUP([basic scripts and arguments])
14 runroot rpmbuild --quiet -bb /data/SPECS/fakeshell.spec
15 runroot rpmbuild --quiet -bb --define "rel 1" /data/SPECS/scripts.spec
16 runroot rpmbuild --quiet -bb --define "rel 2" /data/SPECS/scripts.spec
18 runroot rpm -U "${TOPDIR}"/RPMS/noarch/fakeshell-1.0-1.noarch.rpm
19 runroot rpm -U "${TOPDIR}"/RPMS/noarch/scripts-1.0-1.noarch.rpm
20 runroot rpm -U "${TOPDIR}"/RPMS/noarch/scripts-1.0-2.noarch.rpm
21 runroot rpm -e scripts
24 [scripts-1.0-1 PRETRANS 0
27 scripts-1.0-1 POSTTRANS 0
28 scripts-1.0-2 PRETRANS 0
32 scripts-1.0-1 POSTUN 1
33 scripts-1.0-2 POSTTRANS 0
35 scripts-1.0-2 POSTUN 0