#! /bin/sh # -*- sh -*- # # $Id: find.test,v 1.1 2003/03/02 18:41:23 richdawe Exp $ # Copyright (C) 2003 by Richard Dawe if (test -n "$VERBOSE" -a "$VERBOSE" != "n" ); then set -x fi finddir=finddir findsubdir=v2/alphas findfile=findfile findexpected=${finddir}/${findsubdir}/${findfile} # Make the test directory. rm -rf $finddir mkdir -p ${finddir}/${findsubdir} touch $findexpected # Run the test fail=0 ./find $findfile $finddir $findexpected || fail=1 # Tidy up the test directory. rm -rf $finddir exit $fail