diff options
author | Ross Burton <ross.burton@arm.com> | 2025-03-26 12:25:23 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-27 13:40:31 +0000 |
commit | 43a2be28972efb5327e91bfc0a460de1ce874cf5 (patch) | |
tree | 972474931deccee5ddfdfc015004e2e2f94c16a3 /bitbake/lib/bb/tests/fetch.py | |
parent | 58c015cdd766452732af1dfde52eab2278fc0bbe (diff) | |
download | poky-43a2be28972efb5327e91bfc0a460de1ce874cf5.tar.gz |
bitbake: tests/fetch: add a test for download paths without a proper filename
For example the miniupnpd recipe has a SRC_URI like this:
http://miniupnp.tuxfamily.org/files/download.php?file=${BP}.tar.gz
In this case the path is /files/download.php, which isn't useful when
the latest_upstream logic bails early if there is no version in the path.
The logic now also checks in the downloadfilename, so add a test that
this works as expected.
(Bitbake rev: fffbf5d5e1c8556cddf0794e0b303bb0106747a0)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/tests/fetch.py')
-rw-r--r-- | bitbake/lib/bb/tests/fetch.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py index 8eb0dfe9a1..65339d1bb1 100644 --- a/bitbake/lib/bb/tests/fetch.py +++ b/bitbake/lib/bb/tests/fetch.py | |||
@@ -1524,6 +1524,12 @@ class FetchLatestVersionTest(FetcherTest): | |||
1524 | # http://ftp.debian.org/debian/pool/main/m/minicom/minicom_2.7.1.orig.tar.gz | 1524 | # http://ftp.debian.org/debian/pool/main/m/minicom/minicom_2.7.1.orig.tar.gz |
1525 | WgetTestData("minicom", "/debian/pool/main/m/minicom/minicom_2.7.1.orig.tar.gz") | 1525 | WgetTestData("minicom", "/debian/pool/main/m/minicom/minicom_2.7.1.orig.tar.gz") |
1526 | : "2.8", | 1526 | : "2.8", |
1527 | |||
1528 | # | ||
1529 | # packages where the path doesn't actually contain the filename, so downloadfilename should be respected | ||
1530 | # | ||
1531 | WgetTestData("miniupnpd", "/software/miniupnp/download.php?file=miniupnpd_2.1.20191006.tar.gz;downloadfilename=miniupnpd_2.1.20191006.tar.gz", pv="2.1.20191006", check_uri="/software/miniupnp/download.php", check_regex=r"miniupnpd-(?P<pver>\d+(\.\d+)+)\.tar") | ||
1532 | : "2.3.7", | ||
1527 | } | 1533 | } |
1528 | 1534 | ||
1529 | test_crate_uris = { | 1535 | test_crate_uris = { |