test-ls.sh: get the group and gid from the filesystem.
test-ls.sh: get the group and gid from the filesystem.

Get the expected gid from the filesystem, not "id", because on some
platforms (BSDs, etc.) a new path's gid is taken from the parent
directory, not the effective gid.

Thanks to Thomas Klausner <tk@giga.or.at> for reporting the problem
and to him and Greg Troxel <gdt@ir.bbn.com> for helping craft the
solution.

Signed-off-by: Rob Browning <1dc5917c2adeeba13d1ef33dbb40691a1b67cc65@defaultvalue.org>

tjanez/bup,pombredanne/bup,tjanez/bup,gevaerts/bup,ToxicFrog/bup,ToxicFrog/bup,tjanez/bup,jbaber/bup,pombredanne/bup,mhoeher/bup,mhoeher/bup,ToxicFrog/bup,gevaerts/bup,jbaber/bup,jbaber/bup,pombredanne/bup,pombredanne/bup,ToxicFrog/bup,jbaber/bup,mhoeher/bup,tjanez/bup,mhoeher/bup,gevaerts/bup,mhoeher/bup,tjanez/bup,pombredanne/bup,gevaerts/bup,gevaerts/bup,mhoeher/bup,ToxicFrog/bup,jbaber/bup,tjanez/bup,pombredanne/bup,jbaber/bup