]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cp: add some basic tests
authorKyle Evans <kevans@FreeBSD.org>
Wed, 23 Sep 2020 03:01:14 +0000 (03:01 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Wed, 23 Sep 2020 03:01:14 +0000 (03:01 +0000)
commit5028ea32d646a2483ac4853aad5d5c935d84e9f4
tree37cf5226e58aeb0f6e29f294642ef46e4b847581
parentab2032371edc4a656ddbdfc0f2411b6ee6e2b7e9
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
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