#!/usr/bin/env bash ./configure --prefix=/usr \ --docdir=/usr/share/doc/procps-ng-4.0.6 \ --disable-static \ --disable-kill \ --enable-watch8bit \ --with-systemd make chown -R tester . [ -e /tmp/procps_make_check.log ] && rm /tmp/procps_make_check.log if ! su tester -c "PATH=$PATH make check" | tee /tmp/procps_make_check.log then grep '^FAIL' /tmp/procps_make_check.log | cut --delimiter=' ' --fields=2 | while IFS= read -r failure do echo "--- Check ${failure}" case ${failure} in # FAIL: pmap X pid pid has same total: match second process: 19180 pmap) echo "Test failed. CHECK WHY." continue ;; *) echo "Failed on ${failure}" exit 1 ;; esac done fi make install