Last change
on this file since 3882 was 3320, checked in by Bruno Cornec, 10 years ago |
- Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in
the move to 3.0
|
-
Property svn:executable
set to
*
|
File size:
868 bytes
|
Rev | Line | |
---|
[3320] | 1 | #!/bin/sh
|
---|
| 2 |
|
---|
| 3 | # Copyright 2009 by Denys Vlasenko <vda.linux@googlemail.com>
|
---|
| 4 | # Licensed under GPLv2, see file LICENSE in this source tree.
|
---|
| 5 |
|
---|
| 6 | . ./testing.sh
|
---|
| 7 |
|
---|
| 8 | # testing "description" "arguments" "result" "infile" "stdin"
|
---|
| 9 |
|
---|
| 10 | testing "tr does not treat [] in [a-z] as special" \
|
---|
| 11 | "tr '[q-z]' '_Q-Z+'" \
|
---|
| 12 | "_QWe+" "" "[qwe]"
|
---|
| 13 |
|
---|
| 14 | testing "tr understands 0-9A-F" \
|
---|
| 15 | "tr -cd '[0-9A-F]'" \
|
---|
| 16 | "19AF" "" "19AFH\n"
|
---|
| 17 |
|
---|
| 18 | optional FEATURE_TR_CLASSES
|
---|
| 19 | testing "tr understands [:xdigit:]" \
|
---|
| 20 | "tr -cd '[:xdigit:]'" \
|
---|
| 21 | "19AF" "" "19AFH\n"
|
---|
| 22 | SKIP=
|
---|
| 23 |
|
---|
| 24 | optional FEATURE_TR_CLASSES
|
---|
| 25 | testing "tr does not stop after [:digit:]" \
|
---|
| 26 | "tr '[:digit:]y-z' 111111111123" \
|
---|
| 27 | "111abcx23\n" "" "789abcxyz\n"
|
---|
| 28 | SKIP=
|
---|
| 29 |
|
---|
| 30 | optional FEATURE_TR_CLASSES
|
---|
| 31 | testing "tr has correct xdigit sequence" \
|
---|
| 32 | "tr '[:xdigit:]Gg' 1111111151242222333330xX" \
|
---|
| 33 | "#1111111151242222x333330X\n" "" \
|
---|
| 34 | "#0123456789ABCDEFGabcdefg\n"
|
---|
| 35 | SKIP=
|
---|
| 36 |
|
---|
| 37 | exit $FAILCOUNT
|
---|
Note:
See
TracBrowser
for help on using the repository browser.