#!/usr/bin/env bash PAGE=A4 ./configure --prefix=/usr make -j1 :>/tmp/groff_make_check.log if ! make check | tee /tmp/groff_make_check.log then grep ^FAIL: /tmp/groff_make_check.log | cut -d' ' -f 2 | while IFS= read -r failure do echo "${failure}" case ${failure} in src/preproc/eqn/tests/neqn-smoke-test.sh) echo "Known to fail : ${failure}" continue ;; *) echo "Critical error in tests : ${failure}" exit 1 ;; esac done fi make install