summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2017-07-17 21:01:10 +0000
committerngie <ngie@FreeBSD.org>2017-07-17 21:01:10 +0000
commitf7020a1f1033054aab0bef09d1e3dae303e98870 (patch)
tree35b95522f33391ccc9016e9082a7fa2421c937b4 /etc
parent9bd090318b6c6e862f3827defa41022bb8242a82 (diff)
downloadFreeBSD-src-f7020a1f1033054aab0bef09d1e3dae303e98870.zip
FreeBSD-src-f7020a1f1033054aab0bef09d1e3dae303e98870.tar.gz
MFC r319834,r319841,r320723,r320724:
r319834: Write up some basic tests for readlink(1) The tests exercise -f (f_flag), -n (n_flag), and no arguments (basic). r319841: Add initial tests for stat(1) Testcases for -H, -L, and -f haven't been implemented yet, in part due to additional complexity needed to validate the features: * -H and -f will require an external "helper" program to display/modify the state/permissions for a given path. * -L is being covered partially via the -n testcase today. r320723: Use %e instead of %d with x_output_date(..) stat -x doesn't 0-fill days so %d is inappropriate. %e is correct. MFC with: r319841 r320724: :l_flag:: be more aggressive when normalizing whitespace Save output from ls -ldT and stat -l, then normalize all repeating whitespace using sed to single column spaces. This makes the test flexible with single-digit days, etc, similar to r320723. This approach is just a bit more of a hammer approach because of how the columns are ordered/spaced in both ls and stat. MFC with: r319841
Diffstat (limited to 'etc')
-rw-r--r--etc/mtree/BSD.tests.dist2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/mtree/BSD.tests.dist b/etc/mtree/BSD.tests.dist
index 21d020d..fdb1fc5 100644
--- a/etc/mtree/BSD.tests.dist
+++ b/etc/mtree/BSD.tests.dist
@@ -650,6 +650,8 @@
..
soelim
..
+ stat
+ ..
tail
..
tar
OpenPOWER on IntegriCloud