From 61cb2150cbd6922600964a70920ca90da9eb4368 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 27 Jul 2011 15:42:45 +1000 Subject: [PATCH] selftest: explain how the message command test works --- selftest/target/Samba3.pm | 2 ++ source3/script/tests/test_smbclient_s3.sh | 1 + 2 files changed, 3 insertions(+) diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm index c78c1d64313..49f8b4d6d3c 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 fa721cb4ea0..05bc8ef4e9c 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` -- 2.11.4.GIT