summaryrefslogtreecommitdiff
path: root/source4/torture/util.h
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2009-11-25 14:38:55 -0800
committerTim Prouty <tprouty@samba.org>2009-12-01 11:12:51 -0800
commit2738e316746b078899dd30e07665d8e7b515581e (patch)
tree47a7d88c89cfcb8470ad305d7aaf12278146539f /source4/torture/util.h
parent9d8867f67626ccd93260e83a50aa978d3e12ad1e (diff)
downloadsamba-2738e316746b078899dd30e07665d8e7b515581e.tar.gz
s4 torture: Move target macros to a common header instead of redefining them in multiple files
Diffstat (limited to 'source4/torture/util.h')
-rw-r--r--source4/torture/util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/torture/util.h b/source4/torture/util.h
index 501d14d57c1..35662416b5a 100644
--- a/source4/torture/util.h
+++ b/source4/torture/util.h
@@ -26,6 +26,14 @@ struct smbcli_state;
struct smbcli_tree;
/**
+ * Useful target macros for handling server bugs in torture tests.
+ */
+#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))
+#define TARGET_IS_SAMBA4(_tctx) (torture_setting_bool(_tctx, "samba4", false))
+
+/**
setup a directory ready for a test
*/
_PUBLIC_ bool torture_setup_dir(struct smbcli_state *cli, const char *dname);