#!/usr/bin/env bash ./configure --prefix=/usr \ --disable-static \ --docdir=/usr/share/doc/acl-2.3.2 make :>/tmp/acl_make_check.log if ! make check | tee /tmp/acl_make_check.log then grep ^FAIL /tmp/acl_make_check.log | cut -d' ' -f 2 | while IFS= read -r failure do case "${failure}" in test/cp.test) continue ;; *) echo "test failure" return 1 ;; esac done fi make install