[PATCH][SAMBA4] resurrect and enhance smbtorture shell

James Peach jamespeach at me.com
Wed May 26 21:36:59 MDT 2010


Hi all,

Attached is a series of patches that resurrect the smbtorture --shell functionality and enhance it so that no additional commandline options are needed.

The shell functionality is quite useful to me. I run an internal server with smbtorture as a login shell. This allows various QA groups to remotely run smbtorture against whatever they happen to be testing, and I don't need to worry about making sure they have a suitably recent version  of smbtorture.

Sample session:

jpeach at smbtorture:~/src/samba.git/source4$ ./bin/smbtorture --shell
Using seed 1274928589
torture> help
Available commands:
	auth - set authentication parameters
	help - print this help message
	list - list the available tests
	quit - exit smbtorture
	run - run the specified test
	set - print or set test configuration parameters
	target - print or set the test target
torture> help auth
Usage: auth [[username | principal | domain | realm | password] STRING]
torture> auth username jpeach
torture> auth password foo
torture> auth
Username: jpeach
User Principal: jpeach@
Domain: WORKGROUP
Realm: 
Password: foo
torture> target \\\\homedepot.apple.com\\netfs_scratch
torture> target
Target host: homedepot.apple.com
Target share: netfs_scratch
Target binding: homedepot.apple.com
torture> list
...
torture> run RAP-BASIC
progress: 3
test: netserverenum
WORKGROUP
success: netserverenum
test: netshareenum
Java 0 JavaWindowsDocs
WindowsDocs 0 WindowsDocs
admin 0 adminhomes
smbhomes 0 homes
vmware 0 vmware
IPC$ 3 IPC Service (homedepot)
jpeach 0 User Home Directories
success: netshareenum
test: netservergetinfo
success: netservergetinfo
torture> run BASE-DIR1
test: DIR1
Creating 10 random filenames
Matched 2
Matched 2
Matched -1
dirtest core 0.011021 seconds
success: DIR1
....

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-smbtorture-Add-list-command-to-smbtorture-shell.patch
Type: application/octet-stream
Size: 4362 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20100526/40f8ee6f/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-smbtorture-Add-history-support-to-shell-mode.patch
Type: application/octet-stream
Size: 1673 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20100526/40f8ee6f/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-smbtorture-Print-global-options-for-interactive-list.patch
Type: application/octet-stream
Size: 1012 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20100526/40f8ee6f/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-smbtorture-Move-interactive-shell-into-a-separate-fi.patch
Type: application/octet-stream
Size: 10233 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20100526/40f8ee6f/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-smbtorture-Refactor-interactive-shell-into-independe.patch
Type: application/octet-stream
Size: 5855 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20100526/40f8ee6f/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-smbtorture-Add-auth-command-to-the-shell.patch
Type: application/octet-stream
Size: 4246 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20100526/40f8ee6f/attachment-0005.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-smbtorture-Enhance-shell-help-command.patch
Type: application/octet-stream
Size: 2328 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20100526/40f8ee6f/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-smbtorture-Add-target-command-to-interactive-shell.patch
Type: application/octet-stream
Size: 4267 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20100526/40f8ee6f/attachment-0007.obj>


More information about the samba-technical mailing list