regress.sh revision 175288
1# $FreeBSD: head/tools/regression/usr.bin/tr/regress.sh 175288 2008-01-13 08:33:20Z keramida $ 2 3echo 1..12 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)') 19 20REGRESSION_END() 21