xref: /freebsd/usr.bin/m4/tests/regress.sh (revision 123af6ec70016f5556da5972d4d63c7d175c06d3)
1# $FreeBSD$
2
3echo 1..21
4
5test_m4() {
6	m4 "${@}" 2>&1 | sed -e "s,${SRCDIR}/,,g"
7}
8
9REGRESSION_START($1)
10
11REGRESSION_TEST(`args', `test_m4 ${SRCDIR}/args.m4')
12REGRESSION_TEST(`args2', `test_m4 ${SRCDIR}/args2.m4')
13REGRESSION_TEST(`comments', `test_m4 ${SRCDIR}/comments.m4')
14REGRESSION_TEST(`esyscmd', `test_m4 ${SRCDIR}/esyscmd.m4')
15REGRESSION_TEST(`eval', `test_m4 ${SRCDIR}/eval.m4')
16REGRESSION_TEST(`ff_after_dnl', `uudecode -o /dev/stdout ${SRCDIR}/ff_after_dnl.m4.uu | m4')
17REGRESSION_TEST(`gnueval', `test_m4 -g ${SRCDIR}/gnueval.m4')
18REGRESSION_TEST(`gnuformat', `test_m4 -g ${SRCDIR}/gnuformat.m4')
19REGRESSION_TEST(`gnupatterns', `test_m4 -g ${SRCDIR}/gnupatterns.m4')
20REGRESSION_TEST(`gnupatterns2', `test_m4 -g ${SRCDIR}/gnupatterns2.m4')
21REGRESSION_TEST(`gnuprefix', `test_m4 -P ${SRCDIR}/gnuprefix.m4 2>&1')
22REGRESSION_TEST(`gnusofterror', `test_m4 -g ${SRCDIR}/gnusofterror.m4 2>&1')
23REGRESSION_TEST(`gnutranslit2', `test_m4 -g ${SRCDIR}/translit2.m4')
24REGRESSION_TEST(`includes', `test_m4 -I${SRCDIR} ${SRCDIR}/includes.m4')
25REGRESSION_TEST(`m4wrap3', `test_m4 ${SRCDIR}/m4wrap3.m4')
26REGRESSION_TEST(`patterns', `test_m4 ${SRCDIR}/patterns.m4')
27REGRESSION_TEST(`quotes', `test_m4 ${SRCDIR}/quotes.m4 2>&1')
28REGRESSION_TEST(`strangequotes', `uudecode -o /dev/stdout ${SRCDIR}/strangequotes.m4.uu | m4')
29REGRESSION_TEST(`redef', `test_m4 ${SRCDIR}/redef.m4')
30REGRESSION_TEST(`translit', `test_m4 ${SRCDIR}/translit.m4')
31REGRESSION_TEST(`translit2', `test_m4 ${SRCDIR}/translit2.m4')
32
33REGRESSION_END()
34