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 --- test/fixture/version/setup/hackage-tarball/PKGBUILD | 16 ++++++++++++++++ .../version/setup/hackage-tarball/nvchecker.assert.toml | 3 +++ 2 files changed, 19 insertions(+) create mode 100644 test/fixture/version/setup/hackage-tarball/PKGBUILD create mode 100644 test/fixture/version/setup/hackage-tarball/nvchecker.assert.toml (limited to 'test/fixture/version/setup/hackage-tarball') diff --git a/test/fixture/version/setup/hackage-tarball/PKGBUILD b/test/fixture/version/setup/hackage-tarball/PKGBUILD new file mode 100644 index 0000000..d6ae5d2 --- /dev/null +++ b/test/fixture/version/setup/hackage-tarball/PKGBUILD @@ -0,0 +1,16 @@ +_hkgname=implicit-hie +pkgname=haskell-implicit-hie +pkgver=0.1.2.7 +pkgrel=114 +pkgdesc="Auto generate hie-bios cradles & hie.yaml" +url="https://github.com/Avi-D-coder/implicit-hie#readme" +license=("custom:BSD3") +arch=('x86_64') +depends=('ghc-libs' 'haskell-attoparsec' 'haskell-filepattern' 'haskell-yaml') +makedepends=('ghc' 'haskell-hspec' 'haskell-hspec-attoparsec') +source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz") +sha512sums=('b0746867352b29dd2d4c4535ce6f4d61c3cc61ed31f3f18d49e3f657b12d470a9a53a7ef8a785a9e19b8ff12fb8d8b1cfa80c5c22c90af65bf4b39ab62bbd768') + +package() { + : +} diff --git a/test/fixture/version/setup/hackage-tarball/nvchecker.assert.toml b/test/fixture/version/setup/hackage-tarball/nvchecker.assert.toml new file mode 100644 index 0000000..1f00b99 --- /dev/null +++ b/test/fixture/version/setup/hackage-tarball/nvchecker.assert.toml @@ -0,0 +1,3 @@ +[haskell-implicit-hie] +source = "hackage" +hackage = "implicit-hie" -- cgit v1.2.3-70-g09d2