diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-03-19 23:19:00 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-03-19 23:19:00 +0000 |
commit | 76fe90343c4ca76ad58c7b31a1e3235926fd6c75 (patch) | |
tree | a37afa99f7a39657d8f74ff89c66cd1f24cba665 | |
parent | 85650ee3bcb748fc481ff254168eef5b22b6eae8 (diff) | |
download | samba-76fe90343c4ca76ad58c7b31a1e3235926fd6c75.tar.gz samba-76fe90343c4ca76ad58c7b31a1e3235926fd6c75.tar.xz samba-76fe90343c4ca76ad58c7b31a1e3235926fd6c75.zip |
the beginning of a test to determine and display a servers properties
just shows capabilities at the moment
-rw-r--r-- | source/torture/torture.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/source/torture/torture.c b/source/torture/torture.c index cb064575735..5c195558bb2 100644 --- a/source/torture/torture.c +++ b/source/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}, |