From e5102d0636177bbe4dd58b91b91cfe10fabab877 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 7 Feb 2016 17:01:12 +0100 Subject: [PATCH] Add test that exercises attribute code. This test would fail without the previous fix that changed the shifted integers to 64 bit. --- t/t0004-server.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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" -- 2.39.5