Shell and Utilities No.16 more(less) Test Scenario
Last Update: 31-Jan-2002
Current Version: 1.0.4-2
Authorized Date: 03-Oct-2002
*) If these instructions are used to test `less' utility, replace `more'
with `less' in these instructions.
Assertion 1 : When standard output is terminal device, verify double width
character is wrapped on the assigned width.
- Prepare the text file `more.test1.txt' for this test from here.
- Open a terminal emulator such as xterm, rxvt, ...
- Make sure your running locale is LTP_1.UTF-8.
- Enter the following command:
more more.test1.txt
- Enter `G' in order to scroll to end of the file.
- Check if double width character is wrapped on the end of line.
If the size of column is 80, the terminal should seem like the following
image.
Assertion 2 : When -p command option is specified and command means searching
a string, verify the string is found correctly if it is a multibyte character
string.
- Prepare the text file `more.test2.txt' for this test from here.
- Open a terminal emulator such as xterm, rxvt, ...
- Make sure your running locale is LTP_1.UTF-8.
- Enter the following command:
more -p '/日本語' more.test2.txt
- Check if the logical line containing the string "日本語" is
written in the current position.
Assertion 3 : When a command which means searching a string is going to
be given, verify the multibyte characters are acceptable as the inputted
string.
- Prepare the text file `more.test2.txt' for this test from here.
- Open a terminal emulator such as xterm, rxvt, ...
- Make sure your running locale is LTP_1.UTF-8.
- Enter the following command:
more more.test2.txt
- On more utility, enter the following command:
/日本語
- Check if the logical line containing the string "日本語" is
written in the current position.
Assertion 4 : When a command which means searching a string is given, verify
the string is found correctly if it is a multibyte character string.
- Prepare the text file `more.test2.txt' for this test from here.
- Open a terminal emulator such as xterm, rxvt, ...
- Make sure your running locale is LTP_1.UTF-8.
- Enter the following command:
more more.test2.txt
- On more utility, enter the following command:
/日本語
- Check if the logical line containing the string "日本語" is
written in the current position.
OpenI18N 1.2 Specification -- Shell and Utilities No.16 more(less) Test
Scenario