diff options
Diffstat (limited to 'tests/bugs/shard')
-rw-r--r-- | tests/bugs/shard/bug-shard-discard.c | 4 | ||||
-rw-r--r-- | tests/bugs/shard/bug-shard-discard.t | 2 | ||||
-rw-r--r-- | tests/bugs/shard/bug-shard-zerofill.c | 4 | ||||
-rw-r--r-- | tests/bugs/shard/bug-shard-zerofill.t | 2 | ||||
-rw-r--r-- | tests/bugs/shard/shard-fallocate.c | 4 | ||||
-rw-r--r-- | tests/bugs/shard/zero-flag.t | 2 |
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. |