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 --- .../setup/github-git-v-prefix-as-platform/PKGBUILD | 17 +++++++++++++++++ .../nvchecker.assert.toml | 5 +++++ 2 files changed, 22 insertions(+) create mode 100644 test/fixture/version/setup/github-git-v-prefix-as-platform/PKGBUILD create mode 100644 test/fixture/version/setup/github-git-v-prefix-as-platform/nvchecker.assert.toml (limited to 'test/fixture/version/setup/github-git-v-prefix-as-platform') diff --git a/test/fixture/version/setup/github-git-v-prefix-as-platform/PKGBUILD b/test/fixture/version/setup/github-git-v-prefix-as-platform/PKGBUILD new file mode 100644 index 0000000..386d0c1 --- /dev/null +++ b/test/fixture/version/setup/github-git-v-prefix-as-platform/PKGBUILD @@ -0,0 +1,17 @@ +pkgname=vim +pkgver=9.1.0131 +pkgrel=1 +pkgdesc="A dead-simple tool to sign files and verify digital signatures" +arch=('x86_64') +url="https://github.com/jedisct1/minisign" +license=('custom:ISC') +depends=('libsodium') +makedepends=('cmake' 'git') +_commit=feefda7af87f64342bd07bf446ceb0467cbd0fb4 # git rev-parse $pkgver +source=("git+https://github.com/vim/vim.git?signed#tag=v${pkgver}") +sha512sums=('SKIP') +validpgpkeys=(54A2B8892CC3D6A597B92B6C210627AABA709FE1) # Frank Denis + +package() { + : +} diff --git a/test/fixture/version/setup/github-git-v-prefix-as-platform/nvchecker.assert.toml b/test/fixture/version/setup/github-git-v-prefix-as-platform/nvchecker.assert.toml new file mode 100644 index 0000000..a6c7da1 --- /dev/null +++ b/test/fixture/version/setup/github-git-v-prefix-as-platform/nvchecker.assert.toml @@ -0,0 +1,5 @@ +[vim] +source = "github" +github = "vim/vim" +use_max_tag = true +prefix = "v" -- cgit v1.2.3-70-g09d2