mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-22 15:02:59 +00:00
tests: abuild: port mutiline license test
This commit is contained in:
parent
bd84b91ba9
commit
709235bc82
@ -20,7 +20,8 @@ init_tests \
|
||||
abuild_valid_pkgnames \
|
||||
abuild_invalid_pkgnames \
|
||||
abuild_invalid_subpkgnames \
|
||||
abuild_invalid_subpkg_version
|
||||
abuild_invalid_subpkg_version \
|
||||
abuild_multiline_license
|
||||
|
||||
export ABUILD_SHAREDIR=$(atf_get_srcdir)/..
|
||||
export ABUILD_CONF=/dev/null
|
||||
@ -390,3 +391,11 @@ abuild_invalid_subpkg_version_body() {
|
||||
-e match:"Invalid version" \
|
||||
abuild all
|
||||
}
|
||||
|
||||
abuild_multiline_license_body() {
|
||||
cp -ra "$testrepo"/test-licenses .
|
||||
cd test-licenses
|
||||
abuild rootpkg
|
||||
atf_check -o match:'^license = MIT AND GPL-3.0-only OR GPL-3.0-or-later AND BSD-Clause-4$' \
|
||||
cat pkg/.control.test-licenses/.PKGINFO
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user