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

« back to all changes in this revision

Viewing changes to tests/bugs/bug-978794.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
. $(dirname $0)/../include.rc
 
3
. $(dirname $0)/../volume.rc
 
4
. $(dirname $0)/../fileio.rc
 
5
 
 
6
 
 
7
# This test opens 100 fds and triggers graph switches to check if fsync
 
8
# as part of graph-switch causes crash or not.
 
9
 
 
10
cleanup;
 
11
 
 
12
TEST glusterd
 
13
TEST pidof glusterd
 
14
TEST $CLI volume create $V0 replica 2 $H0:$B0/${V0}{0,1}
 
15
TEST $CLI volume start $V0
 
16
TEST glusterfs --volfile-id=/$V0 --volfile-server=$H0 $M0
 
17
TEST touch $M0/{1..100}
 
18
for i in {1..100}; do fd[$i]=`fd_available`; fd_open ${fd[$i]} 'w' $M0/$i; done
 
19
TEST $CLI volume add-brick $V0 $H0:$B0/${V0}{2,3}
 
20
TEST $CLI volume rebalance $V0 start force
 
21
EXPECT_WITHIN 120 "completed" rebalance_status_field $V0
 
22
TEST cat $M0/{1..100}
 
23
for i in {1..100}; do fd_write ${fd[$i]} 'abc'; done
 
24
TEST $CLI volume add-brick $V0 $H0:$B0/${V0}{4,5}
 
25
TEST $CLI volume rebalance $V0 start force
 
26
EXPECT_WITHIN 120 "completed" rebalance_status_field $V0
 
27
for i in {1..100}; do fd_write ${fd[$i]} 'abc'; done
 
28
TEST cat $M0/{1..100}
 
29
cleanup