summaryrefslogtreecommitdiff
path: root/apkbuild-cpan.in
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-07-11 15:04:36 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-07-11 15:05:10 +0300
commit91de00773f10e0b3b19523986c9021f6561e9554 (patch)
treec363944d0e8cbe2187c98c872ddb19d34bf13b76 /apkbuild-cpan.in
parent37cbcc6d99d9a2963baf5519171c3334cb7da2b9 (diff)
downloadabuild-91de00773f10e0b3b19523986c9021f6561e9554.tar.gz
abuild-91de00773f10e0b3b19523986c9021f6561e9554.tar.bz2
abuild-91de00773f10e0b3b19523986c9021f6561e9554.tar.xz
abuild-91de00773f10e0b3b19523986c9021f6561e9554.zip
apkbuild-cpan: separate './Build test' to check step
Diffstat (limited to 'apkbuild-cpan.in')
-rw-r--r--apkbuild-cpan.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/apkbuild-cpan.in b/apkbuild-cpan.in
index 54dbfd4..8160042 100644
--- a/apkbuild-cpan.in
+++ b/apkbuild-cpan.in
@@ -194,7 +194,7 @@ EOF
build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
- ./Build && ./Build test
+ ./Build
}
EOF
$package_func = <<'EOF';
@@ -204,6 +204,12 @@ package() {
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
EOF
+ $check_func = <<'EOF';
+check() {
+ cd "$builddir"
+ ./Build test
+}
+EOF
} else {
$prepare_func = <<'EOF';
prepare() {