#!/bin/sh ../../urchin -e ./.test_-e,--exit-on-fail > $tmp result=$? set -e grep '1 should run.' $tmp grep '2 should run.' $tmp grep -v '3 should not run.' $tmp grep -v '4 should not run.' $tmp exit $result