From 42f100b1c898bb517375cf35fcfee8fdf4f75c2e Mon Sep 17 00:00:00 2001 From: Andrej Shadura <andrew.shadura@collabora.co.uk> Date: Tue, 2 Feb 2021 12:08:22 +0100 Subject: [PATCH] Add a basic test of apertis-pkg-pull-updates functionality MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Try to download an update for dash from Buster, given a repository with a version from Lenny. Don’t try to check when exactly is in the update, as versions may change, but verify a tarball has been imported. Signed-off-by: Andrej Shadura <andrew.shadura@collabora.co.uk> --- .gitlab-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a660bb1..83696a6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -127,6 +127,16 @@ test-package-source-builder: name: $CI_REGISTRY_IMAGE/${RELEASE}-package-source-builder:${TEST_TAG} entrypoint: [ "" ] script: + - git clone https://gitlab.apertis.org/infrastructure/test-data/fixture-dash-non-updated + - ": Verify we can pull updates from Buster" + - cd fixture-dash-non-updated + - apertis-pkg-pull-updates --upstream=buster --mirror https://deb.debian.org/debian + - head -n 10 debian/changelog + - git log --graph --oneline + - pristine-lfs list + - test "$(git tag --list 'debian/*' | wc -l)" = 2 + - test "$(pristine-lfs list | wc -l)" = 2 + - cd .. - git clone https://gitlab.apertis.org/infrastructure/test-data/fixture-dash-unmodified - ": Verify we correctly detect when there are no local changes and use the co0 suffix" - cd fixture-dash-unmodified -- GitLab