execve.t revision 159097
1159097Smaxim#!/bin/sh
2159097Smaxim# $FreeBSD: head/tools/regression/execve/execve.t 159097 2006-05-31 11:13:10Z maxim $
3159097Smaxim
4159097Smaximcd `dirname $0`
5159097Smaximcmd="./`basename $0 .t`"
6159097Smaxim
7159097Smaximmake >/dev/null 2>&1
8159097Smaxim
9159097Smaximtests="test-empty test-nonexist test-nonexistshell \
10159097Smaxim	test-devnullscript test-badinterplen test-goodscript \
11159097Smaxim	test-scriptarg test-scriptarg-nospace test-goodaout \
12159097Smaxim	test-truncaout"
13159097Smaxim
14159097Smaximn=0
15159097Smaxim
16159097Smaximecho "1..10"
17159097Smaxim
18159097Smaximfor atest in ${tests}
19159097Smaximdo
20159097Smaxim	n=`expr ${n} + 1`
21159097Smaxim	if make ${atest}
22159097Smaxim	then
23159097Smaxim		echo "ok ${n} - ${atest}"
24159097Smaxim	else
25159097Smaxim		echo "not ok ${n} - ${atest}"
26159097Smaxim	fi
27159097Smaximdone
28