From 7fca1d46cea38229faf9a7092d86a452658f2ca0 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 1 May 2005 19:08:35 +0000 Subject: r6564: - Fix bug in socket_wrapper - Add options --quiet and --outputdir options to the provisioning script - Add simple 'make test' and 'make test-swrap' (This used to be commit 7d2d4a57e0e58a51c76c2e86ea447e81a1d79544) --- source4/script/tests/selftest.sh | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100755 source4/script/tests/selftest.sh (limited to 'source4/script/tests') diff --git a/source4/script/tests/selftest.sh b/source4/script/tests/selftest.sh new file mode 100755 index 0000000000..55e28696a8 --- /dev/null +++ b/source4/script/tests/selftest.sh @@ -0,0 +1,39 @@ +#!/bin/sh +DOMAIN=SAMBADOMAIN +REALM=$DOMAIN +PASSWORD=penguin +SRCDIR=`pwd` +PREFIX=$SRCDIR/prefix +SOCKET_WRAPPER_DIR=$PREFIX/sockdir +TMPDIR=$PREFIX/tmp + +if [ ! -z "$BUILD" ] +then + ./configure --prefix=$PREFIX --enable-socket-wrapper + mkdir -p $PREFIX $TMPDIR + make proto all install +fi + +rm -f $PREFIX/private/* +./setup/provision.pl --quiet --outputdir $PREFIX/private --domain $DOMAIN --realm $REALM --adminpass $PASSWORD + +mkdir -p $SOCKET_WRAPPER_DIR +cat >$PREFIX/lib/smb.conf <