xref: /freebsd/usr.bin/file2c/tests/regress.sh (revision d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf)
1*3a92d97fSJulio Merino
2*3a92d97fSJulio Merinoecho 1..9
3*3a92d97fSJulio Merino
4*3a92d97fSJulio MerinoREGRESSION_START($1)
5*3a92d97fSJulio Merino
6*3a92d97fSJulio MerinoREGRESSION_TEST(`1', `head -c 13 ${SRCDIR}/regress.in | file2c')
7*3a92d97fSJulio MerinoREGRESSION_TEST(`2', `head -c 26 ${SRCDIR}/regress.in | file2c PREFIX')
8*3a92d97fSJulio MerinoREGRESSION_TEST(`3', `head -c 39 ${SRCDIR}/regress.in | file2c PREFIX SUFFIX')
9*3a92d97fSJulio MerinoREGRESSION_TEST(`4', `head -c 52 ${SRCDIR}/regress.in | file2c -x')
10*3a92d97fSJulio MerinoREGRESSION_TEST(`5', `head -c 65 ${SRCDIR}/regress.in | file2c -n -1')
11*3a92d97fSJulio Merino
12*3a92d97fSJulio MerinoREGRESSION_TEST(`6', `head -c  7 ${SRCDIR}/regress.in | file2c -n 1 P S')
13*3a92d97fSJulio MerinoREGRESSION_TEST(`7', `head -c 14 ${SRCDIR}/regress.in | file2c -n 2 -x "P S"')
14*3a92d97fSJulio MerinoREGRESSION_TEST(`8', `head -c 21 ${SRCDIR}/regress.in | file2c -n 16 P -x S')
15*3a92d97fSJulio Merino
16*3a92d97fSJulio MerinoREGRESSION_TEST(`9', `file2c "const char data[] = {" ", 0};" <${SRCDIR}/regress.in')
17*3a92d97fSJulio Merino
18*3a92d97fSJulio MerinoREGRESSION_END()
19