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