summaryrefslogtreecommitdiffstats
path: root/tests/include.rc
diff options
context:
space:
mode:
authorEmmanuel Dreyfus <manu@netbsd.org>2014-08-02 05:42:39 +0200
committerHarshavardhana <harsha@harshavardhana.net>2014-08-04 17:41:19 -0700
commit2ff46b74b25cc2e61bfe67c43b31d8f5ca88e4ac (patch)
tree961b5d7904a758449edc2e17346d2885d819c65b /tests/include.rc
parent0e8c537d6f48857b0f3c0ef10ce1c4458e303be8 (diff)
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 <manu@netbsd.org> Signed-off-by: Harshavardhana <harsha@harshavardhana.net> Reviewed-on: http://review.gluster.org/8283 Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'tests/include.rc')
-rw-r--r--tests/include.rc5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/include.rc b/tests/include.rc
index 7f1dda8c53c..0638a22c7bd 100644
--- a/tests/include.rc
+++ b/tests/include.rc
@@ -6,6 +6,7 @@ N1=${N1:=/mnt/nfs/1}; # 1st mount point for NFS
V0=${V0:=patchy}; # volume name to use in tests
V1=${V1:=patchy1}; # volume name to use in tests
B0=${B0:=/d/backends}; # top level of brick directories
+CC=cc
case `uname -s` in
Linux)
H0=${H0:=`hostname --fqdn`}; # hostname
@@ -322,7 +323,9 @@ function build_tester ()
local fname=$(basename "$cfile")
local ext="${fname##*.}"
local execname="${fname%.*}"
- gcc -g -o $(dirname $cfile)/$execname $cfile
+ shift
+ local cflags=$*
+ $CC -g -o $(dirname $cfile)/$execname $cfile $cflags
}
function process_leak_count ()