regress.sh revision 213284
1175288Skeramida# $FreeBSD: head/tools/regression/usr.bin/tr/regress.sh 213284 2010-09-29 22:24:18Z jilles $ 2175288Skeramida 3213284Sjillesecho 1..14 4175288Skeramida 5175288SkeramidaREGRESSION_START($1) 6175288Skeramida 7175288SkeramidaREGRESSION_TEST(`00', `tr abcde 12345 < regress.in') 8175288SkeramidaREGRESSION_TEST(`01', `tr 12345 abcde < regress.in') 9175288SkeramidaREGRESSION_TEST(`02', `tr -d aceg < regress.in') 10175288SkeramidaREGRESSION_TEST(`03', `tr "[[:lower:]]" "[[:upper:]]" < regress.in') 11175288SkeramidaREGRESSION_TEST(`04', `tr "[[:alpha:]]" . < regress.in') 12175288SkeramidaREGRESSION_TEST(`05', `tr "[[:lower:]]" "[[:upper:]]" < regress.in | tr "[[:upper:]]" "[[:lower:]]"') 13175288SkeramidaREGRESSION_TEST(`06', `tr "[[:digit:]]" "?" < regress2.in') 14175288SkeramidaREGRESSION_TEST(`07', `tr "[[:alnum:]]" "#" < regress2.in') 15175288SkeramidaREGRESSION_TEST(`08', `tr "[[:upper:]]" "[[:lower:]]" < regress2.in | tr -d "[^[:alpha:]] "') 16175288SkeramidaREGRESSION_TEST(`09', `printf "\\f\\r\\n" | tr "\\014\\r" "?#"') 17175288SkeramidaREGRESSION_TEST(`0a', `printf "0xdeadbeef\\n" | tr "x[[:xdigit:]]" "?\$"') 18175288SkeramidaREGRESSION_TEST(`0b', `(tr -cd "[[:xdigit:]]" < regress2.in ; echo)') 19213284SjillesREGRESSION_TEST(`0c', `echo "[[[[]]]]" | tr -d "[=]=]"') 20213284SjillesREGRESSION_TEST(`0d', `echo "]=[" | tr -d "[=]"') 21175288Skeramida 22175288SkeramidaREGRESSION_END() 23