X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;ds=sidebyside;f=lustre%2Fliblustre%2Ftests%2FMakefile.am;h=07726dd05cda167ea66fda92e8d69c6dfd3b3e82;hb=baf66299afc52f5103389184a53ea9ced38fb0ad;hp=a8a55453a7360732cc1dd059ea4c261af0ffed91;hpb=b25c4c4344a90c317853a30ca267ac65f1233b53;p=fs%2Flustre-release.git diff --git a/lustre/liblustre/tests/Makefile.am b/lustre/liblustre/tests/Makefile.am index a8a5545..07726dd 100644 --- a/lustre/liblustre/tests/Makefile.am +++ b/lustre/liblustre/tests/Makefile.am @@ -1,53 +1,52 @@ ## 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) -LIBS = $(LIBEFENCE) $(LIBREADLINE) +AM_LIBS = $(LIBEFENCE) $(LIBREADLINE) -LLIB_EXEC= ../liblustre.a -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 -def_tests = echo_test sanity recovery_small replay_single replay_ost_single +if LIBLUSTRE_TESTS if MPITESTS -noinst_PROGRAMS = $(def_tests) test_lock_cancel -else -noinst_PROGRAMS = $(def_tests) -endif +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 +DIST_SUBDIRS := mpi -echo_test_SOURCES = echo_test.c ../../utils/parser.c ../../utils/obd.c ../../utils/lustre_cfg.c -echo_test_CFLAGS = $(LL_CFLAGS) -echo_test_LDADD = ../liblsupport.a $(LIBREADLINE) -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) -sanity_LDADD := ./libtestcommon.a $(LLIB_EXEC) -sanity_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a ./libtestcommon.a +sanity_LDADD := libtestcommon.a $(LLIB_EXEC) +sanity_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a recovery_small_SOURCES = recovery_small.c recovery_small_CFLAGS = $(LL_CFLAGS) -recovery_small_LDADD := ./libtestcommon.a $(LLIB_EXEC) -recovery_small_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a +recovery_small_LDADD := libtestcommon.a $(LLIB_EXEC) +recovery_small_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a replay_single_SOURCES = replay_single.c replay_single_CFLAGS = $(LL_CFLAGS) -replay_single_LDADD := ./libtestcommon.a $(LLIB_EXEC) -replay_single_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a +replay_single_LDADD := libtestcommon.a $(LLIB_EXEC) +replay_single_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a 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 - -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 - - +replay_ost_single_LDADD := libtestcommon.a $(LLIB_EXEC) +replay_ost_single_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a