[bitbake-devel] [PATCH] tests/fetch: Allow wget upgrade tests to run against a local server

Richard Purdie richard.purdie at linuxfoundation.org
Tue Jan 21 08:23:26 UTC 2020


[This patch is large and the mailing list doesn't like it. It contains
a static snapshots of various websites we've been using for testing
release tarball downloads which allows us to operate independently from
the upstream through a local http server. Its in master-next if anyone
wants to look at the code, just headers posted here]

Currently these tests rely upon multiple uptream webservers which may change
or be unavailable. Add local copies of the test data, copy the httpserver
from OE-Core (used for testing there) and run these tests against a local
server instead.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 .../tests/fetch-testdata/apple/cups/releases  | 2400 +++++++++++++++++
 .../debian/pool/main/d/db5.3/index.html       |  509 ++++
 .../downloads/enchant/1.6.0/index.html        |   15 +
 .../fetch-testdata/files/v2.8/index.html      |  774 ++++++
 .../fetch-testdata/files/v3.0/index.html      |  209 ++
 .../fetch-testdata/files/v3.1/index.html      |  156 ++
 .../fetch-testdata/files/v3.10/index.html     |  131 +
 .../fetch-testdata/files/v3.11/index.html     |  131 +
 .../fetch-testdata/files/v3.12/index.html     |  118 +
 .../fetch-testdata/files/v3.13/index.html     |  131 +
 .../fetch-testdata/files/v3.14/index.html     |  170 ++
 .../fetch-testdata/files/v3.15/index.html     |  157 ++
 .../fetch-testdata/files/v3.16/index.html     |   86 +
 .../fetch-testdata/files/v3.2/index.html      |  132 +
 .../fetch-testdata/files/v3.3/index.html      |  163 ++
 .../fetch-testdata/files/v3.4/index.html      |  127 +
 .../fetch-testdata/files/v3.5/index.html      |  111 +
 .../fetch-testdata/files/v3.6/index.html      |  159 ++
 .../fetch-testdata/files/v3.7/index.html      |   92 +
 .../fetch-testdata/files/v3.8/index.html      |  105 +
 .../fetch-testdata/files/v3.9/index.html      |  183 ++
 .../linux/utils/util-linux/v2.23/index.html   |   45 +
 .../linux/utils/util-linux/v2.24/index.html   |   43 +
 .../linux/utils/util-linux/v2.25/index.html   |   46 +
 .../linux/utils/util-linux/v2.26/index.html   |   42 +
 .../linux/utils/util-linux/v2.27/index.html   |   35 +
 .../linux/utils/util-linux/v2.28/index.html   |   42 +
 .../linux/utils/util-linux/v2.29/index.html   |   42 +
 .../linux/utils/util-linux/v2.30/index.html   |   42 +
 .../linux/utils/util-linux/v2.31/index.html   |   35 +
 .../linux/utils/util-linux/v2.32/index.html   |   35 +
 .../linux/utils/util-linux/v2.33/index.html   |   42 +
 .../linux/utils/util-linux/v2.34/index.html   |   28 +
 .../linux/utils/util-linux/v2.35/index.html   |   18 +
 .../fetch-testdata/releases/eglibc/index.html |   21 +
 .../releases/gnu-config/index.html            |    9 +
 .../releases/individual/xserver/index.html    |  609 +++++
 .../software/pulseaudio/releases/index.html   |  383 +++
 lib/bb/tests/fetch.py                         |   70 +-
 lib/bb/tests/support/httpserver.py            |   65 +
 40 files changed, 7691 insertions(+), 20 deletions(-)
 create mode 100644 lib/bb/tests/fetch-testdata/apple/cups/releases
 create mode 100644 lib/bb/tests/fetch-testdata/debian/pool/main/d/db5.3/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/downloads/enchant/1.6.0/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/files/v2.8/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/files/v3.0/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/files/v3.1/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/files/v3.10/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/files/v3.11/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/files/v3.12/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/files/v3.13/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/files/v3.14/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/files/v3.15/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/files/v3.16/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/files/v3.2/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/files/v3.3/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/files/v3.4/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/files/v3.5/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/files/v3.6/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/files/v3.7/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/files/v3.8/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/files/v3.9/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/pub/linux/utils/util-linux/v2.23/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/pub/linux/utils/util-linux/v2.24/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/pub/linux/utils/util-linux/v2.25/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/pub/linux/utils/util-linux/v2.26/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/pub/linux/utils/util-linux/v2.27/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/pub/linux/utils/util-linux/v2.28/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/pub/linux/utils/util-linux/v2.29/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/pub/linux/utils/util-linux/v2.30/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/pub/linux/utils/util-linux/v2.31/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/pub/linux/utils/util-linux/v2.32/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/pub/linux/utils/util-linux/v2.33/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/pub/linux/utils/util-linux/v2.34/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/pub/linux/utils/util-linux/v2.35/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/releases/eglibc/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/releases/gnu-config/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/releases/individual/xserver/index.html
 create mode 100644 lib/bb/tests/fetch-testdata/software/pulseaudio/releases/index.html
 create mode 100644 lib/bb/tests/support/httpserver.py



More information about the bitbake-devel mailing list