Whamcloud - gitweb
LU-10627 tests: don't use libtool wrapper for applications 35/32835/11
authorJames Simmons <uja.ornl@yahoo.com>
Fri, 27 Jul 2018 23:55:49 +0000 (19:55 -0400)
committerOleg Drokin <green@whamcloud.com>
Mon, 6 Aug 2018 14:36:11 +0000 (14:36 +0000)
It is a common pratice of lustre developers to test within the
lustre tree without actually installing lustre onto the local
node. In order for this to work the test suite needs to use
the binary executables instead of the libtool executable wrappers.
Add in the libtool LDFLAG to prevent the creation of the wrappers
for the lustre utils. Additionally properly set LD_LIBRARY_PATH
to where libtool caches the dynamic libraries.

Change-Id: I9570fcb65b927463076f28c47ecec924602bef4e
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/32835
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Quentin Bouget <quentin.bouget@cea.fr>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/Makefile.am
lustre/tests/test-framework.sh
lustre/utils/Makefile.am
lustre/utils/gss/Makefile.am

index c77958c..1e9f6ec 100644 (file)
@@ -1,6 +1,7 @@
 # Lustre test Makefile
 AM_CFLAGS := -fPIC -D_GNU_SOURCE \
             -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64
+AM_LDFLAGS := -no-install
 
 DIST_SUBDIRS = mpi
 
index 2c580b7..98b107e 100755 (executable)
@@ -45,7 +45,7 @@ LUSTRE=${LUSTRE:-$(cd $(dirname $0)/..; echo $PWD)}
 . $LUSTRE/tests/functions.sh
 . $LUSTRE/tests/yaml.sh
 
-export LD_LIBRARY_PATH=${LUSTRE}/utils:${LD_LIBRARY_PATH}
+export LD_LIBRARY_PATH=${LUSTRE}/utils/.libs:${LUSTRE}/utils:${LD_LIBRARY_PATH}
 
 LUSTRE_TESTS_CFG_DIR=${LUSTRE_TESTS_CFG_DIR:-${LUSTRE}/tests/cfg}
 
index e6d3e91..a574817 100644 (file)
@@ -2,6 +2,7 @@
 
 AM_CFLAGS  := -fPIC -D_GNU_SOURCE \
              -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS=1
+AM_LDFLAGS := -no-install
 
 if TESTS
 EXTRA_PROGRAMS = wirecheck
index f11b3c3..437a2e5 100644 (file)
@@ -3,6 +3,7 @@
 AM_CFLAGS := -fPIC \
             -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS=1 \
             -D_GNU_SOURCE
+AM_LDFLAGS := -no-install
 
 sbin_PROGRAMS = lsvcgssd l_idmap
 
@@ -61,7 +62,6 @@ lsvcgssd_SOURCES = \
         svcgssd_main_loop.c \
         svcgssd_mech2file.c \
         svcgssd_proc.c \
-        \
         cacheio.h \
         svcgssd.h