From 05bea3e922aa7aec5cba3242d3f34b5c10fad24e Mon Sep 17 00:00:00 2001 From: Levente Polyak Date: Mon, 4 Mar 2024 23:37:49 +0100 Subject: test: add basic bats setup and test cases for `version setup` Signed-off-by: Levente Polyak --- .../gitlab-archlinux-tarball-as-platform/PKGBUILD | 57 ++++++++++++++++++++++ .../nvchecker.assert.toml | 6 +++ 2 files changed, 63 insertions(+) create mode 100644 test/fixture/version/setup/gitlab-archlinux-tarball-as-platform/PKGBUILD create mode 100644 test/fixture/version/setup/gitlab-archlinux-tarball-as-platform/nvchecker.assert.toml (limited to 'test/fixture/version/setup/gitlab-archlinux-tarball-as-platform') diff --git a/test/fixture/version/setup/gitlab-archlinux-tarball-as-platform/PKGBUILD b/test/fixture/version/setup/gitlab-archlinux-tarball-as-platform/PKGBUILD new file mode 100644 index 0000000..adcd790 --- /dev/null +++ b/test/fixture/version/setup/gitlab-archlinux-tarball-as-platform/PKGBUILD @@ -0,0 +1,57 @@ +pkgname=devtools +epoch=1 +pkgver=1.1.1 +pkgrel=1 +pkgdesc='Tools for Arch Linux package maintainers' +arch=('any') +license=('GPL-3.0-or-later') +url='https://gitlab.archlinux.org/archlinux/devtools' +depends=( + arch-install-scripts + awk + bash + binutils + coreutils + curl + diffutils + fakeroot + findutils + grep + jq + openssh + parallel + rsync + sed + util-linux + + breezy + git + mercurial + subversion +) +makedepends=( + asciidoc + shellcheck +) +optdepends=( + 'btrfs-progs: btrfs support' + 'bat: pretty printing for pkgctl search' + 'nvchecker: pkgctl version subcommand' + 'pacman-contrib: support for the --update-checksums option' +) +replaces=(devtools-git-poc) +source=(https://gitlab.archlinux.org/archlinux/devtools/-/releases/v${pkgver}/downloads/devtools-${pkgver}.tar.gz{,.sig}) +validpgpkeys=( + 'E240B57E2C4630BA768E2F26FC1B547C8D8172C8' # Levente Polyak + 'F00B96D15228013FFC9C9D0393B11DAA4C197E3D' # Christian Heusel (gromit packager key) +) +sha256sums=('b2a12bb8b4b568110b055ccec903c9a0b0b979ab44f0cba574c026d243d5ce36' + 'SKIP') +b2sums=('be9601a4fcbb576b9a8637abdaec70f8ec730cf5752793c2f8fdce20e489b74555f624d0a0b5f8bb58c0914413a29d51698c8474430010502ab80d6c18c4332e' + 'SKIP') + +package() { + : +} + +# vim: ts=2 sw=2 et: diff --git a/test/fixture/version/setup/gitlab-archlinux-tarball-as-platform/nvchecker.assert.toml b/test/fixture/version/setup/gitlab-archlinux-tarball-as-platform/nvchecker.assert.toml new file mode 100644 index 0000000..1a91eb4 --- /dev/null +++ b/test/fixture/version/setup/gitlab-archlinux-tarball-as-platform/nvchecker.assert.toml @@ -0,0 +1,6 @@ +[devtools] +source = "gitlab" +gitlab = "archlinux/devtools" +host = "gitlab.archlinux.org" +use_max_tag = true +prefix = "v" -- cgit v1.2.3-70-g09d2