From b8fa843bfea55331f95c176cdc09bcc829c46f14 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Thu, 16 Nov 2017 11:45:46 -0200 Subject: [PATCH] coreutils: add tests. --- srcpkgs/coreutils/template | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/srcpkgs/coreutils/template b/srcpkgs/coreutils/template index b0b92639f65..782a6270a62 100644 --- a/srcpkgs/coreutils/template +++ b/srcpkgs/coreutils/template @@ -75,6 +75,31 @@ do_build() { fi make ${makejobs} } + +do_check() { + # chgrp tests fail inside a chroot + sed -i '/tests\/chgrp/d' Makefile + + # tests that fail inside a chroot + sed -i '/test-fchownat$(EXEEXT)/d' gnulib-tests/Makefile + sed -i '/test-chown$(EXEEXT)/d' gnulib-tests/Makefile + sed -i '/test-lchown$(EXEEXT)/d' gnulib-tests/Makefile + + # Requires test-chown which fails on chroot ( see above ) + sed -i '/test-chdir$(EXEEXT)/d' gnulib-tests/Makefile + + # Requires test-chdir which is disable due to test-chown failure + sed -i '/test-canonicalize$(EXEEXT)/d' gnulib-tests/Makefile + + # Requires test-canonicalize which is disable due to test-chdir being + # disable due to test-chown failure + sed -i '/test-calloc-gnu$(EXEEXT)/d' gnulib-tests/Makefile + + sed -i '/test-c-strcase.sh/d' gnulib-tests/Makefile + + make RUN_EXPENSIVE_TESTS=1 check +} + do_install() { make DESTDIR=${DESTDIR} install if [ "$CROSS_BUILD" ]; then