summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2001-11-14 06:07:21 +0000
committerMartin Pool <mbp@samba.org>2001-11-14 06:07:21 +0000
commit68893d4a2faa04f8b0b90dfc03466e1105d087a7 (patch)
treed6c73172a9dd898c1cccbf97abebb2c5bde48330 /testsuite
parent641f3070ab59f5fb681ccedb692de2ef7d9d90db (diff)
downloadsamba-68893d4a2faa04f8b0b90dfc03466e1105d087a7.tar.gz
samba-68893d4a2faa04f8b0b90dfc03466e1105d087a7.tar.bz2
samba-68893d4a2faa04f8b0b90dfc03466e1105d087a7.zip
Give sensible defaults to some variables that are set by the build
farm but not present in Make. (This used to be commit 0d6d0c31f9aecf1e35487ad26cc2f2c4c7d732f0)
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/build_farm/basicsmb.fns32
1 files changed, 32 insertions, 0 deletions
diff --git a/testsuite/build_farm/basicsmb.fns b/testsuite/build_farm/basicsmb.fns
index b3a00ea783..30964d8223 100644
--- a/testsuite/build_farm/basicsmb.fns
+++ b/testsuite/build_farm/basicsmb.fns
@@ -15,6 +15,12 @@
# other data in $prefix, because somebody might unwittingly run this
# with prefix=/usr.
+# Really what we want is a consistent way to pass the location of the
+# configuration and all other files into *all* Samba programs
+# (smbclient, smd, ...) and be able to set them to a temporary
+# directory when testing. Some of them take a -c parameter, but tpot
+# says it's not done consistently.
+
template_smb_conf_setup() {
cat basicsmb.smb.conf$1.template | \
sed "s|PREFIX|$prefix|g" | \
@@ -122,3 +128,29 @@ test_listfilesauth_should_deny() {
}
echo "LIBSMB_PROG=$LIBSMB_PROG" >&2
+
+
+
+# Give sensible defaults to some variables.
+
+# "What's my age again?"
+
+if [ ! $USER = "" ]; then
+ whoami=$USER
+else
+ if [ ! $LOGNAME = "" ]; then
+ whoami=$LOGNAME
+ else
+ whoami=build
+ fi
+fi
+
+
+
+if test -z "$loglevel"
+then
+ loglevel=1
+fi
+
+
+pwd=`pwd`