LCOV - code coverage report
Current view: top level - source4/torture/local - local.c (source / functions) Hit Total Coverage
Test: coverage report for smb2.twrp.listdir_fix f886ca1c Lines: 12 12 100.0 %
Date: 2023-11-07 19:11:32 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 "torture/smbtorture.h"
      22             : #include "torture/local/proto.h"
      23             : #include "torture/ndr/proto.h"
      24             : #include "torture/auth/proto.h"
      25             : #include "../lib/crypto/test_proto.h"
      26             : #include "lib/registry/tests/proto.h"
      27             : #include "lib/replace/replace-testsuite.h"
      28             : 
      29             : /* ignore me */ static struct torture_suite *
      30             :         (*suite_generators[]) (TALLOC_CTX *mem_ctx) =
      31             : { 
      32             :         torture_local_binding_string, 
      33             :         torture_ntlmssp, 
      34             :         torture_smbencrypt,
      35             :         torture_local_messaging, 
      36             :         torture_local_irpc, 
      37             :         torture_local_util_strlist, 
      38             :         torture_local_util_file, 
      39             :         torture_local_util_str, 
      40             :         torture_local_util_time, 
      41             :         torture_local_util_data_blob, 
      42             :         torture_local_util_binsearch,
      43             :         torture_local_util_asn1,
      44             :         torture_local_util_anonymous_shared,
      45             :         torture_local_util_strv,
      46             :         torture_local_util_strv_util,
      47             :         torture_local_util,
      48             :         torture_local_idtree, 
      49             :         torture_local_dlinklist,
      50             :         torture_local_genrand, 
      51             :         torture_local_iconv,
      52             :         torture_local_socket, 
      53             :         torture_pac, 
      54             :         torture_local_resolve,
      55             :         torture_local_ndr, 
      56             :         torture_local_tdr, 
      57             :         torture_local_share,
      58             :         torture_local_loadparm,
      59             :         torture_local_charset,
      60             :         torture_local_convert_string_handle,
      61             :         torture_local_convert_string,
      62             :         torture_local_string_case_handle,
      63             :         torture_local_string_case,
      64             :         torture_local_event, 
      65             :         torture_local_tevent_req,
      66             :         torture_local_torture,
      67             :         torture_local_dbspeed, 
      68             :         torture_ldb,
      69             :         torture_dsdb_dn,
      70             :         torture_dsdb_syntax,
      71             :         torture_registry,
      72             :         torture_local_verif_trailer,
      73             :         torture_local_nss,
      74             :         torture_local_fsrvp,
      75             :         torture_local_util_str_escape,
      76             :         torture_local_tfork,
      77             :         torture_local_mdspkt,
      78             :         torture_local_smbtorture,
      79             :         NULL
      80             : };
      81             : 
      82        2357 : NTSTATUS torture_local_init(TALLOC_CTX *ctx)
      83             : {
      84         124 :         int i;
      85        2357 :         struct torture_suite *suite = torture_suite_create(
      86             :                 ctx, "local");
      87             :         
      88        2357 :         torture_suite_add_simple_test(suite, "talloc", torture_local_talloc);
      89        2357 :         torture_suite_add_simple_test(suite, "replace", torture_local_replace);
      90             :         
      91        2357 :         torture_suite_add_simple_test(suite, 
      92             :                                       "crypto.md4", torture_local_crypto_md4);
      93             : 
      94      113260 :         for (i = 0; suite_generators[i]; i++)
      95      110779 :                 torture_suite_add_suite(suite,
      96      104951 :                                         suite_generators[i](ctx));
      97             :         
      98        2357 :         suite->description = talloc_strdup(suite, 
      99             :                                            "Local, Samba-specific tests");
     100             : 
     101        2357 :         torture_register_suite(ctx, suite);
     102             : 
     103        2357 :         return NT_STATUS_OK;
     104             : }

Generated by: LCOV version 1.14