~ubuntu-branches/debian/sid/glusterfs/sid

« back to all changes in this revision

Viewing changes to tests/bugs/bug-872923.t

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2014-04-22 10:00:41 UTC
  • mfrom: (1.3.25)
  • Revision ID: package-import@ubuntu.com-20140422100041-6mur2ttyvb8zzpfq
Tags: 3.5.0-1
* New upstream release.
  - Rewrite patch 01-spelling-error.
  - Adjust lintian overrides.
  - Install new files.
  - The offical tarball is not properly generated, hack it around.
  - Add symlink from fusermount-glusterfs manpage to mount.glusterfs.
  - Move gsync-sync-gfid from /usr/share to /usr/lib.
  - Add benchmarking directory.
* Remove old versioned build dependencies and build depend on libglib2.0-dev.
* Add lintian override for possible-gpl-code-linked-with-openssl. It is the
  same false positive like with the gluster-server package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
. $(dirname $0)/../include.rc
 
4
 
 
5
cleanup;
 
6
 
 
7
TEST glusterd
 
8
TEST pidof glusterd
 
9
TEST $CLI volume info
 
10
TEST $CLI volume create $V0 replica 2 $H0:$B0/brick0 $H0:$B0/brick1
 
11
TEST $CLI volume start $V0
 
12
sleep 5
 
13
 
 
14
mount -t nfs -o vers=3,nolock `hostname`:/$V0 $N0
 
15
 
 
16
cd $N0
 
17
mkdir test_hardlink_self_heal;
 
18
cd test_hardlink_self_heal;
 
19
 
 
20
for i in `seq 1 5`;
 
21
do
 
22
    mkdir dir.$i;
 
23
    for j in `seq 1 10`;
 
24
    do
 
25
        dd if=/dev/zero of=dir.$i/file.$j bs=1k count=$j > /dev/null 2>&1;
 
26
    done;
 
27
done;
 
28
 
 
29
cd ..
 
30
kill  `cat /var/lib/glusterd/vols/$V0/run/$H0-d-backends-brick0.pid`
 
31
sleep 2
 
32
 
 
33
 
 
34
cd test_hardlink_self_heal;
 
35
 
 
36
RET=0
 
37
for i in `seq 1 5`;
 
38
do
 
39
    for j in `seq 1 10`;
 
40
    do
 
41
        ln dir.$i/file.$j dir.$i/link_file.$j > /dev/null 2>&1;
 
42
        RET=$?
 
43
        if [ $RET -ne 0 ]; then
 
44
           break;
 
45
        fi
 
46
    done ;
 
47
    if [ $RET -ne 0 ]; then
 
48
        break;
 
49
    fi
 
50
done;
 
51
 
 
52
cd
 
53
umount $N0
 
54
 
 
55
EXPECT "0" echo $RET;
 
56
 
 
57
cleanup;