coreutils: add tests.

This commit is contained in:
maxice8 2017-11-16 11:45:46 -02:00 committed by Jürgen Buchmüller
parent ca4e798ac3
commit b8fa843bfe

View file

@ -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