Denis Vlasenko | 3139ea7 | 2008-12-14 15:45:25 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # Copyright 2008 by Denys Vlasenko |
Denys Vlasenko | 0ef64bd | 2010-08-16 20:14:46 +0200 | [diff] [blame] | 3 | # Licensed under GPLv2, see file LICENSE in this source tree. |
Denis Vlasenko | 3139ea7 | 2008-12-14 15:45:25 +0000 | [diff] [blame] | 4 | |
Mike Frysinger | caa7940 | 2009-11-04 18:41:22 -0500 | [diff] [blame] | 5 | . ./testing.sh |
Denys Vlasenko | 9297dbc | 2010-07-05 21:37:12 +0200 | [diff] [blame] | 6 | test -f "$bindir/.config" && . "$bindir/.config" |
Denis Vlasenko | 3139ea7 | 2008-12-14 15:45:25 +0000 | [diff] [blame] | 7 | |
| 8 | # testing "test name" "options" "expected result" "file input" "stdin" |
| 9 | |
| 10 | testing "expand" \ |
| 11 | "expand" \ |
| 12 | " 12345678 12345678\n" \ |
| 13 | "" \ |
Denys Vlasenko | e3d90a9 | 2010-05-10 05:53:16 +0200 | [diff] [blame] | 14 | "\t12345678\t12345678\n" |
Denis Vlasenko | 3139ea7 | 2008-12-14 15:45:25 +0000 | [diff] [blame] | 15 | |
Denys Vlasenko | 9297dbc | 2010-07-05 21:37:12 +0200 | [diff] [blame] | 16 | test x"$CONFIG_UNICODE_SUPPORT" = x"y" \ |
| 17 | && test x"$CONFIG_UNICODE_USING_LOCALE" != x"y" \ |
Denys Vlasenko | ee1f19b | 2010-07-06 02:20:00 +0200 | [diff] [blame] | 18 | && testing "expand with unicode characher 0x394" \ |
Tomas Heinrich | d2b1ba6 | 2010-01-04 16:21:31 +0100 | [diff] [blame] | 19 | "expand" \ |
| 20 | "Δ 12345ΔΔΔ 12345678\n" \ |
| 21 | "" \ |
Denys Vlasenko | e3d90a9 | 2010-05-10 05:53:16 +0200 | [diff] [blame] | 22 | "Δ\t12345ΔΔΔ\t12345678\n" |
Tomas Heinrich | d2b1ba6 | 2010-01-04 16:21:31 +0100 | [diff] [blame] | 23 | |
Denis Vlasenko | 3139ea7 | 2008-12-14 15:45:25 +0000 | [diff] [blame] | 24 | exit $FAILCOUNT |