41a8d8c295
I'm starting with the easy cases. The leftovers need to be looked at a bit more closely. Note that this change _does_ modify the code of the old tests. This is required in order to allow the code to locate the data files in the source directory instead of the current directory, because Kyua automatically changes the latter to a temporary directory. Also note that at least one test is known to be broken here. Actually, the test is not really broken: it's marked as a TODO but unfortunately Kyua's TAP parser currently does not understand that. Will have to be fixed separately.
34 lines
1.5 KiB
Bash
34 lines
1.5 KiB
Bash
# $FreeBSD$
|
|
|
|
echo 1..21
|
|
|
|
test_m4() {
|
|
m4 "${@}" 2>&1 | sed -e "s,${SRCDIR}/,,g"
|
|
}
|
|
|
|
REGRESSION_START($1)
|
|
|
|
REGRESSION_TEST(`args', `test_m4 ${SRCDIR}/args.m4')
|
|
REGRESSION_TEST(`args2', `test_m4 ${SRCDIR}/args2.m4')
|
|
REGRESSION_TEST(`comments', `test_m4 ${SRCDIR}/comments.m4')
|
|
REGRESSION_TEST(`esyscmd', `test_m4 ${SRCDIR}/esyscmd.m4')
|
|
REGRESSION_TEST(`eval', `test_m4 ${SRCDIR}/eval.m4')
|
|
REGRESSION_TEST(`ff_after_dnl', `uudecode -o /dev/stdout ${SRCDIR}/ff_after_dnl.m4.uu | m4')
|
|
REGRESSION_TEST(`gnueval', `test_m4 -g ${SRCDIR}/gnueval.m4')
|
|
REGRESSION_TEST(`gnuformat', `test_m4 -g ${SRCDIR}/gnuformat.m4')
|
|
REGRESSION_TEST(`gnupatterns', `test_m4 -g ${SRCDIR}/gnupatterns.m4')
|
|
REGRESSION_TEST(`gnupatterns2', `test_m4 -g ${SRCDIR}/gnupatterns2.m4')
|
|
REGRESSION_TEST(`gnuprefix', `test_m4 -P ${SRCDIR}/gnuprefix.m4 2>&1')
|
|
REGRESSION_TEST(`gnusofterror', `test_m4 -g ${SRCDIR}/gnusofterror.m4 2>&1')
|
|
REGRESSION_TEST(`gnutranslit2', `test_m4 -g ${SRCDIR}/translit2.m4')
|
|
REGRESSION_TEST(`includes', `test_m4 -I${SRCDIR} ${SRCDIR}/includes.m4')
|
|
REGRESSION_TEST(`m4wrap3', `test_m4 ${SRCDIR}/m4wrap3.m4')
|
|
REGRESSION_TEST(`patterns', `test_m4 ${SRCDIR}/patterns.m4')
|
|
REGRESSION_TEST(`quotes', `test_m4 ${SRCDIR}/quotes.m4 2>&1')
|
|
REGRESSION_TEST(`strangequotes', `uudecode -o /dev/stdout ${SRCDIR}/strangequotes.m4.uu | m4')
|
|
REGRESSION_TEST(`redef', `test_m4 ${SRCDIR}/redef.m4')
|
|
REGRESSION_TEST(`translit', `test_m4 ${SRCDIR}/translit.m4')
|
|
REGRESSION_TEST(`translit2', `test_m4 ${SRCDIR}/translit2.m4')
|
|
|
|
REGRESSION_END()
|