X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=t%2Ft0004-server.sh;h=6a8e5bf1d77522658674a27e5370df26527f5c11;hp=a14a04e9d05bbf33034b8630e05141aa9632a33d;hb=80541d0f045e1ed57332800eff9832e0a5b72ddf;hpb=1a8e3628040a94a8c06027335962a6cb2f827a63 diff --git a/t/t0004-server.sh b/t/t0004-server.sh index a14a04e9..6a8e5bf1 100755 --- a/t/t0004-server.sh +++ b/t/t0004-server.sh @@ -28,7 +28,7 @@ declare -a commands=() cmdline=() required_objects=() good=() bad=() i=0 commands[$i]="help" cmdline[$i]="help" -good[$i]='help server ----' +good[$i]='help ----' let i++ commands[$i]="init" @@ -45,9 +45,33 @@ bad[$i]='.' let i++ commands[$i]="ls_ogg" required_objects[$i]='ogg_afh' -cmdline[$i]="ls -lv ${oggs_base[@]}" +cmdline[$i]="ls -l=v -b ${oggs_base[@]}" good[$i]='^basename:' +let i++ +commands[$i]='addatt' +required_objects[$i]='' +cmdline[$i]="addatt $(seq 64 | tr '\n' ' ')" +bad[$i]='.' + +let i++ +commands[$i]='lsatt' +required_objects[$i]='' +cmdline[$i]="lsatt" +good[$i]='^1$' + +let i++ +commands[$i]='setatt' +required_objects[$i]='ogg_afh' +cmdline[$i]="setatt 33+ ${oggs[@]}" +bad[$i]='.' + +let i++ +commands[$i]="ls" +required_objects[$i]='ogg_afh' +cmdline[$i]="ls -l=v ${oggs[@]}" +good[$i]='^attributes_txt: 33' + let i++ commands[$i]="term" cmdline[$i]="term" @@ -84,6 +108,7 @@ EOF --user-list "$user_list" \ --http-port "$stream_port" \ --dccp-port "$stream_port" + (($? != 0)) && exit 1 fi for ((i=0; i < ${#commands[@]}; i++)); do