smbtorture3: also check test file and it's attributes in two POSIX tests
[samba.git] / source3 / torture / wscript_build
1 #!/usr/bin/env python
2
3 bld.SAMBA3_BINARY('locktest2',
4                  source='locktest2.c',
5                  deps='''
6                       talloc
7                       smbconf
8                       libsmb
9                       LOCKING
10                       ''',
11                  for_selftest=True)
12
13 TORTURE3_ADDITIONAL_SOURCE=""
14
15 if bld.env.with_ctdb:
16     TORTURE3_ADDITIONAL_SOURCE += ' test_ctdbd_conn.c'
17
18 bld.SAMBA3_BINARY('smbtorture' + bld.env.suffix3,
19                  source='''
20                         torture.c
21                         nbio.c
22                         scanner.c
23                         utable.c
24                         denytest.c
25                         mangle_test.c
26                         nbench.c
27                         test_async_echo.c
28                         test_addrchange.c
29                         test_matching.c
30                         test_posix_append.c
31                         test_posix.c
32                         test_nttrans_create.c
33                         test_nttrans_fsctl.c
34                         test_case_insensitive.c
35                         test_notify_online.c
36                         test_chain3.c
37                         test_smb2.c
38                         test_smb1_dfs.c
39                         test_authinfo_structs.c
40                         test_smbsock_any_connect.c
41                         test_cleanup.c
42                         test_notify.c
43                         ../lib/tevent_barrier.c
44                         test_dbwrap_watch.c
45                         test_dbwrap_do_locked.c
46                         test_idmap_tdb_common.c
47                         test_dbwrap_ctdb.c
48                         test_buffersize.c
49                         test_messaging_read.c
50                         test_messaging_fd_passing.c
51                         test_messaging_send_all.c
52                         test_oplock_cancel.c
53                         test_pthreadpool_tevent.c
54                         bench_pthreadpool.c
55                         wbc_async.c
56                         test_g_lock.c
57                         test_namemap_cache.c
58                         test_idmap_cache.c
59                         test_hidenewfiles.c
60                         test_readdir_timestamp.c
61                         test_rpc_scale.c
62                         test_tdb_validate.c
63                         ''' + TORTURE3_ADDITIONAL_SOURCE,
64                  deps='''
65                       talloc
66                       smbconf
67                       libsmb
68                       msrpc3
69                       TLDAP
70                       RPC_NDR_ECHO
71                       WB_REQTRANS
72                       LOCKING
73                       NDR_OPEN_FILES
74                       idmap
75                       IDMAP_TDB_COMMON
76                       libcli_lsa3
77                       samba-cluster-support
78                       util_sd
79                       TDB_VALIDATE
80                       ''',
81                  cflags='-DWINBINDD_SOCKET_DIR=\"%s\"' % bld.env.WINBINDD_SOCKET_DIR,
82                  for_selftest=True)
83
84 bld.SAMBA3_BINARY('msgtest',
85                  source='msgtest.c',
86                  deps='''
87                       talloc
88                       smbconf
89                       ''',
90                  install=False)
91
92 bld.SAMBA3_BINARY('msg_sink',
93                  source='msg_sink.c',
94                  deps='''
95                       talloc
96                       smbconf
97                       ''',
98                  install=False)
99
100 bld.SAMBA3_BINARY('msg_source',
101                  source='msg_source.c',
102                  deps='''
103                       talloc
104                       smbconf
105                       ''',
106                  install=False)
107
108 bld.SAMBA3_BINARY('pdbtest',
109                  source='pdbtest.c',
110                  deps='''
111                       talloc
112                       pdb
113                       CMDLINE_S3
114                       AUTH_COMMON
115                       auth
116                       ''',
117                  for_selftest=True)
118
119 if bld.CONFIG_SET('WITH_SMB1SERVER'):
120     SMB1_SOURCES = 'vfstest_chain.c'
121 else:
122     SMB1_SOURCES = ''
123
124 bld.SAMBA3_BINARY('vfstest',
125                  source='''
126                         cmd_vfs.c
127                         vfstest.c
128                         ''' + SMB1_SOURCES,
129                  deps='''
130                       vfs
131                       CMDLINE_S3
132                       smbconf
133                       SMBREADLINE
134                       ''',
135                  for_selftest=True)