ignore directory sizes

This commit is contained in:
christos 2013-02-05 16:49:42 +00:00
parent 4c0c51981c
commit bd77daa189
2 changed files with 8 additions and 7 deletions

View File

@ -5,7 +5,7 @@
# .
/set type=file nlink=1
. type=dir nlink=4 size=240
. type=dir nlink=4
a.symlink.1 type=link size=8 link=a.file.1
top.dangling \
type=link size=11 link=nonexistent
@ -15,7 +15,7 @@
type=link size=1 link=b
# ./a
a type=dir nlink=4 size=200
a type=dir nlink=4
a.file.1 size=18 \
sha256=bdbea62f7ccdf862f22254ea871d523845250010d5f233896e800142a859eef2
a.file.2 size=18 \
@ -25,7 +25,7 @@ a type=dir nlink=4 size=200
sha256=784fd6b95fe5054d87bf268de51dea043031c5e985f668d4f51e1c759b0f9333
# ./a/1
1 type=dir nlink=2 size=40
1 type=dir nlink=2
a1.file.1 size=21 \
sha256=a062cd272facdd38c4fdeff2a18947b28c99a28a8fe51f88468978740382e592
# ./a/1
@ -33,7 +33,7 @@ a type=dir nlink=4 size=200
# ./a/2
2 type=dir nlink=2 size=0
2 type=dir nlink=2
# ./a/2
..
@ -42,7 +42,7 @@ a type=dir nlink=4 size=200
# ./b
b type=dir nlink=2 size=120
b type=dir nlink=2
b.file.1 nlink=2 size=18 \
sha256=5754b0d97a8238ea0e495ab871667dcab8f1d684e323290ae76f70c47de18998
b.file.2 nlink=2 size=18 \

View File

@ -1,4 +1,4 @@
# $NetBSD: t_mtree.sh,v 1.5 2013/01/02 18:11:44 christos Exp $
# $NetBSD: t_mtree.sh,v 1.6 2013/02/05 16:49:42 christos Exp $
#
# Copyright (c) 2009, 2012 The NetBSD Foundation, Inc.
# All rights reserved.
@ -36,7 +36,8 @@ h_postprocess()
/^# machine: /s/:.*/: x/
/^# tree: /s/:.*/: x/
/^# date: /s/:.*/: x/
'
' \
-e '/type=dir/s/ size=[0-9]*//'
}
h_check()