summaryrefslogtreecommitdiff
path: root/tests/hello-test/ba
blob: 1c509f0574b323da6e5897f3c853e143fb07c298 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

DBG=echo

rpm=${rpm:=rpm}
destdir="`pwd`"
destdir="`dirname $destdir`"

cp hello-1.0.tar.gz ../usr/src/redhat/SOURCES
zcat hello-1.0.tar.gz | tar xOf - \*.spec > ../usr/src/redhat/SPECS/hello.spec

${DBGX} $rpm -ba ../usr/src/redhat/SPECS/hello.spec 2>&1 | \
	sed -e "s,$destdir,,g" -e '/^make\[[0-9][0-9]*\]:/d' > $0.out

diff $0.out $0.exp || exit 1