2004-05-24 22:00:40 +00:00
# TORTURE subsystem
2006-03-17 16:27:22 +00:00
[LIBRARY :: torture ]
2006-03-21 10:57:02 +00:00
DESCRIPTION = Samba torture ( test ) suite
2006-03-19 17:24:31 +00:00
SO_VERSION = 0
VERSION = 0.0.1
2006-11-06 12:05:09 +00:00
PUBLIC_HEADERS = torture.h ui.h
2006-03-17 16:27:22 +00:00
PUBLIC_PROTO_HEADER = proto.h
OBJ_FILES = \
2006-10-16 20:05:19 +00:00
torture.o \
2006-11-12 02:49:05 +00:00
ui.o
2006-04-24 15:47:59 +00:00
PUBLIC_DEPENDENCIES = \
2006-03-19 19:47:05 +00:00
LIBSAMBA-CONFIG \
2006-11-12 02:49:05 +00:00
LIBSAMBA-UTIL \
LIBTALLOC
2004-05-24 22:00:40 +00:00
2006-03-17 16:45:24 +00:00
[SUBSYSTEM :: TORTURE_UTIL ]
2006-06-26 11:33:37 +00:00
OBJ_FILES = util.o util_smb.o
2006-10-29 17:40:19 +00:00
PRIVATE_DEPENDENCIES = LIBCLI_RAW
2006-03-17 16:45:24 +00:00
PUBLIC_PROTO_HEADER = util.h
2006-05-14 23:19:00 +00:00
PUBLIC_DEPENDENCIES = POPT_CREDENTIALS
2006-03-17 16:45:24 +00:00
2004-05-24 22:00:40 +00:00
#################################
# Start SUBSYSTEM TORTURE_BASIC
2006-03-17 16:11:02 +00:00
[MODULE :: TORTURE_BASIC ]
2006-03-17 16:27:22 +00:00
SUBSYSTEM = torture
2006-03-17 16:11:02 +00:00
INIT_FUNCTION = torture_base_init
2006-02-04 14:08:24 +00:00
PRIVATE_PROTO_HEADER = \
basic/proto.h
2005-12-26 18:03:50 +00:00
OBJ_FILES = \
2006-03-17 16:11:02 +00:00
basic/base.o \
2006-10-16 13:06:41 +00:00
basic/misc.o \
2005-10-21 16:29:54 +00:00
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
2007-04-20 11:28:25 +00:00
PRIVATE_DEPENDENCIES = \
2006-06-17 02:20:39 +00:00
LIBCLI_SMB POPT_CREDENTIALS \
2007-04-20 11:28:25 +00:00
TORTURE_UTIL LIBCLI_RAW \
TORTURE_RAW
2004-05-24 22:00:40 +00:00
# End SUBSYSTEM TORTURE_BASIC
#################################
#################################
2005-11-11 04:46:48 +00:00
# Start SUBSYSTEM TORTURE_RAW
2006-06-17 02:20:39 +00:00
[MODULE :: TORTURE_RAW ]
SUBSYSTEM = torture
INIT_FUNCTION = torture_raw_init
2006-02-04 14:08:24 +00:00
PRIVATE_PROTO_HEADER = \
raw/proto.h
2005-12-26 18:03:50 +00:00
OBJ_FILES = \
2005-10-21 16:29:54 +00:00
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 \
2007-08-29 05:45:24 +00:00
raw/pingpong.o \
2006-12-09 03:16:17 +00:00
raw/lockbench.o \
2007-04-05 06:23:06 +00:00
raw/openbench.o \
2005-10-21 16:29:54 +00:00
raw/rename.o \
raw/eas.o \
raw/streams.o \
raw/acls.o \
raw/seek.o \
2006-06-12 10:18:15 +00:00
raw/samba3hide.o \
2006-06-28 22:09:03 +00:00
raw/samba3misc.o \
2006-06-17 02:20:39 +00:00
raw/composite.o \
raw/raw.o
2007-04-20 11:28:25 +00:00
PRIVATE_DEPENDENCIES = \
2006-05-14 13:51:27 +00:00
LIBCLI_SMB LIBCLI_LSA LIBCLI_SMB_COMPOSITE \
2007-04-20 11:28:25 +00:00
POPT_CREDENTIALS TORTURE_UTIL
2004-05-24 22:00:40 +00:00
# End SUBSYSTEM TORTURE_RAW
#################################
2005-11-11 04:46:48 +00:00
i n c l u d e s m b 2 / c o n f i g . m k
2007-09-16 14:19:30 +00:00
i n c l u d e w i n b i n d / c o n f i g . m k
2005-11-11 04:46:48 +00:00
2007-02-16 15:13:51 +00:00
[SUBSYSTEM :: TORTURE_NDR ]
2007-02-14 19:30:05 +00:00
PRIVATE_PROTO_HEADER = ndr/proto.h
OBJ_FILES = ndr/ndr.o \
2007-02-15 21:06:33 +00:00
ndr/winreg.o \
2007-02-15 22:07:18 +00:00
ndr/atsvc.o \
2007-02-16 01:08:59 +00:00
ndr/lsa.o \
2007-02-16 12:47:08 +00:00
ndr/epmap.o \
2007-02-17 01:58:06 +00:00
ndr/dfs.o \
2007-02-18 00:41:42 +00:00
ndr/netlogon.o \
ndr/drsuapi.o \
2007-03-02 16:20:48 +00:00
ndr/spoolss.o \
ndr/samr.o
2007-02-14 19:30:05 +00:00
2006-03-14 15:02:05 +00:00
[MODULE :: torture_rpc ]
2006-03-17 00:45:52 +00:00
# TORTURE_NET and TORTURE_NBT use functions from torture_rpc...
2006-06-25 22:42:12 +00:00
#OUTPUT_TYPE = INTEGRATED
2006-03-17 16:27:22 +00:00
SUBSYSTEM = torture
2006-03-14 15:02:05 +00:00
INIT_FUNCTION = torture_rpc_init
2006-02-04 14:08:24 +00:00
PRIVATE_PROTO_HEADER = \
rpc/proto.h
2005-12-26 18:03:50 +00:00
OBJ_FILES = \
2005-10-21 16:29:54 +00:00
rpc/join.o \
rpc/lsa.o \
2006-01-08 12:29:11 +00:00
rpc/lsa_lookup.o \
2005-10-21 16:29:54 +00:00
rpc/session_key.o \
rpc/echo.o \
rpc/dfs.o \
rpc/drsuapi.o \
rpc/drsuapi_cracknames.o \
rpc/dssync.o \
rpc/spoolss.o \
2007-09-03 13:13:25 +00:00
rpc/spoolss_notify.o \
2005-10-21 16:29:54 +00:00
rpc/unixinfo.o \
rpc/samr.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 \
2006-03-14 15:02:05 +00:00
rpc/bench.o \
2006-06-05 10:00:41 +00:00
rpc/samba3rpc.o \
2006-05-02 13:08:38 +00:00
rpc/rpc.o \
2007-02-27 23:35:38 +00:00
rpc/async_bind.o \
rpc/handles.o
2007-04-20 11:28:25 +00:00
PRIVATE_DEPENDENCIES = \
2007-02-26 16:18:23 +00:00
NDR_TABLE RPC_NDR_UNIXINFO dcerpc_samr RPC_NDR_WINREG RPC_NDR_INITSHUTDOWN \
2005-03-17 20:28:01 +00:00
RPC_NDR_OXIDRESOLVER RPC_NDR_EVENTLOG RPC_NDR_ECHO RPC_NDR_SVCCTL \
2007-03-14 00:44:29 +00:00
RPC_NDR_NETLOGON dcerpc_atsvc dcerpc_mgmt RPC_NDR_DRSUAPI \
2004-11-19 20:21:13 +00:00
RPC_NDR_LSA RPC_NDR_EPMAPPER RPC_NDR_DFS RPC_NDR_SPOOLSS \
2005-02-21 13:13:21 +00:00
RPC_NDR_SRVSVC RPC_NDR_WKSSVC RPC_NDR_ROT RPC_NDR_DSSETUP \
2006-04-30 00:40:04 +00:00
RPC_NDR_REMACT RPC_NDR_OXIDRESOLVER WB_HELPER LIBSAMBA-NET \
2007-09-03 13:13:25 +00:00
LIBCLI_AUTH POPT_CREDENTIALS TORTURE_LDAP TORTURE_UTIL TORTURE_RAP \
dcerpc_server service process_model
2004-05-24 22:00:40 +00:00
2004-07-08 16:41:10 +00:00
#################################
2006-01-28 20:08:03 +00:00
# Start SUBSYSTEM TORTURE_RAP
2006-06-17 02:20:39 +00:00
[MODULE :: TORTURE_RAP ]
SUBSYSTEM = torture
INIT_FUNCTION = torture_rap_init
2006-02-04 14:08:24 +00:00
PRIVATE_PROTO_HEADER = \
rap/proto.h
2005-12-26 18:03:50 +00:00
OBJ_FILES = \
2006-01-28 20:08:03 +00:00
rap/rap.o
2007-04-20 11:28:25 +00:00
PRIVATE_DEPENDENCIES = TORTURE_UTIL LIBCLI_SMB
2006-01-28 20:08:03 +00:00
# End SUBSYSTEM TORTURE_RAP
2004-07-08 16:41:10 +00:00
#################################
2004-05-25 15:56:02 +00:00
#################################
# Start SUBSYSTEM TORTURE_AUTH
2006-06-17 02:20:39 +00:00
[MODULE :: TORTURE_AUTH ]
SUBSYSTEM = torture
2006-02-04 14:08:24 +00:00
PRIVATE_PROTO_HEADER = \
auth/proto.h
2005-12-26 18:03:50 +00:00
OBJ_FILES = \
2005-10-21 16:29:54 +00:00
auth/ntlmssp.o \
auth/pac.o
2007-04-20 11:28:25 +00:00
PRIVATE_DEPENDENCIES = \
2006-05-14 13:51:27 +00:00
LIBCLI_SMB gensec auth LIBSAMBA3 KERBEROS \
POPT_CREDENTIALS
2004-05-25 15:56:02 +00:00
# End SUBSYSTEM TORTURE_AUTH
#################################
2005-12-02 03:19:23 +00:00
i n c l u d e l o c a l / c o n f i g . m k
2004-09-01 04:39:06 +00:00
2004-05-24 22:00:40 +00:00
#################################
2006-06-22 17:00:11 +00:00
# Start MODULE TORTURE_NBENCH
[MODULE :: TORTURE_NBENCH ]
SUBSYSTEM = torture
INIT_FUNCTION = torture_nbench_init
2006-10-29 17:40:19 +00:00
PRIVATE_DEPENDENCIES = TORTURE_UTIL
2006-02-04 14:08:24 +00:00
PRIVATE_PROTO_HEADER = \
nbench/proto.h
2005-12-26 18:03:50 +00:00
OBJ_FILES = \
2005-10-21 16:29:54 +00:00
nbench/nbio.o \
nbench/nbench.o
2006-06-22 17:00:11 +00:00
# End MODULE TORTURE_NBENCH
2004-05-24 22:00:40 +00:00
#################################
2007-03-02 05:58:22 +00:00
#################################
# 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 \
2007-03-05 22:26:38 +00:00
unix/whoami.o \
unix/unix_info2.o
2007-03-02 05:58:22 +00:00
# End MODULE TORTURE_UNIX
#################################
2004-08-12 08:00:45 +00:00
#################################
# Start SUBSYSTEM TORTURE_LDAP
2006-06-17 02:20:39 +00:00
[MODULE :: TORTURE_LDAP ]
SUBSYSTEM = torture
INIT_FUNCTION = torture_ldap_init
2006-02-04 14:08:24 +00:00
PRIVATE_PROTO_HEADER = \
ldap/proto.h
2005-12-26 18:03:50 +00:00
OBJ_FILES = \
2005-10-21 16:29:54 +00:00
ldap/common.o \
ldap/basic.o \
2006-05-30 17:57:35 +00:00
ldap/schema.o \
2007-02-20 14:39:13 +00:00
ldap/uptodatevector.o \
2005-10-21 16:29:54 +00:00
ldap/cldap.o \
ldap/cldapbench.o
2007-04-20 11:28:25 +00:00
PRIVATE_DEPENDENCIES = \
2006-05-30 17:57:35 +00:00
LIBCLI_LDAP LIBCLI_CLDAP SAMDB POPT_CREDENTIALS
2004-08-12 08:00:45 +00:00
# End SUBSYSTEM TORTURE_LDAP
#################################
2005-01-31 09:54:39 +00:00
#################################
# Start SUBSYSTEM TORTURE_NBT
2006-06-17 02:20:39 +00:00
[MODULE :: TORTURE_NBT ]
SUBSYSTEM = torture
INIT_FUNCTION = torture_nbt_init
2006-02-04 14:08:24 +00:00
PRIVATE_PROTO_HEADER = \
nbt/proto.h
2005-12-26 18:03:50 +00:00
OBJ_FILES = \
2005-10-21 16:29:54 +00:00
nbt/query.o \
nbt/register.o \
nbt/wins.o \
nbt/winsbench.o \
nbt/winsreplication.o \
2006-01-27 13:10:24 +00:00
nbt/dgram.o \
2006-06-17 02:20:39 +00:00
nbt/nbt.o
2007-04-20 11:28:25 +00:00
PRIVATE_DEPENDENCIES = \
LIBCLI_SMB LIBCLI_NBT LIBCLI_DGRAM LIBCLI_WREPL torture_rpc
2005-01-31 09:54:39 +00:00
# End SUBSYSTEM TORTURE_NBT
#################################
2005-03-04 00:25:16 +00:00
#################################
# Start SUBSYSTEM TORTURE_NET
2006-03-17 16:45:24 +00:00
[MODULE :: TORTURE_NET ]
SUBSYSTEM = torture
INIT_FUNCTION = torture_net_init
2006-02-04 14:08:24 +00:00
PRIVATE_PROTO_HEADER = \
libnet/proto.h
2005-12-26 18:03:50 +00:00
OBJ_FILES = \
2006-03-17 16:45:24 +00:00
libnet/libnet.o \
2005-10-21 16:29:54 +00:00
libnet/userinfo.o \
libnet/userman.o \
2007-08-19 21:09:15 +00:00
libnet/groupinfo.o \
2005-10-21 16:29:54 +00:00
libnet/domain.o \
libnet/libnet_lookup.o \
libnet/libnet_user.o \
2007-08-26 21:49:23 +00:00
libnet/libnet_group.o \
2005-10-21 16:29:54 +00:00
libnet/libnet_share.o \
2006-08-27 20:41:29 +00:00
libnet/libnet_rpc.o \
2006-12-12 23:23:50 +00:00
libnet/libnet_domain.o \
libnet/libnet_BecomeDC.o
2007-04-20 11:28:25 +00:00
PRIVATE_DEPENDENCIES = \
2006-05-14 11:43:33 +00:00
LIBSAMBA-NET \
2007-01-05 21:27:24 +00:00
smbcalls \
2007-04-20 11:28:25 +00:00
POPT_CREDENTIALS \
torture_rpc
2005-03-04 00:25:16 +00:00
# End SUBSYSTEM TORTURE_NET
#################################
2004-05-24 22:00:40 +00:00
#################################
# Start BINARY smbtorture
[BINARY :: smbtorture ]
2005-08-03 00:08:28 +00:00
INSTALLDIR = BINDIR
2004-05-24 22:00:40 +00:00
OBJ_FILES = \
2006-03-17 16:27:22 +00:00
smbtorture.o
2006-04-24 15:47:59 +00:00
PRIVATE_DEPENDENCIES = \
2006-03-17 16:27:22 +00:00
torture \
2006-09-06 01:36:02 +00:00
LIBPOPT \
2005-12-29 23:14:33 +00:00
POPT_SAMBA \
2006-06-25 22:42:12 +00:00
POPT_CREDENTIALS \
dcerpc \
2006-10-30 01:19:31 +00:00
LIBCLI_SMB \
SMBREADLINE
2005-10-21 16:29:54 +00:00
MANPAGE = man/smbtorture.1
2004-05-24 22:00:40 +00:00
# End BINARY smbtorture
#################################
2004-05-25 00:20:19 +00:00
#################################
# Start BINARY gentest
[BINARY :: gentest ]
2005-08-03 00:08:28 +00:00
INSTALLDIR = BINDIR
2004-05-25 00:20:19 +00:00
OBJ_FILES = \
2006-03-17 17:59:58 +00:00
gentest.o
2006-04-24 15:47:59 +00:00
PRIVATE_DEPENDENCIES = \
2006-03-19 19:47:05 +00:00
LIBSAMBA-CONFIG \
LIBSAMBA-UTIL \
2006-09-06 01:36:02 +00:00
LIBPOPT \
2006-03-07 12:40:34 +00:00
POPT_SAMBA \
POPT_CREDENTIALS \
2006-04-30 00:00:28 +00:00
LIBCLI_SMB \
LIBCLI_RAW
2005-10-21 16:29:54 +00:00
MANPAGE = man/gentest.1
2004-05-25 00:20:19 +00:00
# End BINARY gentest
#################################
#################################
# Start BINARY masktest
[BINARY :: masktest ]
2005-08-03 00:08:28 +00:00
INSTALLDIR = BINDIR
2004-05-25 00:20:19 +00:00
OBJ_FILES = \
2005-10-21 16:29:54 +00:00
masktest.o
2006-04-24 15:47:59 +00:00
PRIVATE_DEPENDENCIES = \
2006-03-19 19:47:05 +00:00
LIBSAMBA-CONFIG \
LIBSAMBA-UTIL \
2006-09-06 01:36:02 +00:00
LIBPOPT \
2006-03-07 12:40:34 +00:00
POPT_SAMBA \
POPT_CREDENTIALS \
2006-04-29 23:22:54 +00:00
LIBCLI_SMB
2005-10-21 16:29:54 +00:00
MANPAGE = man/masktest.1
2004-05-25 00:20:19 +00:00
# End BINARY masktest
#################################
#################################
# Start BINARY locktest
[BINARY :: locktest ]
2005-08-03 00:08:28 +00:00
INSTALLDIR = BINDIR
2004-05-25 00:20:19 +00:00
OBJ_FILES = \
2006-03-17 17:59:58 +00:00
locktest.o
2006-04-24 15:47:59 +00:00
PRIVATE_DEPENDENCIES = \
2006-11-12 02:49:05 +00:00
LIBSAMBA-UTIL \
2006-04-29 23:22:54 +00:00
LIBCLI_SMB \
2006-11-12 02:49:05 +00:00
LIBSAMBA-CONFIG
2005-10-21 16:29:54 +00:00
MANPAGE = man/locktest.1
2004-05-25 00:20:19 +00:00
# End BINARY locktest
#################################
2005-09-05 19:54:35 +00:00
GCOV_FLAGS = -ftest-coverage -fprofile-arcs
GCOV_LIBS = -lgcov
2007-03-21 15:57:07 +00:00
COV_TARGET = test
2007-01-23 00:26:03 +00:00
test_cov :
2007-03-21 15:57:07 +00:00
@$( MAKE) $( COV_TARGET) \
2007-01-22 18:16:01 +00:00
HOSTCC_CFLAGS = " $( HOSTCC_CFLAGS) $( GCOV_FLAGS) " \
2005-09-05 19:54:35 +00:00
CFLAGS = " $( CFLAGS) $( GCOV_FLAGS) " \
2007-01-23 10:08:08 +00:00
LDFLAGS = " $( LDFLAGS) $( GCOV_FLAGS) $( GCOV_LIBS) " \
SHLD_FLAGS = " $( SHLD_FLAGS) $( GCOV_FLAGS) $( GCOV_LIBS) "
2007-01-23 00:26:03 +00:00
gcov : test_cov
2005-12-23 13:02:52 +00:00
for I in $( sort $( dir $( ALL_OBJS) ) ) ; \
2005-09-05 19:54:35 +00:00
do $( GCOV) -p -o $$ I $$ I/*.c; \
done
2007-01-22 18:16:01 +00:00
2007-03-21 15:57:07 +00:00
lcov-split :
rm -f samba.info
@$( MAKE) $( COV_TARGET) \
HOSTCC_CFLAGS = " $( HOSTCC_CFLAGS) $( GCOV_FLAGS) " \
CFLAGS = " $( CFLAGS) $( GCOV_FLAGS) " \
LDFLAGS = " $( LDFLAGS) $( GCOV_FLAGS) $( GCOV_LIBS) " \
SHLD_FLAGS = " $( SHLD_FLAGS) $( GCOV_FLAGS) $( GCOV_LIBS) " \
TEST_OPTIONS = "--analyse-cmd=\"lcov --base-directory `pwd` --directory . --capture --output-file samba.info -t\""
-rm heimdal/lib/*/{ lex,parse} .{ gcda,gcno}
genhtml -o coverage samba.info
2007-01-23 00:26:03 +00:00
lcov : test_cov
2007-03-21 15:57:07 +00:00
-rm heimdal/lib/*/{ lex,parse} .{ gcda,gcno}
2007-01-22 18:16:01 +00:00
lcov --base-directory ` pwd ` --directory . --capture --output-file samba.info
genhtml -o coverage samba.info
2007-02-28 02:06:17 +00:00
testcov-html :: lcov