X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fliblustre%2Ftests%2FMakefile.am;h=07726dd05cda167ea66fda92e8d69c6dfd3b3e82;hp=4b670c683d88d5a7fba77c67893e3a3a22eae5a3;hb=0a859380c36ac24871f221b35042f76c56b04438;hpb=fbb7ead129258897f5a5d5c9ce28d31fbbe5bca2 diff --git a/lustre/liblustre/tests/Makefile.am b/lustre/liblustre/tests/Makefile.am index 4b670c6..07726dd 100644 --- a/lustre/liblustre/tests/Makefile.am +++ b/lustre/liblustre/tests/Makefile.am @@ -1,37 +1,35 @@ ## Liblustre excecutables & libraries Makefile -AM_CPPFLAGS = -I$(SYSIO)/include -I/opt/lam/include $(LLCPPFLAGS) -I$(top_srcdir)/portals/unals +AM_CPPFLAGS = -I$(SYSIO)/include -I/opt/lam/include $(LLCPPFLAGS) -I$(top_srcdir)/lnet/ulnds AM_CFLAGS = $(LLCFLAGS) AM_LIBS = $(LIBEFENCE) $(LIBREADLINE) -LLIB_EXEC= $(top_builddir)/lustre/liblustre/liblustre.a -lcap -lpthread +LLIB_EXEC = $(top_builddir)/lustre/utils/liblustreapi.a $(top_builddir)/lustre/liblustre/liblustre.a $(CAP_LIBS) $(PTHREAD_LIBS) $(ZLIB) if LIBLUSTRE noinst_LIBRARIES = libtestcommon.a if LIBLUSTRE_TESTS -noinst_PROGRAMS = sanity recovery_small replay_single replay_ost_single - -if TESTS -noinst_PROGRAMS += echo_test -endif # TESTS - if MPITESTS -noinst_PROGRAMS += test_lock_cancel +SUBDIRS = mpi endif # MPITESTS +noinst_PROGRAMS = sanity + +if !CRAY_XT3 +noinst_PROGRAMS += recovery_small replay_single replay_ost_single +endif # !CRAY_XT3 + +liblustre_testdir=$(libdir)/lustre/liblustre/tests +liblustre_test_PROGRAMS = $(noinst_PROGRAMS) +liblustre_test_LIBRARIES = $(noinst_LIBRARIES) + endif # LIBLUSTRE_TESTS endif # LIBLUSTRE -libtestcommon_a_SOURCES = test_common.c test_common.h - -echo_test_SOURCES = echo_test.c $(top_srcdir)/lustre/utils/parser.c \ - $(top_srcdir)/lustre/utils/obd.c \ - $(top_srcdir)/lustre/utils/lustre_cfg.c +DIST_SUBDIRS := mpi -echo_test_CFLAGS = $(LL_CFLAGS) -echo_test_LDADD = $(top_builddir)/lustre/liblustre/liblsupport.a $(LIBREADLINE) -lcap -lpthread -echo_test_DEPENDENCIES=$(top_builddir)/lustre/liblustre/liblsupport.a +libtestcommon_a_SOURCES = test_common.c test_common.h sanity_SOURCES = sanity.c sanity_CFLAGS = $(LL_CFLAGS) @@ -52,11 +50,3 @@ replay_ost_single_SOURCES = replay_ost_single.c replay_ost_single_CFLAGS = $(LL_CFLAGS) replay_ost_single_LDADD := libtestcommon.a $(LLIB_EXEC) replay_ost_single_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a - -if MPITESTS -test_lock_cancel_SOURCES = test_lock_cancel.c -test_lock_cancel_CFLAGS = $(LL_CFLAGS) -I/opt/lam/include -test_lock_cancel_LDADD := $(LLIB_EXEC) -L/opt/lam/lib -lmpi -llam -endif - -