Add couple of tar build tests + another version of hello tarball

This commit is contained in:
Panu Matilainen 2008-11-22 11:45:55 +02:00
parent 1c57e1d337
commit d6ea0224cc
2 changed files with 30 additions and 0 deletions

Binary file not shown.

View File

@ -83,3 +83,33 @@ run rpmbuild \
[ignore],
[ignore])
AT_CLEANUP
# ------------------------------
# Check if tar unpacking works
AT_SETUP([rpmbuild -tb <tar with bad spec>])
AT_CHECK([
rm -rf ${TOPDIR}
run rpmbuild \
-tb "${RPMDATA}/SOURCES/hello-1.0.tar.gz"
],
[1],
[ignore],
[error: line 5: Unknown tag: Serial: 1
])
AT_CLEANUP
# ------------------------------
# Check if tar build works
# TODO: test that the rpms are actually created...
AT_SETUP([rpmbuild -tb])
AT_CHECK([
rm -rf ${TOPDIR}
run rpmbuild \
-ta "${RPMDATA}/SOURCES/hello-2.0.tar.gz"
],
[0],
[ignore],
[ignore])
AT_CLEANUP