From: Andre Noll Date: Sun, 7 Feb 2016 16:01:12 +0000 (+0100) Subject: Add test that exercises attribute code. X-Git-Tag: v0.5.6~41^2~1 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=e5102d0636177bbe4dd58b91b91cfe10fabab877;p=paraslash.git Add test that exercises attribute code. This test would fail without the previous fix that changed the shifted integers to 64 bit. --- diff --git a/t/t0004-server.sh b/t/t0004-server.sh index 76128512..3cb37d42 100755 --- a/t/t0004-server.sh +++ b/t/t0004-server.sh @@ -48,6 +48,30 @@ required_objects[$i]='ogg_afh' cmdline[$i]="ls -l=v ${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 -p ${oggs[@]}" +good[$i]='^attributes_txt: 33' + let i++ commands[$i]="term" cmdline[$i]="term"