opnsense-src/sbin/md5/tests
Stefan Eßer 4048460078 sbin/md5: improve compatibility with coreutils -c option
The -c option expects a digest file in either BSD or coreutils format.

The output for matched and mismatched files is identical to that
of the coreutils version.

The review of these changes included test cases that have already
been committed for the functionality that existed before.
Another test script is added to cover the coreutils compatible
extension implemented by this patch.

This commit contains a tests/Makefile that has been cleaned up
compared to the review version, using an implicit rule to apply the
TESTBASE path at build time (and the scripts have been renamed to
have an extension of .SH instead of .sh to trigger this rule).

Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D30812

(cherry picked from commit 84f35b6f86)
(cherry picked from commit c2870e576b)
2021-06-28 18:13:09 +02:00
..
1.inp
1.sha512-p.chk
1.sha512sum-p.chk
2.inp
2.sha512-p.chk
2.sha512sum-p.chk
3.inp
3.sha512-p.chk
3.sha512sum-p.chk
4.inp
4.sha512-p.chk
4.sha512sum-p.chk
5.inp
5.sha512-p.chk
5.sha512sum-p.chk
6.inp
6.sha512-p.chk
6.sha512sum-p.chk
7.inp
7.sha512-p.chk
7.sha512sum-p.chk
8.inp
8.sha512-p.chk
8.sha512sum-p.chk
algorithms.txt
bsd-c-test.SH
bsd-p-test.SH
bsd-s-test.SH
coreutils-c-test.SH
Makefile
md5.digest
md5sum.digest
rmd160.digest
rmd160sum.digest
self-test.md5.chk
self-test.rmd160.chk
self-test.SH
self-test.sh_inp
self-test.sha1.chk
self-test.sha224.chk
self-test.sha256.chk
self-test.sha384.chk
self-test.sha512.chk
self-test.sha512t256.chk
self-test.skein256.chk
self-test.skein512.chk
self-test.skein1024.chk
sha1.digest
sha1sum.digest
sha224.digest
sha224sum.digest
sha256.digest
sha256sum.digest
sha384.digest
sha384sum.digest
sha512.digest
sha512sum.digest
sha512t256.digest
sha512t256sum.digest
skein256.digest
skein256sum.digest
skein512.digest
skein512sum.digest
skein1024.digest
skein1024sum.digest