diff options
author | yangchenguang <yangchenguang@uniontech.com> | 2023-01-06 11:14:03 +0800 |
---|---|---|
committer | Michal Domonkos <mdomonko@redhat.com> | 2023-03-13 15:32:25 +0100 |
commit | 5e6a510abe52cd6337758d088739e4539ae0e571 (patch) | |
tree | 7aa3abb34589616f25b353df7d272ba93ebccd09 | |
parent | 53cb48224421a74aa4d0dc3c378420599fdaa152 (diff) | |
download | rpm-5e6a510abe52cd6337758d088739e4539ae0e571.tar.gz |
Testcases: rpmbuild source name with space
Signed-off-by: yangchenguang <yangchenguang@uniontech.com>
(backported from commit 2b9342a0ecde00be145653e122e8cd32fabbae5a)
-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 |