freebsd-dev/sbin/md5/tests/Makefile
Stefan Eßer 884fc5527a sbin/md5: add tests
While the correctness of the supported hash algorithms can be tested
with the built-in self-test feature, these test cases are meant to
detect changes in the output format.

A follow-up commit will	improve	the compatibility with the coreutils
versions of the hash programs, and these tests should detect any
unintended side-effects	of such	a change on existing functionality.
2021-06-25 08:51:40 +02:00

42 lines
848 B
Makefile

# $FreeBSD$
.include <bsd.own.mk>
PACKAGE= tests
TEST_DIR= ${SRCTOP}/sbin/md5/tests
.PATH: ${TEST_DIR}
FILESGROUPS+= FILESinputs
FILESinputsPACKAGE= ${PACKAGE}
FILESinputsDIR= ${TESTSDIR}
FILESinputs!= echo ${TEST_DIR}/*.inp
FILESGROUPS+= FILESchkfiles
FILESchkfilesPACKAGE= ${PACKAGE}
FILESchkfilesDIR= ${TESTSDIR}
FILESchkfiles!= echo ${TEST_DIR}/*.chk
FILESGROUPS+= FILESdigests
FILESdigestsPACKAGE= ${PACKAGE}
FILESdigestsDIR= ${TESTSDIR}
FILESdigests!= echo ${TEST_DIR}/*.digest
FILESGROUPS+= FILESparam
FILESparamPACKAGE= ${PACKAGE}
FILESparamDIR= ${TESTSDIR}
FILESparam!= echo ${TEST_DIR}/*.txt
PLAIN_TESTS_SH+= self-test
PLAIN_TESTS_SH+= bsd-c-test
PLAIN_TESTS_SH+= bsd-p-test
PLAIN_TESTS_SH+= bsd-s-test
.SUFFIXES: .SH
.SH.sh:
sed 's|%%TESTSBASE%%|${TESTSBASE}|g' ${.ALLSRC} > ${.TARGET}
.include <bsd.test.mk>