Whamcloud - gitweb
Branch b1_6
[fs/lustre-release.git] / lustre / tests / Makefile.am
1 # Lustre test Makefile
2 AM_CPPFLAGS = $(LLCPPFLAGS) -I/opt/lam/include -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS
3 AM_CFLAGS = $(LLCFLAGS)
4 # LDADD = -lldap
5 # LDADD := -lreadline -ltermcap # -lefence
6
7 noinst_DATA =
8 noinst_SCRIPTS = leak_finder.pl llecho.sh llmount.sh llmountcleanup.sh test-framework.sh
9 noinst_SCRIPTS += runvmstat runiozone runtests
10 noinst_SCRIPTS += sanity.sh rundbench
11 noinst_SCRIPTS += cfg/local.sh
12
13
14 EXTRA_DIST = $(noinst_SCRIPTS) $(noinst_DATA) \
15              sanity.sh rundbench \
16              acl/run acl/make-tree acl/getfacl-noacl.test acl/cp.test \
17              acl/setfacl.test acl/permissions.test acl/misc.test \
18              acl/inheritance.test
19
20 if TESTS
21 noinst_PROGRAMS = openunlink truncate directio openme writeme
22 noinst_PROGRAMS += tchmod toexcl fsx test_brw openclose createdestroy
23 noinst_PROGRAMS += stat createmany chownmany statmany multifstat createtest mlink utime
24 noinst_PROGRAMS += opendirunlink opendevunlink unlinkmany fchdir_test checkstat
25 noinst_PROGRAMS += wantedi statone runas openfile getdents o_directory
26 noinst_PROGRAMS += small_write multiop sleeptest ll_sparseness_verify cmknod
27 noinst_PROGRAMS += ll_sparseness_write mrename ll_dirstripe_verify mkdirmany rmdirmany
28 noinst_PROGRAMS += openfilleddirunlink rename_many memhog iopentest1 iopentest2
29 noinst_PROGRAMS += mmap_sanity flock_test writemany random-reads flocks_test
30 noinst_PROGRAMS += ll_getstripe_info
31 if MPITESTS
32 noinst_PROGRAMS += parallel_grouplock write_append_truncate createmany_mpi
33 endif
34 # noinst_PROGRAMS += ldaptest copy_attr mkdirdeep 
35 bin_PROGRAMS = mcreate munlink
36 endif # TESTS
37
38 stat_SOURCES = stat.c stat_fs.h
39 # mkdirdeep_LDADD=-L$(top_builddir)/lnet/utils -lptlctl $(LIBREADLINE)
40 mmap_sanity_SOURCES= mmap_sanity.c
41
42 LIBLUSTREAPI := $(top_builddir)/lustre/utils/liblustreapi.a
43 ll_getstripe_info_LDADD=$(LIBLUSTREAPI)
44
45 if MPITESTS
46 LAM_LD_FLAGS=-L/opt/lam/lib -lmpi -llam -lpthread
47 write_append_truncate_SOURCES=write_append_truncate.c
48 write_append_truncate_LDADD=$(LAM_LD_FLAGS)
49 createmany_mpi_SOURCES=createmany-mpi.c
50 createmany_mpi_LDADD=$(LAM_LD_FLAGS)
51 parallel_grouplock_SOURCES=parallel_grouplock.c lp_utils.c
52 parallel_grouplock_LDADD=$(LAM_LD_FLAGS)
53 endif
54
55 #copy_attr_LDADD= -lattr