From 95bd0d7e05c790df9117155c2bec21c6735b43d6 Mon Sep 17 00:00:00 2001 From: Arthur Jones Date: Fri, 8 Jun 2018 09:47:28 -0700 Subject: [PATCH] alpine: add unit tests to build Now that make check works on alpine, add it to the build Testing done: alpine linux build -- check works Issue: https://github.com/FRRouting/frr/issues/2391 Signed-off-by: Arthur Jones --- alpine/APKBUILD.in | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/alpine/APKBUILD.in b/alpine/APKBUILD.in index c3e7e939e4..42896c21a5 100644 --- a/alpine/APKBUILD.in +++ b/alpine/APKBUILD.in @@ -20,6 +20,7 @@ makedepends="ncurses-dev net-snmp-dev gawk texinfo perl patch pax-utils pcre perl pkgconf python2 python2-dev readline readline-dev sqlite-libs squashfs-tools sudo tar texinfo xorriso xz-libs py-sphinx" +checkdepends="pytest py-setuptools" install="$pkgname.pre-install $pkgname.pre-deinstall $pkgname.post-deinstall" subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg" source="$pkgname-$pkgver.tar.gz docker-start daemons daemons.conf" @@ -45,13 +46,19 @@ build() { --enable-multipath=64 \ --enable-vty-group=frrvty \ --enable-user=$_user \ - --enable-group=$_user || return 1 - make || return 1 + --enable-group=$_user + make +} + +check() { + cd "$builddir" + + make -j 1 check } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install install -Dm755 "$srcdir"/docker-start "$pkgdir"$_sbindir install -Dm644 "$srcdir"/daemons "$pkgdir"$_sysconfdir -- 2.39.5