mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
r14519: Put base registration in a seperate file, as well as some
of the base tests that were currently in torture.c
This commit is contained in:
parent
2550f47030
commit
4e7c3c7e1f
1575
source/torture/basic/base.c
Normal file
1575
source/torture/basic/base.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -2,10 +2,13 @@
|
||||
|
||||
#################################
|
||||
# Start SUBSYSTEM TORTURE_BASIC
|
||||
[SUBSYSTEM::TORTURE_BASIC]
|
||||
[MODULE::TORTURE_BASIC]
|
||||
SUBSYSTEM = smbtorture
|
||||
INIT_FUNCTION = torture_base_init
|
||||
PRIVATE_PROTO_HEADER = \
|
||||
basic/proto.h
|
||||
OBJ_FILES = \
|
||||
basic/base.o \
|
||||
basic/scanner.o \
|
||||
basic/utable.o \
|
||||
basic/charset.o \
|
||||
@ -226,7 +229,6 @@ OBJ_FILES = \
|
||||
torture.o \
|
||||
torture_util.o
|
||||
REQUIRED_SUBSYSTEMS = \
|
||||
TORTURE_BASIC \
|
||||
TORTURE_RAW \
|
||||
TORTURE_SMB2 \
|
||||
TORTURE_RAP \
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -22,6 +22,9 @@
|
||||
#ifndef __TORTURE_H__
|
||||
#define __TORTURE_H__
|
||||
|
||||
extern int torture_numops;
|
||||
extern int torture_failures;
|
||||
|
||||
#include "libcli/libcli.h"
|
||||
#include "torture/proto.h"
|
||||
|
||||
|
@ -26,10 +26,10 @@
|
||||
#include "system/time.h"
|
||||
|
||||
|
||||
/*
|
||||
/**
|
||||
setup a directory ready for a test
|
||||
*/
|
||||
BOOL torture_setup_dir(struct smbcli_state *cli, const char *dname)
|
||||
_PUBLIC_ BOOL torture_setup_dir(struct smbcli_state *cli, const char *dname)
|
||||
{
|
||||
smb_raw_exit(cli->session);
|
||||
if (smbcli_deltree(cli->tree, dname) == -1 ||
|
||||
@ -75,11 +75,11 @@ NTSTATUS create_directory_handle(struct smbcli_tree *tree, const char *dname, in
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
/**
|
||||
sometimes we need a fairly complex file to work with, so we can test
|
||||
all possible attributes.
|
||||
*/
|
||||
int create_complex_file(struct smbcli_state *cli, TALLOC_CTX *mem_ctx, const char *fname)
|
||||
_PUBLIC_ int create_complex_file(struct smbcli_state *cli, TALLOC_CTX *mem_ctx, const char *fname)
|
||||
{
|
||||
int fnum;
|
||||
char buf[7] = "abc";
|
||||
|
Loading…
Reference in New Issue
Block a user