First attempt at "make check".
[platform/upstream/rpm.git] / tests / hello-test / test0
1 #!/bin/sh
2
3 DBG=echo
4
5 rpm=${rpm:=rpm}
6 destdir="`pwd`"
7 destdir="`dirname $destdir`"
8
9 ${DBGX} $rpm --initdb
10 ${DBGX} $rpm --showrc
11
12 #${DBGX} $rpm -ta hello-1.0-tar.gz
13
14 cp hello-1.0.tar.gz ../usr/src/redhat/SOURCES
15 zcat hello-1.0.tar.gz | tar xOf - \*.spec > ../usr/src/redhat/SPECS/hello.spec
16 ${DBGX} $rpm -ba ../usr/src/redhat/SPECS/hello.spec 2>&1 | sed -e "s,$destdir,," > test0.out
17
18 exit 0