regress.sh revision 213284
1# $FreeBSD: head/tools/regression/usr.bin/tr/regress.sh 213284 2010-09-29 22:24:18Z jilles $ 2 3echo 1..14 4 5REGRESSION_START($1) 6 7REGRESSION_TEST(`00', `tr abcde 12345 < regress.in') 8REGRESSION_TEST(`01', `tr 12345 abcde < regress.in') 9REGRESSION_TEST(`02', `tr -d aceg < regress.in') 10REGRESSION_TEST(`03', `tr "[[:lower:]]" "[[:upper:]]" < regress.in') 11REGRESSION_TEST(`04', `tr "[[:alpha:]]" . < regress.in') 12REGRESSION_TEST(`05', `tr "[[:lower:]]" "[[:upper:]]" < regress.in | tr "[[:upper:]]" "[[:lower:]]"') 13REGRESSION_TEST(`06', `tr "[[:digit:]]" "?" < regress2.in') 14REGRESSION_TEST(`07', `tr "[[:alnum:]]" "#" < regress2.in') 15REGRESSION_TEST(`08', `tr "[[:upper:]]" "[[:lower:]]" < regress2.in | tr -d "[^[:alpha:]] "') 16REGRESSION_TEST(`09', `printf "\\f\\r\\n" | tr "\\014\\r" "?#"') 17REGRESSION_TEST(`0a', `printf "0xdeadbeef\\n" | tr "x[[:xdigit:]]" "?\$"') 18REGRESSION_TEST(`0b', `(tr -cd "[[:xdigit:]]" < regress2.in ; echo)') 19REGRESSION_TEST(`0c', `echo "[[[[]]]]" | tr -d "[=]=]"') 20REGRESSION_TEST(`0d', `echo "]=[" | tr -d "[=]"') 21 22REGRESSION_END() 23