#!/bin/sh # # Check that the -q option shuts everything up. # Allow all tests to be skipped, e.g. during a release build test "${SKIP_ALL_TESTS}" = "1" && exit 77 true "${testSubject:?not set - call this from 'make check'}" true "${workFile1:?not set - call this from 'make check'}" dd if=/dev/zero bs=1000 count=5 2>/dev/null \ | "${testSubject}" -f -q -i 0.1 -L 5000 >/dev/null 2>"${workFile1}" if test -s "${workFile1}"; then echo "output detected when there should be none" cat "${workFile1}" exit 1 fi exit 0