diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-11-22 11:45:55 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-11-22 11:45:55 +0200 |
commit | d6ea0224cc7a3e0c7dec7edfa8ba210ada9e6167 (patch) | |
tree | 2f1355f1a5a843c995d5614f66040ecc7d2c4605 /tests | |
parent | 1c57e1d337c00b475253c522461f689e911bc426 (diff) | |
download | librpm-tizen-d6ea0224cc7a3e0c7dec7edfa8ba210ada9e6167.tar.gz librpm-tizen-d6ea0224cc7a3e0c7dec7edfa8ba210ada9e6167.tar.bz2 librpm-tizen-d6ea0224cc7a3e0c7dec7edfa8ba210ada9e6167.zip |
Add couple of tar build tests + another version of hello tarball
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/SOURCES/hello-2.0.tar.gz | bin | 0 -> 863 bytes | |||
-rw-r--r-- | tests/rpmbuild.at | 30 |
2 files changed, 30 insertions, 0 deletions
diff --git a/tests/data/SOURCES/hello-2.0.tar.gz b/tests/data/SOURCES/hello-2.0.tar.gz Binary files differnew file mode 100644 index 000000000..84976e255 --- /dev/null +++ b/tests/data/SOURCES/hello-2.0.tar.gz diff --git a/tests/rpmbuild.at b/tests/rpmbuild.at index 4a672b2b0..0d26b69fa 100644 --- a/tests/rpmbuild.at +++ b/tests/rpmbuild.at @@ -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 |