diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2020-09-23 03:01:14 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2020-09-23 03:01:14 +0000 |
commit | 5028ea32d646a2483ac4853aad5d5c935d84e9f4 (patch) | |
tree | 37cf5226e58aeb0f6e29f294642ef46e4b847581 /etc | |
parent | ab2032371edc4a656ddbdfc0f2411b6ee6e2b7e9 (diff) | |
download | src-test2-5028ea32d646a2483ac4853aad5d5c935d84e9f4.tar.gz src-test2-5028ea32d646a2483ac4853aad5d5c935d84e9f4.zip |
cp: add some basic tests
There are some tests available in the NetBSD test suite, but we don't
currently pass all of those; further investigation will go into that. For
now, just add a basic test as well as a test that copies from /dev/null to a
file.
The /dev/null test confirms that the file gets created if it's empty, then
that it truncates the file if it's non-empty. This matches some usage that
was previously employed in the build and was replaced in r366042 by a
simpler shell construct.
I will also plan on coming back to expand these in due time.
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=366059
Diffstat (limited to 'etc')
-rw-r--r-- | etc/mtree/BSD.tests.dist | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/mtree/BSD.tests.dist b/etc/mtree/BSD.tests.dist index 8bc8c7e96ac3..e820ff136f0e 100644 --- a/etc/mtree/BSD.tests.dist +++ b/etc/mtree/BSD.tests.dist @@ -12,6 +12,8 @@ .. chmod .. + cp + .. date .. dd |