#!/bin/sh DOMAIN=SAMBADOMAIN USERNAME=administrator REALM=$DOMAIN PASSWORD=penguin SRCDIR=`pwd` if [ $# -lt 1 ] then echo "$0 PREFIX" exit fi PREFIX=$1 TMPDIR=$PREFIX/tmp LIBDIR=$PREFIX/lib PIDDIR=$PREFIX/pid CONFFILE=$LIBDIR/smb.conf PRIVATEDIR=$PREFIX/private NCALRPCDIR=$PREFIX/ncalrpc LOCKDIR=$PREFIX/lockdir testok() { name=`basename $1` failed=$2 if [ x"$failed" = x"0" ];then echo "ALL OK ($name)"; else echo "$failed TESTS FAILED ($name)"; fi exit $failed } rm -rf $PREFIX/* mkdir -p $PRIVATEDIR $LIBDIR $PIDDIR $NCALRPCDIR $LOCKDIR $TMPDIR ./setup/provision.pl --quiet --outputdir $PRIVATEDIR --domain $DOMAIN --realm $REALM --adminpass $PASSWORD cat >$CONFFILE<$PREFIX/smbd_test.fifo failed=$? END=`date` echo "START: $START ($0)"; echo "END: $END ($0)"; testok $0 $failed