summaryrefslogtreecommitdiffstats
path: root/tests/bugs/shard
diff options
context:
space:
mode:
authorPoornima G <pgurusid@redhat.com>2016-06-17 01:27:31 -0400
committerRaghavendra Talur <rtalur@redhat.com>2016-07-20 23:15:55 -0700
commit0a8b85e3a8228c399dde807c3ca781a452a1fc90 (patch)
tree2c0d75324ef3bf2339c188929e4cfb9177e8f110 /tests/bugs/shard
parentdcf75f7dac091cdb8ab0af2e8f2ca30f6272f8d1 (diff)
tests: Enable all gfapi test cases
Change-Id: I32bfec4af91348d96dc3e81a9d5c9cad599f821b Bug: 1358594 Signed-off-by: Poornima G <pgurusid@redhat.com> Reviewed-on: http://review.gluster.org/14748 NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Raghavendra Talur <rtalur@redhat.com>
Diffstat (limited to 'tests/bugs/shard')
-rw-r--r--tests/bugs/shard/bug-shard-discard.c4
-rw-r--r--tests/bugs/shard/bug-shard-discard.t2
-rw-r--r--tests/bugs/shard/bug-shard-zerofill.c4
-rw-r--r--tests/bugs/shard/bug-shard-zerofill.t2
-rw-r--r--tests/bugs/shard/shard-fallocate.c4
-rw-r--r--tests/bugs/shard/zero-flag.t2
6 files changed, 9 insertions, 9 deletions
diff --git a/tests/bugs/shard/bug-shard-discard.c b/tests/bugs/shard/bug-shard-discard.c
index d51b07f9314..645bacf7d83 100644
--- a/tests/bugs/shard/bug-shard-discard.c
+++ b/tests/bugs/shard/bug-shard-discard.c
@@ -1,7 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
-#include "glfs.h"
-#include "glfs-handles.h"
+#include <glusterfs/api/glfs.h>
+#include <glusterfs/api/glfs-handles.h>
int
main (int argc, char *argv[])
diff --git a/tests/bugs/shard/bug-shard-discard.t b/tests/bugs/shard/bug-shard-discard.t
index 4c4e9417b5b..a7aff6dff40 100644
--- a/tests/bugs/shard/bug-shard-discard.t
+++ b/tests/bugs/shard/bug-shard-discard.t
@@ -28,7 +28,7 @@ EXPECT '10485760' stat -c %s $M0/foo
gfid_foo=$(get_gfid_string $M0/foo)
-TEST gcc -Wall -O2 -I api/src -o $(dirname $0)/bug-shard-discard $(dirname $0)/bug-shard-discard.c -lgfapi
+TEST build_tester $(dirname $0)/bug-shard-discard.c -lgfapi -Wall -O2
#Call discard on the file at off=7M and len=3M
TEST $(dirname $0)/bug-shard-discard $H0 $V0 /foo 7340032 3145728 `gluster --print-logdir`/glfs-$V0.log
diff --git a/tests/bugs/shard/bug-shard-zerofill.c b/tests/bugs/shard/bug-shard-zerofill.c
index f88c2e2fd02..838a656b3bb 100644
--- a/tests/bugs/shard/bug-shard-zerofill.c
+++ b/tests/bugs/shard/bug-shard-zerofill.c
@@ -1,6 +1,6 @@
#include <stdio.h>
-#include "glfs.h"
-#include "glfs-handles.h"
+#include <glusterfs/api/glfs.h>
+#include <glusterfs/api/glfs-handles.h>
int
main (int argc, char *argv[])
diff --git a/tests/bugs/shard/bug-shard-zerofill.t b/tests/bugs/shard/bug-shard-zerofill.t
index ad508c83236..29b836df323 100644
--- a/tests/bugs/shard/bug-shard-zerofill.t
+++ b/tests/bugs/shard/bug-shard-zerofill.t
@@ -18,7 +18,7 @@ TEST touch $M0/foo
gfid_foo=$(get_gfid_string $M0/foo)
-TEST gcc -Wall -O2 -I api/src -o $(dirname $0)/bug-shard-zerofill $(dirname $0)/bug-shard-zerofill.c -lgfapi
+TEST build_tester $(dirname $0)/bug-shard-zerofill.c -lgfapi -Wall -O2
TEST $(dirname $0)/bug-shard-zerofill $H0 $V0 /foo `gluster --print-logdir`/glfs-$V0.log
# This should ensure /.shard is created on the bricks.
diff --git a/tests/bugs/shard/shard-fallocate.c b/tests/bugs/shard/shard-fallocate.c
index 5365c74ef86..e16620964c9 100644
--- a/tests/bugs/shard/shard-fallocate.c
+++ b/tests/bugs/shard/shard-fallocate.c
@@ -2,8 +2,8 @@
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
-#include "glfs.h"
-#include "glfs-handles.h"
+#include <glusterfs/api/glfs.h>
+#include <glusterfs/api/glfs-handles.h>
enum fallocate_flag {
TEST_FALLOCATE_NONE,
diff --git a/tests/bugs/shard/zero-flag.t b/tests/bugs/shard/zero-flag.t
index fabf83040f0..6996150cd0e 100644
--- a/tests/bugs/shard/zero-flag.t
+++ b/tests/bugs/shard/zero-flag.t
@@ -17,7 +17,7 @@ TEST $CLI volume set $V0 features.shard on
TEST $CLI volume start $V0
TEST $GFS --volfile-id=$V0 --volfile-server=$H0 $M0
-TEST gcc -Wall -O2 -I api/src -o $(dirname $0)/zero-flag $(dirname $0)/shard-fallocate.c -lgfapi
+TEST build_tester $(dirname $0)/shard-fallocate.c -lgfapi -Wall -O2
# On file1 confirm that when fallocate's offset + len > cur file size,
# the new file size will increase.