aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Polański <michal@polanski.me>2021-02-17 22:58:55 +0100
committerLeo <thinkabit.ukim@gmail.com>2021-02-17 22:37:25 +0000
commitf56b40a3bfcdf265f26d7b91a5a713e55e81ffbc (patch)
tree6703e2ad799f3ee92a830d1aa5e545d120248906
parent629c91967fe755b1ec1bf8d7adf5c3d91d69699b (diff)
downloadaports-f56b40a3bfcdf265f26d7b91a5a713e55e81ffbc.tar.gz
aports-f56b40a3bfcdf265f26d7b91a5a713e55e81ffbc.tar.bz2
aports-f56b40a3bfcdf265f26d7b91a5a713e55e81ffbc.tar.xz
testing/sos: add tests
-rw-r--r--testing/sos/APKBUILD8
1 files changed, 6 insertions, 2 deletions
diff --git a/testing/sos/APKBUILD b/testing/sos/APKBUILD
index 4e9a24d339..13bf73e93a 100644
--- a/testing/sos/APKBUILD
+++ b/testing/sos/APKBUILD
@@ -5,9 +5,9 @@ pkgver=0.8
pkgrel=3
pkgdesc="Simple Object Storage"
url="https://github.com/skx/sos"
-arch="all !mips !mips64" # limited by go
license="GPL-2.0-or-later"
-options="!check chmod-clean" # has no check
+arch="all !mips !mips64" # limited by go
+options="chmod-clean"
makedepends="go"
source="sos-$pkgver.tar.gz::https://github.com/skx/sos/archive/release-$pkgver.tar.gz
use-go-modules.patch
@@ -23,6 +23,10 @@ build() {
-o ./bin/sos
}
+check() {
+ go test ./...
+}
+
package() {
install -Dm755 bin/sos "$pkgdir"/usr/bin/sos
}