freebsd-src/bin/cp
Kyle Evans 5028ea32d6 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
2020-09-23 03:01:14 +00:00
..
tests cp: add some basic tests 2020-09-23 03:01:14 +00:00
cp.1 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
cp.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
extern.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
Makefile cp: add some basic tests 2020-09-23 03:01:14 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
utils.c cp: fall back to read/write if copy_file_range fails 2020-09-11 20:49:36 +00:00