"Fossies" - the Fresh Open Source Software Archive

Member "glusterfs-6.9/tests/bugs/core/949327.t" (23 Apr 2020, 408 Bytes) of package /linux/misc/glusterfs-6.9.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/bash
    2 
    3 . $(dirname $0)/../../include.rc
    4 . $(dirname $0)/../../volume.rc
    5 
    6 cleanup;
    7 
    8 function tmp_file_count()
    9 {
   10     echo $(ls -lh /tmp/tmp.* 2>/dev/null |  wc -l)
   11 }
   12 
   13 
   14 old_count=$(tmp_file_count);
   15 TEST glusterd
   16 TEST pidof glusterd
   17 TEST $CLI volume create $V0 replica 2 $H0:$B0/${V0}0 $H0:$B0/${V0}1
   18 TEST $CLI volume start $V0
   19 new_count=$(tmp_file_count);
   20 
   21 TEST [ "$old_count" -eq "$new_count" ]
   22 
   23 cleanup