diff options
author | Michał Polański <michal@polanski.me> | 2020-05-23 20:10:16 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2020-05-28 15:06:54 +0000 |
commit | 11e9491c7c804e82dc45dff606db647a51cc4e0b (patch) | |
tree | 1e963c421d153ef672cf940ac5ef8279ac231a63 | |
parent | 8f7cf916fc0895b6d8061ded0ba65673f06764f4 (diff) | |
download | alpine_aports-11e9491c7c804e82dc45dff606db647a51cc4e0b.tar.bz2 alpine_aports-11e9491c7c804e82dc45dff606db647a51cc4e0b.tar.xz alpine_aports-11e9491c7c804e82dc45dff606db647a51cc4e0b.zip |
testing/shfmt: enable tests
-rw-r--r-- | testing/shfmt/APKBUILD | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/testing/shfmt/APKBUILD b/testing/shfmt/APKBUILD index a7e7eb8543..9da2399464 100644 --- a/testing/shfmt/APKBUILD +++ b/testing/shfmt/APKBUILD | |||
@@ -7,7 +7,6 @@ pkgdesc="A shell parser, formatter, and interpreter (sh/bash/mksh)" | |||
7 | url="https://mvdan.cc/sh" | 7 | url="https://mvdan.cc/sh" |
8 | arch="all" | 8 | arch="all" |
9 | license="BSD-3-Clause" | 9 | license="BSD-3-Clause" |
10 | options="!check" # no test suite | ||
11 | makedepends="go" | 10 | makedepends="go" |
12 | source="$pkgname-$pkgver.tar.gz::https://github.com/mvdan/sh/archive/v$pkgver.tar.gz" | 11 | source="$pkgname-$pkgver.tar.gz::https://github.com/mvdan/sh/archive/v$pkgver.tar.gz" |
13 | builddir="$srcdir/sh-$pkgver" | 12 | builddir="$srcdir/sh-$pkgver" |
@@ -19,6 +18,10 @@ build() { | |||
19 | ./cmd/shfmt | 18 | ./cmd/shfmt |
20 | } | 19 | } |
21 | 20 | ||
21 | check() { | ||
22 | go test ./... | ||
23 | } | ||
24 | |||
22 | package() { | 25 | package() { |
23 | install -Dm755 shfmt "$pkgdir"/usr/bin/shfmt | 26 | install -Dm755 shfmt "$pkgdir"/usr/bin/shfmt |
24 | } | 27 | } |