1# $FreeBSD: head/tools/regression/usr.bin/printf/regress.sh 216311 2010-12-08 22:54:18Z jilles $
| 1# $FreeBSD: head/tools/regression/usr.bin/printf/regress.sh 222418 2011-05-28 11:37:47Z jilles $
|
2 3REGRESSION_START($1) 4
| 2 3REGRESSION_START($1) 4
|
5echo '1..9'
| 5echo '1..11'
|
6 7REGRESSION_TEST(`b', `printf "abc%b%b" "def\n" "\cghi"') 8REGRESSION_TEST(`d', `printf "%d,%5d,%.5d,%0*d,%.*d\n" 123 123 123 5 123 5 123') 9REGRESSION_TEST(`f', `printf "%f,%-8.3f,%f,%f\n" +42.25 -42.25 inf nan')
| 6 7REGRESSION_TEST(`b', `printf "abc%b%b" "def\n" "\cghi"') 8REGRESSION_TEST(`d', `printf "%d,%5d,%.5d,%0*d,%.*d\n" 123 123 123 5 123 5 123') 9REGRESSION_TEST(`f', `printf "%f,%-8.3f,%f,%f\n" +42.25 -42.25 inf nan')
|
| 10REGRESSION_TEST(`l1', `LC_ALL=en_US.ISO8859-1 printf "%d\n" $(printf \"\\344)') 11REGRESSION_TEST(`l2', `LC_ALL=en_US.UTF-8 printf "%d\n" $(printf \"\\303\\244)')
|
10REGRESSION_TEST(`m1', `printf "%c%%%d\0\045\n" abc \"abc') 11REGRESSION_TEST(`m2', `printf "abc\n\cdef"') 12REGRESSION_TEST(`m3', `printf "%%%s\n" abc def ghi jkl') 13REGRESSION_TEST(`m4', `printf "%d,%f,%c,%s\n"') 14REGRESSION_TEST(`m5', `printf -- "-d\n"') 15REGRESSION_TEST(`s', `printf "%.3s,%-5s\n" abcd abc') 16 17REGRESSION_END()
| 12REGRESSION_TEST(`m1', `printf "%c%%%d\0\045\n" abc \"abc') 13REGRESSION_TEST(`m2', `printf "abc\n\cdef"') 14REGRESSION_TEST(`m3', `printf "%%%s\n" abc def ghi jkl') 15REGRESSION_TEST(`m4', `printf "%d,%f,%c,%s\n"') 16REGRESSION_TEST(`m5', `printf -- "-d\n"') 17REGRESSION_TEST(`s', `printf "%.3s,%-5s\n" abcd abc') 18 19REGRESSION_END()
|