]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r366059-r366060: cp(1): tests
authorKyle Evans <kevans@FreeBSD.org>
Wed, 30 Sep 2020 00:56:08 +0000 (00:56 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Wed, 30 Sep 2020 00:56:08 +0000 (00:56 +0000)
commit94607fbaa455b789939c3f4ed6f87540ff658916
treedf6da012b4f4aa2eaaf48ade329d33963a9ef318
parent7520f7b140d4270f4b4ae5c9d1f5c77704d0a00c
MFC r366059-r366060: cp(1): tests

r366059:
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.

r366060:
cp: tests: fix weird 20 insertion

This slipped in at the last moment. =(
bin/cp/Makefile
bin/cp/tests/Makefile [new file with mode: 0644]
bin/cp/tests/cp_test.sh [new file with mode: 0755]
etc/mtree/BSD.tests.dist