diff options
Diffstat (limited to 'tests/hello-test/test0')
-rwxr-xr-x | tests/hello-test/test0 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/hello-test/test0 b/tests/hello-test/test0 new file mode 100755 index 000000000..83ba27d52 --- /dev/null +++ b/tests/hello-test/test0 @@ -0,0 +1,18 @@ +#!/bin/sh + +DBG=echo + +rpm=${rpm:=rpm} +destdir="`pwd`" +destdir="`dirname $destdir`" + +${DBGX} $rpm --initdb +${DBGX} $rpm --showrc + +#${DBGX} $rpm -ta hello-1.0-tar.gz + +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,," > test0.out + +exit 0 |