#!/bin/bash # Usage: tooltest [run | validate] if [[ $# -lt 2 || ( "$2" != "run" && "$2" != "validate") ]] ; then echo "Usage: tooltest [run | validate]" exit 0 fi testdir=$1 if [ "$2" == "validate" ] ; then action="v" else action="w" fi runtemplate -t $testdir -n 1 -$action