blob: 1f0e817f551fb7aa3aaf6059acfb18331a1ee426 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
#!/bin/bash
# Following tests involves geo-rep regresseion tests with changelog
# as change detector, and rsync as sync mode on both fuse and nfs mount
. $(dirname $0)/../include.rc
. $(dirname $0)/../volume.rc
. $(dirname $0)/geo-rep-helper.rc
. $(dirname $0)/geo-rep-config.rc
cleanup;
AREQUAL_PATH=$(dirname $0)/../utils
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
setup_georep ;
# start of tests on fuse mount
TEST glusterfs -s $H0 --volfile-id $GMV0 $M0
TEST changelog_mode_test "create" $M0
TEST changelog_mode_test "chmod" $M0
TEST changelog_mode_test "chown" $M0
TEST changelog_mode_test "chgrp" $M0
#TEST changelog_mode_test "rename" $M0
TEST changelog_mode_test "truncate" $M0
TEST changelog_mode_test "symlink" $M0
#TEST changelog_mode_test "hardlink" $M0
#TEST changelog_mode_remove_test $M0
# start of tests on nfs mount
TEST mount -t nfs -o vers=3,nolock $H0:$GMV0 $N0
TEST changelog_mode_test "create" $N0
TEST changelog_mode_test "chmod" $N0
TEST changelog_mode_test "chown" $N0
TEST changelog_mode_test "chgrp" $N0
#TEST changelog_mode_test "rename" $N0
TEST changelog_mode_test "truncate" $N0
TEST changelog_mode_test "symlink" $N0
#TEST changelog_mode_test "hardlink" $N0
#TEST changelog_mode_remove_test $N0
TEST rm -rf $AREQUAL_PATH/arequal-checksum
cleanup_georep;
|