LCOV - code coverage report
Current view: top level - source4/torture/raw - raw.c (source / functions) Hit Total Coverage
Test: coverage report for master 2f515e9b Lines: 49 49 100.0 %
Date: 2024-04-21 15:09:00 Functions: 1 1 100.0 %

          Line data    Source code
       1             : /* 
       2             :    Unix SMB/CIFS implementation.
       3             :    SMB torture tester
       4             :    Copyright (C) Jelmer Vernooij 2006
       5             :    
       6             :    This program is free software; you can redistribute it and/or modify
       7             :    it under the terms of the GNU General Public License as published by
       8             :    the Free Software Foundation; either version 3 of the License, or
       9             :    (at your option) any later version.
      10             :    
      11             :    This program is distributed in the hope that it will be useful,
      12             :    but WITHOUT ANY WARRANTY; without even the implied warranty of
      13             :    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      14             :    GNU General Public License for more details.
      15             :    
      16             :    You should have received a copy of the GNU General Public License
      17             :    along with this program.  If not, see <http://www.gnu.org/licenses/>.
      18             : */
      19             : 
      20             : #include "includes.h"
      21             : #include "libcli/raw/libcliraw.h"
      22             : #include "torture/util.h"
      23             : #include "torture/smbtorture.h"
      24             : #include "torture/raw/proto.h"
      25             : 
      26        2354 : NTSTATUS torture_raw_init(TALLOC_CTX *ctx)
      27             : {
      28        2354 :         struct torture_suite *suite = torture_suite_create(
      29             :                 ctx, "raw");
      30             :         /* RAW smb tests */
      31        2354 :         torture_suite_add_simple_test(suite, "bench-oplock", torture_bench_oplock);
      32        2354 :         torture_suite_add_simple_test(suite, "ping-pong", torture_ping_pong);
      33        2354 :         torture_suite_add_simple_test(suite, "bench-lock", torture_bench_lock);
      34        2354 :         torture_suite_add_simple_test(suite, "bench-open", torture_bench_open);
      35        2354 :         torture_suite_add_simple_test(suite, "bench-lookup",
      36             :                 torture_bench_lookup);
      37        2354 :         torture_suite_add_simple_test(suite, "bench-tcon",
      38             :                 torture_bench_treeconnect);
      39        2354 :         torture_suite_add_simple_test(suite, "offline", torture_test_offline);
      40        2354 :         torture_suite_add_1smb_test(suite, "qfsinfo", torture_raw_qfsinfo);
      41        2354 :         torture_suite_add_1smb_test(suite, "qfileinfo", torture_raw_qfileinfo);
      42        2354 :         torture_suite_add_1smb_test(suite, "qfileinfo.ipc", torture_raw_qfileinfo_pipe);
      43        2354 :         torture_suite_add_suite(suite, torture_raw_sfileinfo(suite));
      44        2354 :         torture_suite_add_suite(suite, torture_raw_search(suite));
      45        2354 :         torture_suite_add_1smb_test(suite, "close", torture_raw_close);
      46        2354 :         torture_suite_add_suite(suite, torture_raw_open(suite));
      47        2354 :         torture_suite_add_1smb_test(suite, "mkdir", torture_raw_mkdir);
      48        2354 :         torture_suite_add_suite(suite, torture_raw_oplock(suite));
      49        2354 :         torture_suite_add_1smb_test(suite, "hold-oplock", torture_hold_oplock);
      50        2354 :         torture_suite_add_suite(suite, torture_raw_notify(suite));
      51        2354 :         torture_suite_add_1smb_test(suite, "mux", torture_raw_mux);
      52        2354 :         torture_suite_add_1smb_test(suite, "ioctl", torture_raw_ioctl);
      53        2354 :         torture_suite_add_1smb_test(suite, "chkpath", torture_raw_chkpath);
      54        2354 :         torture_suite_add_suite(suite, torture_raw_unlink(suite));
      55        2354 :         torture_suite_add_suite(suite, torture_raw_read(suite));
      56        2354 :         torture_suite_add_suite(suite, torture_raw_write(suite));
      57        2354 :         torture_suite_add_suite(suite, torture_raw_lock(suite));
      58        2354 :         torture_suite_add_suite(suite, torture_raw_context(suite));
      59        2354 :         torture_suite_add_suite(suite, torture_raw_session(suite));
      60        2354 :         torture_suite_add_suite(suite, torture_raw_rename(suite));
      61        2354 :         torture_suite_add_1smb_test(suite, "seek", torture_raw_seek);
      62        2354 :         torture_suite_add_1smb_test(suite, "eas", torture_raw_eas);
      63        2354 :         torture_suite_add_suite(suite, torture_raw_streams(suite));
      64        2354 :         torture_suite_add_suite(suite, torture_raw_acls(suite));
      65        2354 :         torture_suite_add_suite(suite, torture_raw_composite(suite));
      66        2354 :         torture_suite_add_1smb_test(suite, "samba3hide", torture_samba3_hide);
      67        2354 :         torture_suite_add_1smb_test(suite, "samba3closeerr", torture_samba3_closeerr);
      68        2354 :         torture_suite_add_1smb_test(suite, "samba3rootdirfid",
      69             :                                       torture_samba3_rootdirfid);
      70        2354 :         torture_suite_add_1smb_test(suite, "samba3rootdirfid2",
      71             :                                       torture_samba3_rootdirfid2);
      72        2354 :         torture_suite_add_1smb_test(suite, "samba3checkfsp", torture_samba3_checkfsp);
      73        2354 :         torture_suite_add_1smb_test(suite, "samba3oplocklogoff", torture_samba3_oplock_logoff);
      74        2354 :         torture_suite_add_1smb_test(suite, "samba3badnameblob", torture_samba3_check_openX_badname);
      75        2354 :         torture_suite_add_simple_test(suite, "samba3badpath", torture_samba3_badpath);
      76        2354 :         torture_suite_add_1smb_test(suite, "samba3caseinsensitive",
      77             :                                       torture_samba3_caseinsensitive);
      78        2354 :         torture_suite_add_1smb_test(suite, "samba3posixtimedlock",
      79             :                                       torture_samba3_posixtimedlock);
      80        2354 :         torture_suite_add_simple_test(suite, "scan-eamax", torture_max_eas);
      81             : 
      82        2354 :         suite->description = talloc_strdup(suite, "Tests for the raw SMB interface");
      83             : 
      84        2354 :         torture_register_suite(ctx, suite);
      85             : 
      86        2354 :         return NT_STATUS_OK;
      87             : }

Generated by: LCOV version 1.14