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

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

echo $PYTHON_PATH >&2
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 -l /var/log/glusterfs/glupy.log $M0;

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

EXPECT_WITHIN $UMOUNT_TIMEOUT "Y" force_umount $M0;

cleanup;