summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKevin Vigor <kvigor@fb.com>2016-12-19 13:30:24 -0800
committerKevin Vigor <kvigor@fb.com>2016-12-20 08:52:14 -0800
commitffbef42e76e89db2a8e0d9aa9ba7b27dc6bc954e (patch)
treed5d4686293cd8dd2895b4a6e15c5ed12f09d7176 /tests
parent6420af615e1d47a705bfec260f4108c7fe56b27e (diff)
Add TESTER_CFLAGS config option; use to fix proves tests in FB environment
Summary: When building tests using build_tester in FB environment, we need to pass additional library flags. Plumb up to the --with-fbextras option. Test Plan: prove -f --timer ./tests/basic/gfapi/anonymous_fd.t Reviewers: Subscribers: Tasks: Blame Revision: Change-Id: Ibd04851234f9367d6a3192ba2d4440ce3fa4a45b Signed-off-by: Kevin Vigor <kvigor@fb.com> Reviewed-on: http://review.gluster.org/16204 NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Smoke: Gluster Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Shreyas Siravara <sshreyas@fb.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/env.rc.in3
-rw-r--r--tests/include.rc1
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/env.rc.in b/tests/env.rc.in
index 82971c4a8de..87befc3711d 100644
--- a/tests/env.rc.in
+++ b/tests/env.rc.in
@@ -28,3 +28,6 @@ export PYTHON
PYTHONPATH=@BUILD_PYTHON_SITE_PACKAGES@:$PYTHON_PATH
export PYTHONPATH
+
+TESTER_CFLAGS="@TESTER_CFLAGS@"
+export TESTER_CFLAGS
diff --git a/tests/include.rc b/tests/include.rc
index 0c5d2989106..e13bbacc392 100644
--- a/tests/include.rc
+++ b/tests/include.rc
@@ -610,6 +610,7 @@ function build_tester ()
then
cflags="$cflags $(pkg-config glusterfs-api --cflags-only-I --libs-only-L)"
fi
+ cflags="$cflags ${TESTER_CFLAGS}"
$CC -g -o $(dirname $cfile)/$execname $cfile $cflags
}