From 560bd8671f2f9ae17530ad1d23a209dc95d41f82 Mon Sep 17 00:00:00 2001 From: Aravinda VK Date: Fri, 17 Aug 2018 09:38:39 +0530 Subject: New flag to glusterfsd binary to print libexec dir New CLI option for `glusterfsd` binary to get the path of libexec directory. This helps glusterd2 to detect the installed path of `gsyncd` and other binaries. Usage: `glusterfsd --print-libexecdir` Updates: bz#1193929 Change-Id: I8c1a74afd9acec7ee7bd3deabed9d9f20fe3fb5f Signed-off-by: Aravinda VK --- tests/basic/glusterfsd-args.t | 5 +++++ tests/env.rc.in | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 tests/basic/glusterfsd-args.t (limited to 'tests') diff --git a/tests/basic/glusterfsd-args.t b/tests/basic/glusterfsd-args.t new file mode 100644 index 00000000000..2dd84b8c29e --- /dev/null +++ b/tests/basic/glusterfsd-args.t @@ -0,0 +1,5 @@ +#!/bin/bash + +. $(dirname $0)/../include.rc + +EXPECT $GLUSTER_LIBEXECDIR glusterfsd --print-libexecdir diff --git a/tests/env.rc.in b/tests/env.rc.in index f78fe8ffeb5..8d692f7066c 100644 --- a/tests/env.rc.in +++ b/tests/env.rc.in @@ -34,3 +34,6 @@ export PYTHONPATH GLUSTER_CMD_DIR=@sbindir@ export GLUSTER_CMD_DIR + +GLUSTER_LIBEXECDIR=@GLUSTERFS_LIBEXECDIR@ +export GLUSTER_LIBEXECDIR -- cgit