glusterfs

Форк
0
/
volfile-with-all-graph-syntax.t 
73 строки · 1.4 Кб
1
#!/bin/bash
2

3
. $(dirname $0)/../include.rc
4
. $(dirname $0)/../volume.rc
5

6
cleanup;
7

8
TEST mkdir -p $B0/test
9
cat > $B0/test.vol <<EOF
10
volume test
11
  type storage/posix
12
  option directory $B0/test
13
  option multiple-line-string "I am
14
 testing a feature of volfile graph.l"
15
  option single-line-string "this is running on $H0"
16
  option option-with-back-tick `date +%Y%M%d`
17
end-volume
18
EOF
19

20
# This should succeed, but it will have some unknown options, which is OK.
21
TEST glusterfs -f $B0/test.vol $M0;
22

23
EXPECT_WITHIN $UMOUNT_TIMEOUT "Y" force_umount $M0;
24

25
# This should not succeed
26
cat > $B0/test.vol <<EOF
27
volume test
28
  type storage/posix
29
EOF
30
TEST ! glusterfs -f $B0/test.vol $M0;
31

32

33
# This should not succeed
34
cat > $B0/test.vol <<EOF
35
  type storage/posix
36
end-volume
37
EOF
38
TEST ! glusterfs -f $B0/test.vol $M0;
39

40
# This should not succeed
41
cat > $B0/test.vol <<EOF
42
volume test
43
end-volume
44
EOF
45
TEST ! glusterfs -f $B0/test.vol $M0;
46

47
# This should not succeed
48
cat > $B0/test.vol <<EOF
49
volume test
50
  option test and test
51
end-volume
52
EOF
53
TEST ! glusterfs -f $B0/test.vol $M0;
54

55
# This should not succeed
56
cat > $B0/test.vol <<EOF
57
volume test
58
  subvolumes
59
end-volume
60
EOF
61
TEST ! glusterfs -f $B0/test.vol $M0;
62

63
# This should not succeed
64
cat > $B0/test.vol <<EOF
65
volume test
66
  type storage/posix
67
  new-option key value
68
  option directory $B0/test
69
end-volume
70
EOF
71
TEST ! glusterfs -f $B0/test.vol $M0;
72

73
cleanup;
74

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.