mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +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 used to be commit 4e7c3c7e1fe383b37d90954982e8bf150a06663a)
This commit is contained in:
parent
02c4b98998
commit
df891410f1
1575
source4/torture/basic/base.c
Normal file
1575
source4/torture/basic/base.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -2,10 +2,13 @@
|
|||||||
|
|
||||||
#################################
|
#################################
|
||||||
# Start SUBSYSTEM TORTURE_BASIC
|
# Start SUBSYSTEM TORTURE_BASIC
|
||||||
[SUBSYSTEM::TORTURE_BASIC]
|
[MODULE::TORTURE_BASIC]
|
||||||
|
SUBSYSTEM = smbtorture
|
||||||
|
INIT_FUNCTION = torture_base_init
|
||||||
PRIVATE_PROTO_HEADER = \
|
PRIVATE_PROTO_HEADER = \
|
||||||
basic/proto.h
|
basic/proto.h
|
||||||
OBJ_FILES = \
|
OBJ_FILES = \
|
||||||
|
basic/base.o \
|
||||||
basic/scanner.o \
|
basic/scanner.o \
|
||||||
basic/utable.o \
|
basic/utable.o \
|
||||||
basic/charset.o \
|
basic/charset.o \
|
||||||
@ -226,7 +229,6 @@ OBJ_FILES = \
|
|||||||
torture.o \
|
torture.o \
|
||||||
torture_util.o
|
torture_util.o
|
||||||
REQUIRED_SUBSYSTEMS = \
|
REQUIRED_SUBSYSTEMS = \
|
||||||
TORTURE_BASIC \
|
|
||||||
TORTURE_RAW \
|
TORTURE_RAW \
|
||||||
TORTURE_SMB2 \
|
TORTURE_SMB2 \
|
||||||
TORTURE_RAP \
|
TORTURE_RAP \
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -22,6 +22,9 @@
|
|||||||
#ifndef __TORTURE_H__
|
#ifndef __TORTURE_H__
|
||||||
#define __TORTURE_H__
|
#define __TORTURE_H__
|
||||||
|
|
||||||
|
extern int torture_numops;
|
||||||
|
extern int torture_failures;
|
||||||
|
|
||||||
#include "libcli/libcli.h"
|
#include "libcli/libcli.h"
|
||||||
#include "torture/proto.h"
|
#include "torture/proto.h"
|
||||||
|
|
||||||
|
@ -26,10 +26,10 @@
|
|||||||
#include "system/time.h"
|
#include "system/time.h"
|
||||||
|
|
||||||
|
|
||||||
/*
|
/**
|
||||||
setup a directory ready for a test
|
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);
|
smb_raw_exit(cli->session);
|
||||||
if (smbcli_deltree(cli->tree, dname) == -1 ||
|
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
|
sometimes we need a fairly complex file to work with, so we can test
|
||||||
all possible attributes.
|
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;
|
int fnum;
|
||||||
char buf[7] = "abc";
|
char buf[7] = "abc";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user