#!/bin/sh if [ -z "${SHUNIT2}" ] ; then cat < /dev/null assertEquals "wrong exit code" ${NAGIOS_OK} "$?" } testUsage() { ${SCRIPT} > /dev/null 2>&1 assertEquals "wrong exit code" ${NAGIOS_UNKNOWN} "$?" } # source the script. . ${SCRIPT} --source-only # run shUnit: it will execute all the tests in this file # (e.g., functions beginning with 'test' . ${SHUNIT2}