test-exec.sh (214979) | test-exec.sh (218767) |
---|---|
1# $OpenBSD: test-exec.sh,v 1.37 2010/02/24 06:21:56 djm Exp $ 2# Placed in the Public Domain. 3 4#SUDO=sudo 5 6# Unbreak GNU head(1) 7_POSIX2_VERSION=199209 8export _POSIX2_VERSION --- 207 unchanged lines hidden (view full) --- 216{ 217 echo "FATAL: $@" >>$TEST_SSH_LOGFILE 218 echon "FATAL: " 219 fail "$@" 220 cleanup 221 exit $RESULT 222} 223 | 1# $OpenBSD: test-exec.sh,v 1.37 2010/02/24 06:21:56 djm Exp $ 2# Placed in the Public Domain. 3 4#SUDO=sudo 5 6# Unbreak GNU head(1) 7_POSIX2_VERSION=199209 8export _POSIX2_VERSION --- 207 unchanged lines hidden (view full) --- 216{ 217 echo "FATAL: $@" >>$TEST_SSH_LOGFILE 218 echon "FATAL: " 219 fail "$@" 220 cleanup 221 exit $RESULT 222} 223 |
224# Check whether preprocessor symbols are defined in config.h. 225config_defined () 226{ 227 str=$1 228 while test "x$2" != "x" ; do 229 str="$str|$2" 230 shift 231 done 232 egrep "^#define.*($str)" ${BUILDDIR}/config.h >/dev/null 2>&1 233} 234 |
|
224RESULT=0 225PIDFILE=$OBJ/pidfile 226 227trap fatal 3 2 228 229# create server config 230cat << EOF > $OBJ/sshd_config 231 StrictModes no --- 155 unchanged lines hidden --- | 235RESULT=0 236PIDFILE=$OBJ/pidfile 237 238trap fatal 3 2 239 240# create server config 241cat << EOF > $OBJ/sshd_config 242 StrictModes no --- 155 unchanged lines hidden --- |