Contents of /tags/mkinitrd-6_4_0/busybox/testsuite/unexpand.tests
Parent Directory | Revision Log
Revision 1313 -
(show annotations)
(download)
Fri May 27 18:20:23 2011 UTC (13 years, 4 months ago) by niro
File size: 1094 byte(s)
Fri May 27 18:20:23 2011 UTC (13 years, 4 months ago) by niro
File size: 1094 byte(s)
tagged 'mkinitrd-6_4_0'
1 | #!/bin/sh |
2 | # Copyright 2008 by Denys Vlasenko |
3 | # Licensed under GPL v2, see file LICENSE for details. |
4 | |
5 | . ./testing.sh |
6 | test -f "$bindir/.config" && . "$bindir/.config" |
7 | |
8 | # testing "test name" "options" "expected result" "file input" "stdin" |
9 | |
10 | testing "unexpand case 1" "unexpand" \ |
11 | "\t12345678\n" "" " 12345678\n" \ |
12 | |
13 | testing "unexpand case 2" "unexpand" \ |
14 | "\t 12345678\n" "" " 12345678\n" \ |
15 | |
16 | testing "unexpand case 3" "unexpand" \ |
17 | "\t 12345678\n" "" " 12345678\n" \ |
18 | |
19 | testing "unexpand case 4" "unexpand" \ |
20 | "\t12345678\n" "" " \t12345678\n" \ |
21 | |
22 | testing "unexpand case 5" "unexpand" \ |
23 | "\t12345678\n" "" " \t12345678\n" \ |
24 | |
25 | testing "unexpand case 6" "unexpand" \ |
26 | "\t12345678\n" "" " \t12345678\n" \ |
27 | |
28 | testing "unexpand case 7" "unexpand" \ |
29 | "123\t 45678\n" "" "123 \t 45678\n" \ |
30 | |
31 | testing "unexpand case 8" "unexpand" \ |
32 | "a b\n" "" "a b\n" \ |
33 | |
34 | test x"$CONFIG_UNICODE_SUPPORT" = x"y" \ |
35 | && test x"$CONFIG_UNICODE_USING_LOCALE" != x"y" \ |
36 | && testing "unexpand with unicode characher 0x394" "unexpand" \ |
37 | "1ΔΔΔ5\t99999\n" "" "1ΔΔΔ5 99999\n" |
38 | |
39 | exit $FAILCOUNT |
Properties
Name | Value |
---|---|
svn:executable | * |