~alpine/aports

testing/linux-test-project: new aport v2 PROPOSED

Petr Vorel: 1
 testing/linux-test-project: new aport

 1 files changed, 79 insertions(+), 0 deletions(-)
Hi Alice,

On Wed, 18 Jan 2023 at 22:03, alice <alice@ayaya.dev> wrote:
Next
Hi all,
Next
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/aports/patches/3439/mbox | git am -3
Learn more about email & git

[PATCH v2 1/1] testing/linux-test-project: new aport Export this patch

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
---
Changes v1->v2:
* update title to testing to reflect directory
Kind regards,
Petr

 testing/linux-test-project/APKBUILD | 79 +++++++++++++++++++++++++++++
 1 file changed, 79 insertions(+)
 create mode 100644 testing/linux-test-project/APKBUILD

diff --git a/testing/linux-test-project/APKBUILD b/testing/linux-test-project/APKBUILD
new file mode 100644
index 0000000000..e8bd718b90
--- /dev/null
+++ b/testing/linux-test-project/APKBUILD
@@ -0,0 +1,79 @@
# Contributor: Petr Vorel <petr.vorel@gmail.com>
# Maintainer: Petr Vorel <petr.vorel@gmail.com>
pkgname=ltp-full
pkgver=20210121
pkgrel=0
pkgdesc="The Linux Test Project"
url="http://linux-test-project.github.io"
arch="all"
license="GPL-2.0-or-later"
depends="
	acl
	attr
	bc
	binutils
	e2fsprogs
	iputils
	iproute2
"
depends_dev="
	acl-dev
	autoconf
	automake
	bison
	flex
	gcc
	keyutils-dev
	libaio-dev
	libacl
	libcap-dev
	libselinux-dev
	libsepol-dev
	libtirpc-dev
	linux-headers
	make
	musl-dev
	numactl-dev
	openssl-dev
	pkgconfig
"
makedepends="$depends_dev"
options="!check" # no tests
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/linux-test-project/ltp/releases/download/$pkgver/ltp-full-$pkgver.tar.xz"
builddir="$srcdir/ltp-full-$pkgver"

prepare() {
	default_prepare

	# https://github.com/linux-test-project/ltp/blob/master/travis/alpine.sh
	cd "$builddir"
	rm -rf \
	testcases/kernel/sched/process_stress/process.c \
	testcases/kernel/syscalls/confstr/confstr01.c \
	testcases/kernel/syscalls/fmtmsg/fmtmsg01.c \
	testcases/kernel/syscalls/getcontext/getcontext01.c \
	testcases/kernel/syscalls/rt_tgsigqueueinfo/rt_tgsigqueueinfo01.c \
	testcases/kernel/syscalls/timer_create/timer_create01.c \
	testcases/kernel/syscalls/timer_create/timer_create03.c \
	utils/benchmark/ebizzy-0.3
	cd -
}

build() {
	LEXLIB=-lfl \
	./configure \
		--with-realtime-testsuite \
		--with-open-posix-testsuite \
		--disable-metadata \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make V=1
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="382e4b851138805f58093bc8232df5d22f9cf64ffa110bbaa5c5637517c47663772b96c55eca172f447bee7d1a1fb29084660c5374c4042461c59ba8faab3101  ltp-full-20210121.tar.xz"
-- 
2.28.0
Hi,
Hi all,

would it be possible to add LTP [1] to Alpine? I'm using it for
testing kernel on various architectures
I suppose others would use it as well (it's at least in Buildroot, Yocto).

I wonder if Alpine just does not want this package or there is
something wrong with the patch
(I haven't got any reply to my patches).

Thanks for info.

Kind regards,
Petr

[1] https://github.com/linux-test-project/ltp

On Mon, 25 Jan 2021 at 20:09, Petr Vorel <petr.vorel@gmail.com> wrote: