summaryrefslogtreecommitdiffstats
path: root/tests/features/glupy.t
blob: a34e48ffec0c9433341e628a3373eaebc1a86270 (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
#!/bin/bash

. $(dirname $0)/../include.rc
. $(dirname $0)/../volume.rc

cleanup;

TEST mkdir -p $B0/glupytest
cat > $B0/glupytest.vol <<EOF
volume vol-posix
    type storage/posix
    option directory $B0/glupytest
end-volume

volume vol-glupy
    type features/glupy
    option module-name helloworld
    subvolumes vol-posix
end-volume
EOF

TEST glusterfs -f $B0/glupytest.vol $M0;

TEST touch $M0/filename;
EXPECT "filename" ls $M0
TEST rm -f $M0/filename;

EXPECT_WITHIN $UMOUNT_TIMEOUT "Y" force_umount $M0;

cleanup;