regress.sh revision 263227
195145Sjmallett# $FreeBSD: head/usr.bin/file2c/tests/regress.sh 263227 2014-03-16 08:04:06Z jmmv $ 295145Sjmallett 3146234Smarcelecho 1..9 4137587Snik 598759SjmallettREGRESSION_START($1) 695145Sjmallett 7263227SjmmvREGRESSION_TEST(`1', `head -c 13 ${SRCDIR}/regress.in | file2c') 8263227SjmmvREGRESSION_TEST(`2', `head -c 26 ${SRCDIR}/regress.in | file2c PREFIX') 9263227SjmmvREGRESSION_TEST(`3', `head -c 39 ${SRCDIR}/regress.in | file2c PREFIX SUFFIX') 10263227SjmmvREGRESSION_TEST(`4', `head -c 52 ${SRCDIR}/regress.in | file2c -x') 11263227SjmmvREGRESSION_TEST(`5', `head -c 65 ${SRCDIR}/regress.in | file2c -n -1') 1298759Sjmallett 13263227SjmmvREGRESSION_TEST(`6', `head -c 7 ${SRCDIR}/regress.in | file2c -n 1 P S') 14263227SjmmvREGRESSION_TEST(`7', `head -c 14 ${SRCDIR}/regress.in | file2c -n 2 -x "P S"') 15263227SjmmvREGRESSION_TEST(`8', `head -c 21 ${SRCDIR}/regress.in | file2c -n 16 P -x S') 16146234Smarcel 17263227SjmmvREGRESSION_TEST(`9', `file2c "const char data[] = {" ", 0};" <${SRCDIR}/regress.in') 18146234Smarcel 1998759SjmallettREGRESSION_END() 20