diff options
-rw-r--r-- | tests/Makefile.am | 2 | ||||
-rw-r--r-- | tests/data/SOURCES/source_space.tar.gz | bin | 0 -> 116 bytes | |||
-rw-r--r-- | tests/data/SPECS/source_space.spec | 14 | ||||
-rw-r--r-- | tests/rpmbuild.at | 16 |
4 files changed, 32 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 0d550ee92..53c4d6946 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -123,6 +123,8 @@ EXTRA_DIST += data/SPECS/hello-attr-buildid.spec EXTRA_DIST += data/SPECS/hello-config-buildid.spec EXTRA_DIST += data/SPECS/hello-cd.spec EXTRA_DIST += data/SPECS/verifyfiles.spec +EXTRA_DIST += data/SPECS/source_space.spec +EXTRA_DIST += data/SOURCES/source_space.tar.gz EXTRA_DIST += data/keys/rpm.org-rsa-2048-test.pgp EXTRA_DIST += data/keys/rpm.org-rsa-2048-test.pub EXTRA_DIST += data/keys/rpm.org-rsa-2048-test.pgp diff --git a/tests/data/SOURCES/source_space.tar.gz b/tests/data/SOURCES/source_space.tar.gz Binary files differnew file mode 100644 index 000000000..6f6670914 --- /dev/null +++ b/tests/data/SOURCES/source_space.tar.gz diff --git a/tests/data/SPECS/source_space.spec b/tests/data/SPECS/source_space.spec new file mode 100644 index 000000000..b8156c37a --- /dev/null +++ b/tests/data/SPECS/source_space.spec @@ -0,0 +1,14 @@ +Name: source_space +Version: 1.0 +Release: 1 +Summary: Testing source space +License: GPLv2+ +BuildArch: noarch +Source0: source space.tar.gz + +%description +Testing source space + +%prep +%setup -q -c -n source_space + diff --git a/tests/rpmbuild.at b/tests/rpmbuild.at index e810c8478..7b246f5e1 100644 --- a/tests/rpmbuild.at +++ b/tests/rpmbuild.at @@ -2140,3 +2140,19 @@ runroot rpmbuild \ ], [ignore]) AT_CLEANUP + +# ------------------------------ +# Check source name with space +AT_SETUP([rpmbuild source name with space]) +AT_KEYWORDS([build]) +RPMDB_INIT +AT_CHECK([ + +# EXTRA_DIST entries in tests/Makefile.am can't contain spaces +cp ${RPMTEST}/data/SOURCES/source_space.tar.gz "${RPMTEST}/data/SOURCES/source space.tar.gz" +runroot rpmbuild -bp --quiet /data/SPECS/source_space.spec +], +[0], +[], +[]) +AT_CLEANUP |