Whamcloud - gitweb
LU-11742 test: have libtool execute the test binaries 47/33947/6
authorJames Simmons <uja.ornl@yahoo.com>
Fri, 15 Mar 2019 00:38:31 +0000 (20:38 -0400)
committerOleg Drokin <green@whamcloud.com>
Mon, 1 Apr 2019 07:22:02 +0000 (07:22 +0000)
commitf9e5224fbb60bb8b44753b7be10cb06108627f89
treeca9a3ae3080fc2d026a6e71c26023c224bb8cdb3
parent480a221aa7e76f001288c8b1127e14e7922ce497
LU-11742 test: have libtool execute the test binaries

With the move to libtools the ability to run all the lustre
utilities form the source tree was lost. To work around this
the libtool -no-install flag was used to prevent the creation
of the libtool wrappers. While this worked to restore the
source tree sand box development new package breakage is showing.
This is due to the rpath being hard coded into the utilies when
-no-install is used and some platforms disable fixed rpaths.

A very similar problem exist for people who want to use gdb to
debug their projects application. gdb does not work on libtool
wrappers as well so the recommended approach to this type of
problem is to use the libtool execute command. This command
allows the execution of an external non project binary, like
gdb, with the projects real binary application. Apply this
approach to the lustre test suite so commands like kill can
be used to shutdown lustre utilies that are not installed into
the testing environment.

Change-Id: I74112f7250f1c43313d868c0edc7c8815d373002
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/33947
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Chris Horn <hornc@cray.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
debian/control
debian/control.main
lustre.spec.in
lustre/tests/Makefile.am
lustre/tests/sanity-hsm.sh
lustre/utils/Makefile.am
lustre/utils/gss/Makefile.am