Add support for global LDFLAGS
[platform/upstream/rpm.git] / tests / rpmscript.at
1 #    rpmscript.at: rpm scriptlet tests
2
3 AT_BANNER([RPM scriptlets])
4
5 # ------------------------------
6
7 AT_SETUP([basic scripts and arguments])
8 AT_KEYWORDS([verify])
9 AT_CHECK([
10 RPMDB_CLEAR
11 RPMDB_INIT
12 rm -rf "${TOPDIR}"
13
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
17
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
22 ],
23 [0],
24 [scripts-1.0-1 PRETRANS 0
25 scripts-1.0-1 PRE 1
26 scripts-1.0-1 POST 1
27 scripts-1.0-1 POSTTRANS 0
28 scripts-1.0-2 PRETRANS 0
29 scripts-1.0-2 PRE 2
30 scripts-1.0-2 POST 2
31 scripts-1.0-1 PREUN 1
32 scripts-1.0-1 POSTUN 1
33 scripts-1.0-2 POSTTRANS 0
34 scripts-1.0-2 PREUN 0
35 scripts-1.0-2 POSTUN 0
36 ],
37 [])
38 AT_CLEANUP
39