diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-10-16 13:06:41 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:21:12 -0500 |
commit | 8773e743c518578584d07d35ffdafdd598af88b0 (patch) | |
tree | 89726232dd6ae9eca1c219e21729a9b2336ddaa9 /source4/torture/libnet | |
parent | 0f2347e417dec4a50f95d64353b260cd53a44a2b (diff) | |
download | samba-8773e743c518578584d07d35ffdafdd598af88b0.tar.gz samba-8773e743c518578584d07d35ffdafdd598af88b0.tar.bz2 samba-8773e743c518578584d07d35ffdafdd598af88b0.zip |
r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grained
output in the testsuite rather than just True or False for a
set of tests.
The aim is to use this for:
* known failure lists (run all tests and detect tests that
started working or started failing). This
would allow us to get rid of the RPC-SAMBA3-* tests
* nicer torture output
* simplification of the testsuite system
* compatibility with other unit testing systems
* easier usage of smbtorture (being able to run one test
and automatically set up the environment for that)
This is still a work-in-progress; expect more updates over the next couple of
days.
(This used to be commit 0eb6097305776325c75081356309115f445a7218)
Diffstat (limited to 'source4/torture/libnet')
-rw-r--r-- | source4/torture/libnet/libnet.c | 57 |
1 files changed, 33 insertions, 24 deletions
diff --git a/source4/torture/libnet/libnet.c b/source4/torture/libnet/libnet.c index a4654a7cfb..f45365dfc0 100644 --- a/source4/torture/libnet/libnet.c +++ b/source4/torture/libnet/libnet.c @@ -24,30 +24,39 @@ NTSTATUS torture_net_init(void) { - register_torture_op("NET-USERINFO", torture_userinfo); - register_torture_op("NET-USERADD", torture_useradd); - register_torture_op("NET-USERDEL", torture_userdel); - register_torture_op("NET-USERMOD", torture_usermod); - register_torture_op("NET-DOMOPEN", torture_domainopen); - register_torture_op("NET-API-LOOKUP", torture_lookup); - register_torture_op("NET-API-LOOKUPHOST", torture_lookup_host); - register_torture_op("NET-API-LOOKUPPDC", torture_lookup_pdc); - register_torture_op("NET-API-LOOKUPNAME", torture_lookup_sam_name); - register_torture_op("NET-API-CREATEUSER", torture_createuser); - register_torture_op("NET-API-DELETEUSER", torture_deleteuser); - register_torture_op("NET-API-MODIFYUSER", torture_modifyuser); - register_torture_op("NET-API-USERINFO", torture_userinfo_api); - register_torture_op("NET-API-RPCCONN-BIND", torture_rpc_connect_binding); - register_torture_op("NET-API-RPCCONN-SRV", torture_rpc_connect_srv); - register_torture_op("NET-API-RPCCONN-PDC", torture_rpc_connect_pdc); - register_torture_op("NET-API-RPCCONN-DC", torture_rpc_connect_dc); - register_torture_op("NET-API-RPCCONN-DCINFO", torture_rpc_connect_dc_info); - register_torture_op("NET-API-LISTSHARES", torture_listshares); - register_torture_op("NET-API-DELSHARE", torture_delshare); - register_torture_op("NET-API-DOMOPENLSA", torture_domain_open_lsa); - register_torture_op("NET-API-DOMCLOSELSA", torture_domain_close_lsa); - register_torture_op("NET-API-DOMOPENSAMR", torture_domain_open_samr); - register_torture_op("NET-API-DOMCLOSESAMR", torture_domain_close_samr); + struct torture_suite *suite = torture_suite_create( + talloc_autofree_context(), + "NET"); + + torture_suite_add_simple_test(suite, "USERINFO", torture_userinfo); + torture_suite_add_simple_test(suite, "USERADD", torture_useradd); + torture_suite_add_simple_test(suite, "USERDEL", torture_userdel); + torture_suite_add_simple_test(suite, "USERMOD", torture_usermod); + torture_suite_add_simple_test(suite, "DOMOPEN", torture_domainopen); + torture_suite_add_simple_test(suite, "API-LOOKUP", torture_lookup); + torture_suite_add_simple_test(suite, "API-LOOKUPHOST", torture_lookup_host); + torture_suite_add_simple_test(suite, "API-LOOKUPPDC", torture_lookup_pdc); + torture_suite_add_simple_test(suite, "API-LOOKUPNAME", torture_lookup_sam_name); + torture_suite_add_simple_test(suite, "API-CREATEUSER", torture_createuser); + torture_suite_add_simple_test(suite, "API-DELETEUSER", torture_deleteuser); + torture_suite_add_simple_test(suite, "API-MODIFYUSER", torture_modifyuser); + torture_suite_add_simple_test(suite, "API-USERINFO", torture_userinfo_api); + torture_suite_add_simple_test(suite, "API-RPCCONN-BIND", torture_rpc_connect_binding); + torture_suite_add_simple_test(suite, "API-RPCCONN-SRV", torture_rpc_connect_srv); + torture_suite_add_simple_test(suite, "API-RPCCONN-PDC", torture_rpc_connect_pdc); + torture_suite_add_simple_test(suite, "API-RPCCONN-DC", torture_rpc_connect_dc); + torture_suite_add_simple_test(suite, "API-RPCCONN-DCINFO", torture_rpc_connect_dc_info); + torture_suite_add_simple_test(suite, "API-LISTSHARES", torture_listshares); + torture_suite_add_simple_test(suite, "API-DELSHARE", torture_delshare); + torture_suite_add_simple_test(suite, "API-DOMOPENLSA", torture_domain_open_lsa); + torture_suite_add_simple_test(suite, "API-DOMCLOSELSA", torture_domain_close_lsa); + torture_suite_add_simple_test(suite, "API-DOMOPENSAMR", torture_domain_open_samr); + torture_suite_add_simple_test(suite, "API-DOMCLOSESAMR", torture_domain_close_samr); + + suite->description = talloc_strdup(suite, + "libnet convenience interface tests"); + + torture_register_suite(suite); return NT_STATUS_OK; } |