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-tarball-as-platform/PKGBUILD | 29 ++++++++++++++++++++++ .../nvchecker.assert.toml | 4 +++ 2 files changed, 33 insertions(+) create mode 100644 test/fixture/version/setup/github-tarball-as-platform/PKGBUILD create mode 100644 test/fixture/version/setup/github-tarball-as-platform/nvchecker.assert.toml (limited to 'test/fixture/version/setup/github-tarball-as-platform') diff --git a/test/fixture/version/setup/github-tarball-as-platform/PKGBUILD b/test/fixture/version/setup/github-tarball-as-platform/PKGBUILD new file mode 100644 index 0000000..cf66024 --- /dev/null +++ b/test/fixture/version/setup/github-tarball-as-platform/PKGBUILD @@ -0,0 +1,29 @@ +pkgname=git-smash +pkgver=0.1.0 +pkgrel=1 +pkgdesc='Smash staged changes into previous commits to support your Git workflow' +url='https://github.com/anthraxx/git-smash' +arch=('x86_64') +license=('MIT') +depends=('glibc' 'gcc-libs' 'git') +makedepends=('cargo' 'scdoc') +optdepends=( + 'skim: selection menu alternative' + 'fzf: selection menu alternative' +) +source=(${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz + ${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz.sig) +options=('!makeflags') +sha512sums=('64a8b6e2afa7007966245a4888e51251e8c35f0b82421f3cee634a3e7b82256a24459cba2941800a6e50a047766a0f8de20b435904d17df3fd456b6c09ac4c5f' + 'SKIP') +b2sums=('acc46b7a87135380fe36c378e9055b8b7c9b88a818c955f04677161f50d5ccd5699ac05f0a858dd11ca7b42b3505c0ac037f50efcd690f9e5a76be395d5d6590' + 'SKIP') +validpgpkeys=( + 'E240B57E2C4630BA768E2F26FC1B547C8D8172C8' # Levente Polyak +) + +package() { + : +} + +# vim: ts=2 sw=2 et: diff --git a/test/fixture/version/setup/github-tarball-as-platform/nvchecker.assert.toml b/test/fixture/version/setup/github-tarball-as-platform/nvchecker.assert.toml new file mode 100644 index 0000000..b3c5db2 --- /dev/null +++ b/test/fixture/version/setup/github-tarball-as-platform/nvchecker.assert.toml @@ -0,0 +1,4 @@ +[git-smash] +source = "github" +github = "anthraxx/git-smash" +use_max_tag = true -- cgit v1.2.3-70-g09d2