Whamcloud - gitweb
2d16b873fb82529cdf1cd51d5aab13c6ceaf4db5
[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 = disk1_4.zip
8 noinst_SCRIPTS = leak_finder.pl llecho.sh llmount.sh llmountcleanup.sh
9 noinst_SCRIPTS += test-framework.sh runvmstat runiozone runtests
10 noinst_SCRIPTS += sanity.sh rundbench acceptance-small.sh compile.sh
11 noinst_SCRIPTS += conf-sanity.sh insanity.sh lfscktest.sh oos.sh oos2.sh
12 noinst_SCRIPTS += llog-test.sh recovery-small.sh replay-dual.sh sanity-quota.sh
13 noinst_SCRIPTS += replay-ost-single.sh replay-single.sh run-llog.sh sanityN.sh
14 noinst_SCRIPTS += lockorder.sh socketclient socketserver sanity-sec.sh
15 nobase_noinst_SCRIPTS = cfg/insanity-local.sh cfg/insanity-ltest.sh
16 nobase_noinst_SCRIPTS += cfg/local.sh acl/make-tree acl/run
17 nobase_noinst_DATA = acl/cp.test acl/getfacl-noacl.test acl/inheritance.test
18 nobase_noinst_DATA += acl/misc.test acl/permissions.test acl/setfacl.test
19
20 EXTRA_DIST = $(noinst_SCRIPTS) $(noinst_DATA) \
21              $(nobase_noinst_SCRIPTS) $(nobase_noinst_DATA)
22
23 if TESTS
24 noinst_PROGRAMS = openunlink truncate directio openme writeme mlink utime
25 noinst_PROGRAMS += tchmod toexcl fsx test_brw openclose createdestroy
26 noinst_PROGRAMS += stat createmany chownmany statmany multifstat createtest
27 noinst_PROGRAMS += opendirunlink opendevunlink unlinkmany fchdir_test checkstat
28 noinst_PROGRAMS += wantedi statone runas openfile getdents o_directory rmdirmany
29 noinst_PROGRAMS += small_write multiop sleeptest ll_sparseness_verify cmknod
30 noinst_PROGRAMS += ll_sparseness_write mrename ll_dirstripe_verify mkdirmany
31 noinst_PROGRAMS += openfilleddirunlink rename_many memhog iopentest1 iopentest2
32 noinst_PROGRAMS += mmap_sanity flock_test writemany random-reads flocks_test
33 noinst_PROGRAMS += ll_getstripe_info write_time_limit
34 if MPITESTS
35 noinst_PROGRAMS += parallel_grouplock write_append_truncate createmany_mpi
36 noinst_PROGRAMS += iam_ut
37 endif
38 # noinst_PROGRAMS += ldaptest copy_attr mkdirdeep 
39 bin_PROGRAMS = mcreate munlink
40 testdir = $(libdir)/lustre/tests
41 test_SCRIPTS = $(noinst_SCRIPTS) $(noinst_PROGRAMS)
42 nobase_test_SCRIPTS = $(nobase_noinst_SCRIPTS)
43 test_DATA = $(noinst_DATA)
44 nobase_test_DATA = $(nobase_noinst_DATA)
45 endif # TESTS
46
47 stat_SOURCES = stat.c stat_fs.h
48 # mkdirdeep_LDADD=-L$(top_builddir)/lnet/utils -lptlctl $(LIBREADLINE)
49 mmap_sanity_SOURCES= mmap_sanity.c
50
51 LIBLUSTREAPI := $(top_builddir)/lustre/utils/liblustreapi.a
52 ll_getstripe_info_LDADD=$(LIBLUSTREAPI)
53 multiop_LDADD=$(LIBLUSTREAPI)
54
55 if MPITESTS
56 LAM_LD_FLAGS=-L/opt/lam/lib -lmpi -llam -lpthread
57 write_append_truncate_SOURCES=write_append_truncate.c
58 write_append_truncate_LDADD=$(LAM_LD_FLAGS)
59 createmany_mpi_SOURCES=createmany-mpi.c
60 createmany_mpi_LDADD=$(LAM_LD_FLAGS)
61 parallel_grouplock_SOURCES=parallel_grouplock.c lp_utils.c
62 parallel_grouplock_LDADD=$(LAM_LD_FLAGS)
63 endif
64
65 #copy_attr_LDADD= -lattr