summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-07-27 15:42:45 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-07-29 04:24:06 +0200
commit61cb2150cbd6922600964a70920ca90da9eb4368 (patch)
tree634e7ec72200da79ff64c03b39c8ae2839eb7143
parentee20a27d411c4f3c1d97e9c9bdbb7226f144c2f1 (diff)
downloadsamba-61cb2150cbd6922600964a70920ca90da9eb4368.tar.gz
samba-61cb2150cbd6922600964a70920ca90da9eb4368.tar.bz2
samba-61cb2150cbd6922600964a70920ca90da9eb4368.zip
selftest: explain how the message command test works
-rw-r--r--selftest/target/Samba3.pm2
-rwxr-xr-xsource3/script/tests/test_smbclient_s3.sh1
2 files changed, 3 insertions, 0 deletions
diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm
index c78c1d6431..49f8b4d6d3 100644
--- a/selftest/target/Samba3.pm
+++ b/selftest/target/Samba3.pm
@@ -872,6 +872,8 @@ sub provision($$$$$$$)
resolv:host file = $dns_host_file
+ # The samba3.blackbox.smbclient_s3 test uses this to test that
+ # sending messages works, and that the %m sub works.
message command = mv %s $shrdir/message.%m
# Begin extra options
diff --git a/source3/script/tests/test_smbclient_s3.sh b/source3/script/tests/test_smbclient_s3.sh
index fa721cb4ea..05bc8ef4e9 100755
--- a/source3/script/tests/test_smbclient_s3.sh
+++ b/source3/script/tests/test_smbclient_s3.sh
@@ -260,6 +260,7 @@ EOF
return
fi
+ # The server writes this into a file message.msgtest, via message.%m to test the % sub code
cmd='$SMBCLIENT "$@" -U$USERNAME%$PASSWORD //$SERVER/tmpguest -p 139 $ADDARGS -c "get message.msgtest $PREFIX/message_out.$$" 2>&1'
eval echo "$cmd"
out=`eval $cmd`