From 2ff46b74b25cc2e61bfe67c43b31d8f5ca88e4ac Mon Sep 17 00:00:00 2001 From: Emmanuel Dreyfus Date: Sat, 2 Aug 2014 05:42:39 +0200 Subject: Regression test portability: arequal-checksum Building arequal-checksum on non Linux systems requires a few adjustments: - use __builtin_alloca() on all platforms - on systems without argp, get it from contrib/standalone-argp (this requires adding cflags support to the build_tester function) - FTW_ACTIONRETVAL option to nftw(3) is GNU libc specific, work around if it does not exist. - md5sum is Linux-specific. Use md5 -n on NetBSD and md5 -q on FreeBSD/Darwin - Use 'cc' as synonymous for all compilers, it can behave as gcc/clang depending on which is default - cleanup tabs/whitespaces BUG: 764655 Change-Id: I9090c17da596fbf00fc1fbd7593163ce8cd3b84c Signed-off-by: Emmanuel Dreyfus Signed-off-by: Harshavardhana Reviewed-on: http://review.gluster.org/8283 Tested-by: Gluster Build System --- tests/basic/afr/self-heal.t | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests/basic/afr/self-heal.t') diff --git a/tests/basic/afr/self-heal.t b/tests/basic/afr/self-heal.t index 60e953b9996..98b4487af5b 100644 --- a/tests/basic/afr/self-heal.t +++ b/tests/basic/afr/self-heal.t @@ -7,7 +7,13 @@ cleanup; #Init AREQUAL_PATH=$(dirname $0)/../../utils -build_tester $AREQUAL_PATH/arequal-checksum.c +CFLAGS="" +test "`uname -s`" != "Linux" && { + CFLAGS="$CFLAGS -I$(dirname $0)/../../../contrib/argp-standalone "; + CFLAGS="$CFLAGS -L$(dirname $0)/../../../contrib/argp-standalone -largp "; + CFLAGS="$CFLAGS -lintl"; +} +build_tester $AREQUAL_PATH/arequal-checksum.c $CFLAGS TEST glusterd TEST pidof glusterd TEST $CLI volume create $V0 replica 2 $H0:$B0/brick{0,1} -- cgit