diff options
author | Tim Prouty <tprouty@samba.org> | 2009-12-01 16:27:10 -0800 |
---|---|---|
committer | Tim Prouty <tprouty@samba.org> | 2009-12-03 18:54:52 -0800 |
commit | b14da4f7c54e88e615f2bb19bec43bacb7f11de8 (patch) | |
tree | f11b27c418e1d8c10149f6d01e4a036023fcd6e9 | |
parent | fc7832602d149dee61ff003902bc5f54cd0de0f2 (diff) | |
download | samba-b14da4f7c54e88e615f2bb19bec43bacb7f11de8.tar.gz samba-b14da4f7c54e88e615f2bb19bec43bacb7f11de8.tar.bz2 samba-b14da4f7c54e88e615f2bb19bec43bacb7f11de8.zip |
s4 torture: Add a few more windows target types
-rw-r--r-- | source4/torture/smbtorture.c | 4 | ||||
-rw-r--r-- | source4/torture/util.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/source4/torture/smbtorture.c b/source4/torture/smbtorture.c index b8ef48eeb1..8742a8c820 100644 --- a/source4/torture/smbtorture.c +++ b/source4/torture/smbtorture.c @@ -525,6 +525,10 @@ int main(int argc,char *argv[]) lp_set_cmdline(cmdline_lp_ctx, "torture:samba3", "true"); } else if (strcmp(target, "samba4") == 0) { lp_set_cmdline(cmdline_lp_ctx, "torture:samba4", "true"); + } else if (strcmp(target, "winxp") == 0) { + lp_set_cmdline(cmdline_lp_ctx, "torture:winxp", "true"); + } else if (strcmp(target, "w2k3") == 0) { + lp_set_cmdline(cmdline_lp_ctx, "torture:w2k3", "true"); } else if (strcmp(target, "w2k8") == 0) { lp_set_cmdline(cmdline_lp_ctx, "torture:w2k8", "true"); lp_set_cmdline(cmdline_lp_ctx, diff --git a/source4/torture/util.h b/source4/torture/util.h index 35662416b5..0dadc89be6 100644 --- a/source4/torture/util.h +++ b/source4/torture/util.h @@ -28,6 +28,8 @@ struct smbcli_tree; /** * Useful target macros for handling server bugs in torture tests. */ +#define TARGET_IS_WINXP(_tctx) (torture_setting_bool(_tctx, "winxp", false)) +#define TARGET_IS_W2K3(_tctx) (torture_setting_bool(_tctx, "w2k3", false)) #define TARGET_IS_W2K8(_tctx) (torture_setting_bool(_tctx, "w2k8", false)) #define TARGET_IS_WIN7(_tctx) (torture_setting_bool(_tctx, "win7", false)) #define TARGET_IS_SAMBA3(_tctx) (torture_setting_bool(_tctx, "samba3", false)) |