1168754Sbushman#!/bin/sh 2168754Sbushman# $FreeBSD$ 3168754Sbushman 4168754Sbushmando_test() { 5168754Sbushman number=$1 6168754Sbushman comment=$2 7168754Sbushman opt=$3 8168754Sbushman if ./$executable $opt; then 9168754Sbushman echo "ok $number - $comment" 10168754Sbushman else 11168754Sbushman echo "not ok $number - $comment" 12168754Sbushman fi 13168754Sbushman} 14168754Sbushman 15168754Sbushmancd `dirname $0` 16168754Sbushman 17168754Sbushmanexecutable=`basename $0 .t` 18168754Sbushman 19168754Sbushmanmake $executable 2>&1 > /dev/null 20168754Sbushman 21168754Sbushmanecho 1..1 22168754Sbushmando_test 1 'getusershell() snapshot' '-s snapshot_usershell' 23