Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/usr.sbin/mtree ignore directory sizes



details:   https://anonhg.NetBSD.org/src/rev/f23663f8775b
branches:  trunk
changeset: 784675:f23663f8775b
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Feb 05 16:49:42 2013 +0000

description:
ignore directory sizes

diffstat:

 tests/usr.sbin/mtree/mtree_d_create.out |  10 +++++-----
 tests/usr.sbin/mtree/t_mtree.sh         |   5 +++--
 2 files changed, 8 insertions(+), 7 deletions(-)

diffs (67 lines):

diff -r 2a58907add6f -r f23663f8775b tests/usr.sbin/mtree/mtree_d_create.out
--- a/tests/usr.sbin/mtree/mtree_d_create.out   Tue Feb 05 16:39:26 2013 +0000
+++ b/tests/usr.sbin/mtree/mtree_d_create.out   Tue Feb 05 16:49:42 2013 +0000
@@ -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 @@
                 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/2
-2               type=dir nlink=2 size=0
+2               type=dir nlink=2
 # ./a/2
 ..
 
@@ -42,7 +42,7 @@
 
 
 # ./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 \
diff -r 2a58907add6f -r f23663f8775b tests/usr.sbin/mtree/t_mtree.sh
--- a/tests/usr.sbin/mtree/t_mtree.sh   Tue Feb 05 16:39:26 2013 +0000
+++ b/tests/usr.sbin/mtree/t_mtree.sh   Tue Feb 05 16:49:42 2013 +0000
@@ -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 @@
                /^#     machine: /s/:.*/: x/
                /^#        tree: /s/:.*/: x/
                /^#        date: /s/:.*/: x/
-               '
+               ' \
+           -e '/type=dir/s/ size=[0-9]*//'
 }
 
 h_check()



Home | Main Index | Thread Index | Old Index