mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
f41b9a9dde
(This used to be commit c46b7e90e3
)
407 lines
8.8 KiB
Makefile
407 lines
8.8 KiB
Makefile
# TORTURE subsystem
|
|
[LIBRARY::torture]
|
|
SO_VERSION = 0
|
|
VERSION = 0.0.1
|
|
PC_FILE = torture.pc
|
|
PRIVATE_PROTO_HEADER = proto.h
|
|
OBJ_FILES = \
|
|
torture.o \
|
|
ui.o
|
|
PUBLIC_DEPENDENCIES = \
|
|
LIBSAMBA-HOSTCONFIG \
|
|
LIBSAMBA-UTIL \
|
|
LIBTALLOC \
|
|
LIBPOPT
|
|
|
|
PUBLIC_HEADERS += torture/torture.h torture/ui.h
|
|
|
|
[SUBSYSTEM::TORTURE_UTIL]
|
|
OBJ_FILES = util_smb.o util_provision.o
|
|
PRIVATE_DEPENDENCIES = LIBCLI_RAW LIBPYTHON smbcalls
|
|
PUBLIC_DEPENDENCIES = POPT_CREDENTIALS
|
|
|
|
#################################
|
|
# Start SUBSYSTEM TORTURE_BASIC
|
|
[MODULE::TORTURE_BASIC]
|
|
SUBSYSTEM = torture
|
|
INIT_FUNCTION = torture_base_init
|
|
PRIVATE_PROTO_HEADER = \
|
|
basic/proto.h
|
|
OBJ_FILES = \
|
|
basic/base.o \
|
|
basic/misc.o \
|
|
basic/scanner.o \
|
|
basic/utable.o \
|
|
basic/charset.o \
|
|
basic/mangle_test.o \
|
|
basic/denytest.o \
|
|
basic/aliases.o \
|
|
basic/locking.o \
|
|
basic/secleak.o \
|
|
basic/rename.o \
|
|
basic/dir.o \
|
|
basic/delete.o \
|
|
basic/unlink.o \
|
|
basic/disconnect.o \
|
|
basic/delaywrite.o \
|
|
basic/attr.o \
|
|
basic/properties.o
|
|
PRIVATE_DEPENDENCIES = \
|
|
LIBCLI_SMB POPT_CREDENTIALS \
|
|
TORTURE_UTIL LIBCLI_RAW \
|
|
TORTURE_RAW
|
|
# End SUBSYSTEM TORTURE_BASIC
|
|
#################################
|
|
|
|
#################################
|
|
# Start SUBSYSTEM TORTURE_RAW
|
|
[MODULE::TORTURE_RAW]
|
|
SUBSYSTEM = torture
|
|
INIT_FUNCTION = torture_raw_init
|
|
PRIVATE_PROTO_HEADER = \
|
|
raw/proto.h
|
|
OBJ_FILES = \
|
|
raw/qfsinfo.o \
|
|
raw/qfileinfo.o \
|
|
raw/setfileinfo.o \
|
|
raw/search.o \
|
|
raw/close.o \
|
|
raw/open.o \
|
|
raw/mkdir.o \
|
|
raw/oplock.o \
|
|
raw/notify.o \
|
|
raw/mux.o \
|
|
raw/ioctl.o \
|
|
raw/chkpath.o \
|
|
raw/unlink.o \
|
|
raw/read.o \
|
|
raw/context.o \
|
|
raw/write.o \
|
|
raw/lock.o \
|
|
raw/pingpong.o \
|
|
raw/lockbench.o \
|
|
raw/openbench.o \
|
|
raw/rename.o \
|
|
raw/eas.o \
|
|
raw/streams.o \
|
|
raw/acls.o \
|
|
raw/seek.o \
|
|
raw/samba3hide.o \
|
|
raw/samba3misc.o \
|
|
raw/composite.o \
|
|
raw/raw.o \
|
|
raw/offline.o
|
|
PRIVATE_DEPENDENCIES = \
|
|
LIBCLI_SMB LIBCLI_LSA LIBCLI_SMB_COMPOSITE \
|
|
POPT_CREDENTIALS TORTURE_UTIL
|
|
# End SUBSYSTEM TORTURE_RAW
|
|
#################################
|
|
|
|
mkinclude smb2/config.mk
|
|
mkinclude winbind/config.mk
|
|
|
|
[SUBSYSTEM::TORTURE_NDR]
|
|
PRIVATE_PROTO_HEADER = ndr/proto.h
|
|
OBJ_FILES = ndr/ndr.o \
|
|
ndr/winreg.o \
|
|
ndr/atsvc.o \
|
|
ndr/lsa.o \
|
|
ndr/epmap.o \
|
|
ndr/dfs.o \
|
|
ndr/netlogon.o \
|
|
ndr/drsuapi.o \
|
|
ndr/spoolss.o \
|
|
ndr/samr.o
|
|
|
|
[MODULE::torture_rpc]
|
|
# TORTURE_NET and TORTURE_NBT use functions from torture_rpc...
|
|
#OUTPUT_TYPE = MERGED_OBJ
|
|
SUBSYSTEM = torture
|
|
INIT_FUNCTION = torture_rpc_init
|
|
PRIVATE_PROTO_HEADER = \
|
|
rpc/proto.h
|
|
OBJ_FILES = \
|
|
rpc/join.o \
|
|
rpc/lsa.o \
|
|
rpc/lsa_lookup.o \
|
|
rpc/session_key.o \
|
|
rpc/echo.o \
|
|
rpc/dfs.o \
|
|
rpc/drsuapi.o \
|
|
rpc/drsuapi_cracknames.o \
|
|
rpc/dssync.o \
|
|
rpc/spoolss.o \
|
|
rpc/spoolss_notify.o \
|
|
rpc/spoolss_win.o \
|
|
rpc/unixinfo.o \
|
|
rpc/samr.o \
|
|
rpc/samr_accessmask.o \
|
|
rpc/wkssvc.o \
|
|
rpc/srvsvc.o \
|
|
rpc/svcctl.o \
|
|
rpc/atsvc.o \
|
|
rpc/eventlog.o \
|
|
rpc/epmapper.o \
|
|
rpc/winreg.o \
|
|
rpc/initshutdown.o \
|
|
rpc/oxidresolve.o \
|
|
rpc/remact.o \
|
|
rpc/mgmt.o \
|
|
rpc/scanner.o \
|
|
rpc/autoidl.o \
|
|
rpc/countcalls.o \
|
|
rpc/testjoin.o \
|
|
rpc/schannel.o \
|
|
rpc/netlogon.o \
|
|
rpc/samlogon.o \
|
|
rpc/samsync.o \
|
|
rpc/bind.o \
|
|
rpc/dssetup.o \
|
|
rpc/alter_context.o \
|
|
rpc/bench.o \
|
|
rpc/samba3rpc.o \
|
|
rpc/rpc.o \
|
|
rpc/async_bind.o \
|
|
rpc/handles.o \
|
|
rpc/frsapi.o
|
|
PRIVATE_DEPENDENCIES = \
|
|
NDR_TABLE RPC_NDR_UNIXINFO dcerpc_samr RPC_NDR_WINREG RPC_NDR_INITSHUTDOWN \
|
|
RPC_NDR_OXIDRESOLVER RPC_NDR_EVENTLOG RPC_NDR_ECHO RPC_NDR_SVCCTL \
|
|
RPC_NDR_NETLOGON dcerpc_atsvc dcerpc_mgmt RPC_NDR_DRSUAPI \
|
|
RPC_NDR_LSA RPC_NDR_EPMAPPER RPC_NDR_DFS RPC_NDR_FRSAPI RPC_NDR_SPOOLSS \
|
|
RPC_NDR_SRVSVC RPC_NDR_WKSSVC RPC_NDR_ROT RPC_NDR_DSSETUP \
|
|
RPC_NDR_REMACT RPC_NDR_OXIDRESOLVER WB_HELPER LIBSAMBA-NET \
|
|
LIBCLI_AUTH POPT_CREDENTIALS TORTURE_LDAP TORTURE_UTIL TORTURE_RAP \
|
|
dcerpc_server service process_model
|
|
|
|
#################################
|
|
# Start SUBSYSTEM TORTURE_RAP
|
|
[MODULE::TORTURE_RAP]
|
|
SUBSYSTEM = torture
|
|
INIT_FUNCTION = torture_rap_init
|
|
PRIVATE_PROTO_HEADER = \
|
|
rap/proto.h
|
|
OBJ_FILES = \
|
|
rap/rap.o
|
|
PRIVATE_DEPENDENCIES = TORTURE_UTIL LIBCLI_SMB
|
|
# End SUBSYSTEM TORTURE_RAP
|
|
#################################
|
|
|
|
#################################
|
|
# Start SUBSYSTEM TORTURE_AUTH
|
|
[MODULE::TORTURE_AUTH]
|
|
SUBSYSTEM = torture
|
|
PRIVATE_PROTO_HEADER = \
|
|
auth/proto.h
|
|
OBJ_FILES = \
|
|
auth/ntlmssp.o \
|
|
auth/pac.o
|
|
PRIVATE_DEPENDENCIES = \
|
|
LIBCLI_SMB gensec auth KERBEROS \
|
|
POPT_CREDENTIALS SMBPASSWD
|
|
# End SUBSYSTEM TORTURE_AUTH
|
|
#################################
|
|
|
|
mkinclude local/config.mk
|
|
|
|
#################################
|
|
# Start MODULE TORTURE_NBENCH
|
|
[MODULE::TORTURE_NBENCH]
|
|
SUBSYSTEM = torture
|
|
INIT_FUNCTION = torture_nbench_init
|
|
PRIVATE_DEPENDENCIES = TORTURE_UTIL
|
|
PRIVATE_PROTO_HEADER = \
|
|
nbench/proto.h
|
|
OBJ_FILES = \
|
|
nbench/nbio.o \
|
|
nbench/nbench.o
|
|
# End MODULE TORTURE_NBENCH
|
|
#################################
|
|
|
|
#################################
|
|
# Start MODULE TORTURE_UNIX
|
|
[MODULE::TORTURE_UNIX]
|
|
SUBSYSTEM = torture
|
|
INIT_FUNCTION = torture_unix_init
|
|
PRIVATE_DEPENDENCIES = TORTURE_UTIL
|
|
PRIVATE_PROTO_HEADER = \
|
|
unix/proto.h
|
|
OBJ_FILES = \
|
|
unix/unix.o \
|
|
unix/whoami.o \
|
|
unix/unix_info2.o
|
|
# End MODULE TORTURE_UNIX
|
|
#################################
|
|
|
|
#################################
|
|
# Start SUBSYSTEM TORTURE_LDAP
|
|
[MODULE::TORTURE_LDAP]
|
|
SUBSYSTEM = torture
|
|
INIT_FUNCTION = torture_ldap_init
|
|
PRIVATE_PROTO_HEADER = \
|
|
ldap/proto.h
|
|
OBJ_FILES = \
|
|
ldap/common.o \
|
|
ldap/basic.o \
|
|
ldap/schema.o \
|
|
ldap/uptodatevector.o \
|
|
ldap/cldap.o \
|
|
ldap/cldapbench.o
|
|
PRIVATE_DEPENDENCIES = \
|
|
LIBCLI_LDAP LIBCLI_CLDAP SAMDB POPT_CREDENTIALS
|
|
# End SUBSYSTEM TORTURE_LDAP
|
|
#################################
|
|
|
|
#################################
|
|
# Start SUBSYSTEM TORTURE_NBT
|
|
[MODULE::TORTURE_NBT]
|
|
SUBSYSTEM = torture
|
|
INIT_FUNCTION = torture_nbt_init
|
|
PRIVATE_PROTO_HEADER = \
|
|
nbt/proto.h
|
|
OBJ_FILES = \
|
|
nbt/query.o \
|
|
nbt/register.o \
|
|
nbt/wins.o \
|
|
nbt/winsbench.o \
|
|
nbt/winsreplication.o \
|
|
nbt/dgram.o \
|
|
nbt/nbt.o
|
|
PRIVATE_DEPENDENCIES = \
|
|
LIBCLI_SMB LIBCLI_NBT LIBCLI_DGRAM LIBCLI_WREPL torture_rpc
|
|
# End SUBSYSTEM TORTURE_NBT
|
|
#################################
|
|
|
|
#################################
|
|
# Start SUBSYSTEM TORTURE_NET
|
|
[MODULE::TORTURE_NET]
|
|
SUBSYSTEM = torture
|
|
INIT_FUNCTION = torture_net_init
|
|
PRIVATE_PROTO_HEADER = \
|
|
libnet/proto.h
|
|
OBJ_FILES = \
|
|
libnet/libnet.o \
|
|
libnet/utils.o \
|
|
libnet/userinfo.o \
|
|
libnet/userman.o \
|
|
libnet/groupinfo.o \
|
|
libnet/groupman.o \
|
|
libnet/domain.o \
|
|
libnet/libnet_lookup.o \
|
|
libnet/libnet_user.o \
|
|
libnet/libnet_group.o \
|
|
libnet/libnet_share.o \
|
|
libnet/libnet_rpc.o \
|
|
libnet/libnet_domain.o \
|
|
libnet/libnet_BecomeDC.o
|
|
PRIVATE_DEPENDENCIES = \
|
|
LIBSAMBA-NET \
|
|
POPT_CREDENTIALS \
|
|
torture_rpc
|
|
# End SUBSYSTEM TORTURE_NET
|
|
#################################
|
|
|
|
#################################
|
|
# Start BINARY smbtorture
|
|
[BINARY::smbtorture]
|
|
INSTALLDIR = BINDIR
|
|
OBJ_FILES = \
|
|
smbtorture.o
|
|
PRIVATE_DEPENDENCIES = \
|
|
torture \
|
|
LIBPOPT \
|
|
POPT_SAMBA \
|
|
POPT_CREDENTIALS \
|
|
dcerpc \
|
|
LIBCLI_SMB \
|
|
SMBREADLINE
|
|
# End BINARY smbtorture
|
|
#################################
|
|
|
|
MANPAGES += torture/man/smbtorture.1
|
|
|
|
#################################
|
|
# Start BINARY gentest
|
|
[BINARY::gentest]
|
|
INSTALLDIR = BINDIR
|
|
OBJ_FILES = \
|
|
gentest.o
|
|
PRIVATE_DEPENDENCIES = \
|
|
LIBSAMBA-HOSTCONFIG \
|
|
LIBSAMBA-UTIL \
|
|
LIBPOPT \
|
|
POPT_SAMBA \
|
|
POPT_CREDENTIALS \
|
|
LIBCLI_SMB \
|
|
LIBCLI_RAW
|
|
# End BINARY gentest
|
|
#################################
|
|
|
|
MANPAGES += torture/man/gentest.1
|
|
|
|
#################################
|
|
# Start BINARY masktest
|
|
[BINARY::masktest]
|
|
INSTALLDIR = BINDIR
|
|
OBJ_FILES = \
|
|
masktest.o
|
|
PRIVATE_DEPENDENCIES = \
|
|
LIBSAMBA-HOSTCONFIG \
|
|
LIBSAMBA-UTIL \
|
|
LIBPOPT \
|
|
POPT_SAMBA \
|
|
POPT_CREDENTIALS \
|
|
LIBCLI_SMB
|
|
# End BINARY masktest
|
|
#################################
|
|
|
|
MANPAGES += torture/man/masktest.1
|
|
|
|
#################################
|
|
# Start BINARY locktest
|
|
[BINARY::locktest]
|
|
INSTALLDIR = BINDIR
|
|
OBJ_FILES = \
|
|
locktest.o
|
|
PRIVATE_DEPENDENCIES = \
|
|
LIBPOPT \
|
|
POPT_SAMBA \
|
|
POPT_CREDENTIALS \
|
|
LIBSAMBA-UTIL \
|
|
LIBCLI_SMB \
|
|
LIBSAMBA-HOSTCONFIG
|
|
# End BINARY locktest
|
|
#################################
|
|
|
|
MANPAGES += torture/man/locktest.1
|
|
|
|
COV_TARGET = test
|
|
|
|
COV_VARS = \
|
|
CFLAGS="$(CFLAGS) --coverage" \
|
|
LDFLAGS="$(LDFLAGS) --coverage"
|
|
|
|
test_cov:
|
|
-$(MAKE) $(COV_TARGET) $(COV_VARS)
|
|
|
|
gcov: test_cov
|
|
for I in $(sort $(dir $(ALL_OBJS))); \
|
|
do $(GCOV) -p -o $$I $$I/*.c; \
|
|
done
|
|
|
|
lcov-split:
|
|
rm -f samba.info
|
|
@$(MAKE) $(COV_TARGET) $(COV_VARS) \
|
|
TEST_OPTIONS="--analyse-cmd=\"lcov --base-directory `pwd` --directory . --capture --output-file samba.info -t\""
|
|
-rm heimdal/lib/*/{lex,parse}.{gcda,gcno}
|
|
-rm lib/policy/*/{lex,parse}.{gcda,gcno}
|
|
genhtml -o coverage samba.info
|
|
|
|
lcov: test_cov
|
|
-rm heimdal/lib/*/{lex,parse}.{gcda,gcno}
|
|
-rm lib/policy/*/{lex,parse}.{gcda,gcno}
|
|
lcov --base-directory `pwd` --directory . --capture --output-file samba.info
|
|
genhtml -o coverage samba.info
|
|
|
|
testcov-html:: lcov
|