Cosmetics.
[platform/upstream/rpm.git] / tests / rpmi.at
1 #    rpmi.at: test rpmi
2 #
3 #    Copyright (C) 2007  Ralf Corsépius <corsepiu@fedoraproject.org>
4 #
5 #    This program is free software; you can redistribute it and/or modify
6 #    it under the terms of the GNU General Public License as published by
7 #    the Free Software Foundation; either version 2 of the License, or
8 #    (at your option) any later version.
9 #
10 #    This program is distributed in the hope that it will be useful,
11 #    but WITHOUT ANY WARRANTY; without even the implied warranty of
12 #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 #    GNU General Public License for more details.
14 #
15 #    You should have received a copy of the GNU General Public License
16 #    along with this program; if not, write to the Free Software
17 #    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
18
19 # ------------------------------
20 # Check if rpmi -U *.src.rpm works
21 AT_SETUP([rpmi -U *.src.rpm])
22 AT_CHECK([
23 TOPDIR="${abs_builddir}"/testing/build
24
25 rm -rf ${TOPDIR}
26 AS_MKDIR_P([${TOPDIR}])
27
28 rpmi \
29   --rcfile=${RPMRC} \
30   --define "_topdir ${TOPDIR}" \
31   -U "${abs_srcdir}"/data/SRPMS/hello-1.0-1.src.rpm
32 ],
33 [0],
34 [ignore],
35 [ignore])
36 AT_CLEANUP
37
38 # ------------------------------
39 # Check if rpmi -i *.src.rpm works
40 AT_SETUP([rpmi -i *.src.rpm])
41 AT_CHECK([
42 TOPDIR="${abs_builddir}"/testing/build
43
44 rm -rf ${TOPDIR}
45 AS_MKDIR_P([${TOPDIR}])
46
47 rpmi \
48   --rcfile=${RPMRC} \
49   --define "_topdir ${TOPDIR}" \
50   -i "${abs_srcdir}"/data/SRPMS/hello-1.0-1.src.rpm
51 ],
52 [0],
53 [ignore],
54 [ignore])
55 AT_CLEANUP