mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
8773e743c5
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)
51 lines
1.9 KiB
C
51 lines
1.9 KiB
C
/*
|
|
Unix SMB/CIFS implementation.
|
|
SMB torture tester
|
|
Copyright (C) Jelmer Vernooij 2006
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
*/
|
|
|
|
#include "includes.h"
|
|
#include "libcli/smb2/smb2.h"
|
|
#include "libcli/smb2/smb2_calls.h"
|
|
|
|
#include "torture/torture.h"
|
|
#include "torture/smb2/proto.h"
|
|
|
|
NTSTATUS torture_smb2_init(void)
|
|
{
|
|
struct torture_suite *suite = torture_suite_create(
|
|
talloc_autofree_context(),
|
|
"SMB2");
|
|
torture_suite_add_simple_test(suite, "CONNECT", torture_smb2_connect);
|
|
torture_suite_add_simple_test(suite, "SCAN", torture_smb2_scan);
|
|
torture_suite_add_simple_test(suite, "SCANGETINFO", torture_smb2_getinfo_scan);
|
|
torture_suite_add_simple_test(suite, "SCANSETINFO", torture_smb2_setinfo_scan);
|
|
torture_suite_add_simple_test(suite, "SCANFIND", torture_smb2_find_scan);
|
|
torture_suite_add_simple_test(suite, "GETINFO", torture_smb2_getinfo);
|
|
torture_suite_add_simple_test(suite, "SETINFO", torture_smb2_setinfo);
|
|
torture_suite_add_simple_test(suite, "FIND", torture_smb2_find);
|
|
torture_suite_add_simple_test(suite, "LOCK", torture_smb2_lock);
|
|
torture_suite_add_simple_test(suite, "NOTIFY", torture_smb2_notify);
|
|
|
|
suite->description = talloc_strdup(suite,
|
|
"SMB2-specific tests");
|
|
|
|
torture_register_suite(suite);
|
|
|
|
return NT_STATUS_OK;
|
|
}
|