summaryrefslogtreecommitdiff
path: root/source4/torture/torture.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-04-23 05:40:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:51:33 -0500
commitb394a4c2ff4502a0bf2bf05a6c7036f708fdb090 (patch)
tree5ef7e34990e5987e6b095490bf58ecec29f18dd9 /source4/torture/torture.c
parent493a37ba663686b7bee3f7093d6650a24250f101 (diff)
downloadsamba-b394a4c2ff4502a0bf2bf05a6c7036f708fdb090.tar.gz
samba-b394a4c2ff4502a0bf2bf05a6c7036f708fdb090.tar.bz2
samba-b394a4c2ff4502a0bf2bf05a6c7036f708fdb090.zip
r336: added a -X command line option to smbtorture to enable dangerous or
possibly destructive tests. Use with care! Added IDL and test code for samr_Shutdown() and samr_SetDsrmPassword() (This used to be commit 84de0b7e58c69e0817b9d475de0895a54cc95927)
Diffstat (limited to 'source4/torture/torture.c')
-rw-r--r--source4/torture/torture.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/torture/torture.c b/source4/torture/torture.c
index 5c1ede6919..17aba4fb79 100644
--- a/source4/torture/torture.c
+++ b/source4/torture/torture.c
@@ -4070,6 +4070,7 @@ static void usage(void)
printf("\t-s seed\n");
printf("\t-f max failures\n");
printf("\t-b bypass I/O (NBENCH)\n");
+ printf("\t-X enable dangerous tests\n");
printf("\n\n");
printf("tests are:");
@@ -4139,7 +4140,7 @@ static void usage(void)
srandom(time(NULL));
- while ((opt = getopt(argc, argv, "p:hW:U:n:N:O:o:e:m:Ld:Ac:ks:f:s:t:C:")) != EOF) {
+ while ((opt = getopt(argc, argv, "p:hW:U:n:N:O:o:e:m:Ld:Ac:ks:f:s:t:C:X")) != EOF) {
switch (opt) {
case 'p':
lp_set_cmdline("smb ports", optarg);
@@ -4202,6 +4203,10 @@ static void usage(void)
torture_failures = atoi(optarg);
break;
+ case 'X':
+ lp_set_cmdline("torture:dangerous", "1");
+ break;
+
default:
printf("Unknown option %c (%d)\n", (char)opt, opt);
usage();