summaryrefslogtreecommitdiffstats
path: root/tests/features/glupy.t
blob: d9afd955946b121f2997f04de1377c9a41c07007 (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
#!/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 $LOGDIR/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;

#G_TESTDEF_TEST_STATUS_NETBSD7=BAD_TEST,BUG=000000
#G_TESTDEF_TEST_STATUS_CENTOS6=BAD_TEST,BUG=000000