summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-03-19 23:19:00 +0000
committerAndrew Tridgell <tridge@samba.org>2002-03-19 23:19:00 +0000
commit45c8a07d5c962a8cf054883be53c4d0206ed5e95 (patch)
tree23ec486a48e131d9f94d97db92a02ec5d93f15d2 /source3/torture
parente97b158dccdfec92620edb2c4555d6939d82b09b (diff)
downloadsamba-45c8a07d5c962a8cf054883be53c4d0206ed5e95.tar.gz
samba-45c8a07d5c962a8cf054883be53c4d0206ed5e95.tar.bz2
samba-45c8a07d5c962a8cf054883be53c4d0206ed5e95.zip
the beginning of a test to determine and display a servers properties
just shows capabilities at the moment (This used to be commit 76fe90343c4ca76ad58c7b31a1e3235926fd6c75)
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index cb06457573..5c195558bb 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -2755,6 +2755,36 @@ static BOOL run_deletetest(int dummy)
return correct;
}
+
+/*
+ print out server properties
+ */
+static BOOL run_properties(int dummy)
+{
+ static struct cli_state cli;
+ BOOL correct = True;
+
+ printf("starting properties test\n");
+
+ ZERO_STRUCT(cli);
+
+ if (!torture_open_connection(&cli)) {
+ return False;
+ }
+
+ cli_sockopt(&cli, sockops);
+
+ d_printf("Capabilities 0x%08x\n", cli.capabilities);
+
+ if (!torture_close_connection(&cli)) {
+ correct = False;
+ }
+
+ return correct;
+}
+
+
+
/* FIRST_DESIRED_ACCESS 0xf019f */
#define FIRST_DESIRED_ACCESS FILE_READ_DATA|FILE_WRITE_DATA|FILE_APPEND_DATA|\
FILE_READ_EA| /* 0xf */ \
@@ -3353,6 +3383,7 @@ static struct {
{"XCOPY", run_xcopy, 0},
{"RENAME", run_rename, 0},
{"DELETE", run_deletetest, 0},
+ {"PROPERTIES", run_properties, 0},
{"W2K", run_w2ktest, 0},
{"TRANS2SCAN", torture_trans2_scan, 0},
{"NTTRANSSCAN", torture_nttrans_scan, 0},