diff options
| author | Emmanuel Dreyfus <manu@netbsd.org> | 2014-08-02 05:42:39 +0200 |
|---|---|---|
| committer | Harshavardhana <harsha@harshavardhana.net> | 2014-08-04 17:41:19 -0700 |
| commit | 2ff46b74b25cc2e61bfe67c43b31d8f5ca88e4ac (patch) | |
| tree | 961b5d7904a758449edc2e17346d2885d819c65b /tests/bugs/bug-1058663.t | |
| parent | 0e8c537d6f48857b0f3c0ef10ce1c4458e303be8 (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/bugs/bug-1058663.t')
| -rw-r--r-- | tests/bugs/bug-1058663.t | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/bugs/bug-1058663.t b/tests/bugs/bug-1058663.t index bf8dc6cabca..168d18ad312 100644 --- a/tests/bugs/bug-1058663.t +++ b/tests/bugs/bug-1058663.t @@ -16,7 +16,7 @@ TEST $CLI volume start $V0; TEST glusterfs --entry-timeout=0 --attribute-timeout=0 -s $H0 --volfile-id $V0 $M0 # compile the test program and run it -gcc $(dirname $0)/bug-1058663.c -o $(dirname $0)/bug-1058663; +$CC $(dirname $0)/bug-1058663.c -o $(dirname $0)/bug-1058663; TEST $(dirname $0)/bug-1058663 $M0/bug-1058663.bin; rm -f $(dirname $0)/M0/bug-1058663.bin; @@ -26,4 +26,3 @@ TEST $CLI volume stop $V0; TEST $CLI volume delete $V0; cleanup; - |
