diff options
Diffstat (limited to '')
-rwxr-xr-x | testsuite/cpio.tests | 23 | ||||
-rwxr-xr-x | testsuite/cut.tests | 140 | ||||
-rwxr-xr-x | testsuite/hexdump.tests | 93 | ||||
-rwxr-xr-x | testsuite/make.tests | 40 | ||||
-rwxr-xr-x | testsuite/od.tests | 13 | ||||
-rw-r--r-- | testsuite/wget/wget-handles-https | 4 |
6 files changed, 280 insertions, 33 deletions
diff --git a/testsuite/cpio.tests b/testsuite/cpio.tests index 85e746589..a4462c53e 100755 --- a/testsuite/cpio.tests +++ b/testsuite/cpio.tests | |||
@@ -154,6 +154,29 @@ testing "cpio -R with extract" \ | |||
154 | " "" "" | 154 | " "" "" |
155 | SKIP= | 155 | SKIP= |
156 | 156 | ||
157 | # Create an archive containing a file with "../dont_write" filename. | ||
158 | # See that it will not be allowed to unpack. | ||
159 | # NB: GNU cpio 2.15 DOES NOT do such checks. | ||
160 | optional FEATURE_PATH_TRAVERSAL_PROTECTION | ||
161 | rm -rf cpio.testdir | ||
162 | mkdir -p cpio.testdir/prepare/inner | ||
163 | echo "file outside of destination was written" > cpio.testdir/prepare/dont_write | ||
164 | echo "data" > cpio.testdir/prepare/inner/to_extract | ||
165 | mkdir -p cpio.testdir/extract | ||
166 | testing "cpio extract file outside of destination" "\ | ||
167 | (cd cpio.testdir/prepare/inner && echo -e '../dont_write\nto_extract' | cpio -o -H newc) | (cd cpio.testdir/extract && cpio -vi 2>&1) | ||
168 | echo \$? | ||
169 | ls cpio.testdir/dont_write 2>&1" \ | ||
170 | "\ | ||
171 | cpio: removing leading '../' from member names | ||
172 | ../dont_write | ||
173 | to_extract | ||
174 | 1 blocks | ||
175 | 0 | ||
176 | ls: cpio.testdir/dont_write: No such file or directory | ||
177 | " "" "" | ||
178 | SKIP= | ||
179 | |||
157 | # Clean up | 180 | # Clean up |
158 | rm -rf cpio.testdir cpio.testdir2 2>/dev/null | 181 | rm -rf cpio.testdir cpio.testdir2 2>/dev/null |
159 | 182 | ||
diff --git a/testsuite/cut.tests b/testsuite/cut.tests index a31f41f7f..21cfea809 100755 --- a/testsuite/cut.tests +++ b/testsuite/cut.tests | |||
@@ -23,14 +23,30 @@ the quick brown fox jumps over the lazy dog | |||
23 | 23 | ||
24 | testing "cut -b a,a,a" "cut -b 3,3,3 input" "e\np\ne\n" "$abc" "" | 24 | testing "cut -b a,a,a" "cut -b 3,3,3 input" "e\np\ne\n" "$abc" "" |
25 | 25 | ||
26 | testing "cut -b overlaps" "cut -b 1-3,2-5,7-9,9-10 input" \ | 26 | testing "cut -b overlaps" \ |
27 | "one:to:th\nalphabeta\nthe qick \n" "$abc" "" | 27 | "cut -b 1-3,2-5,7-9,9-10 input" \ |
28 | testing "-b encapsulated" "cut -b 3-8,4-6 input" "e:two:\npha:be\ne quic\n" \ | 28 | "\ |
29 | "$abc" "" | 29 | one:to:th |
30 | # --output-delimiter not implemnted (yet?) | 30 | alphabeta |
31 | #testing "cut -bO overlaps" \ | 31 | the qick \n" \ |
32 | # "cut --output-delimiter ' ' -b 1-3,2-5,7-9,9-10 input" \ | 32 | "$abc" "" |
33 | # "one:t o:th\nalpha beta\nthe q ick \n" "$abc" "" | 33 | testing "-b encapsulated" \ |
34 | "cut -b 3-8,4-6 input" \ | ||
35 | "\ | ||
36 | e:two: | ||
37 | pha:be | ||
38 | e quic\n" \ | ||
39 | "$abc" "" | ||
40 | optional LONG_OPTS | ||
41 | testing "cut -b --output-delimiter overlaps" \ | ||
42 | "cut --output-delimiter='^' -b 1-3,2-5,7-9,9-10 input" \ | ||
43 | "\ | ||
44 | one:t^o:th | ||
45 | alpha^beta | ||
46 | the q^ick \n" \ | ||
47 | "$abc" "" | ||
48 | SKIP= | ||
49 | |||
34 | testing "cut high-low error" "cut -b 8-3 input 2>/dev/null || echo err" "err\n" \ | 50 | testing "cut high-low error" "cut -b 8-3 input 2>/dev/null || echo err" "err\n" \ |
35 | "$abc" "" | 51 | "$abc" "" |
36 | 52 | ||
@@ -68,10 +84,27 @@ testing "cut with -d -f( ) -s" "cut -d' ' -f3 -s input && echo yes" "yes\n" "$in | |||
68 | testing "cut with -d -f(a) -s" "cut -da -f3 -s input" "n\nsium:Jim\n\ncion:Ed\n" "$input" "" | 84 | testing "cut with -d -f(a) -s" "cut -da -f3 -s input" "n\nsium:Jim\n\ncion:Ed\n" "$input" "" |
69 | testing "cut with -d -f(a) -s -n" "cut -da -f3 -s -n input" "n\nsium:Jim\n\ncion:Ed\n" "$input" "" | 85 | testing "cut with -d -f(a) -s -n" "cut -da -f3 -s -n input" "n\nsium:Jim\n\ncion:Ed\n" "$input" "" |
70 | 86 | ||
87 | input="\ | ||
88 | |||
89 | foo bar baz | ||
90 | |||
91 | bing bong boop | ||
92 | |||
93 | " | ||
94 | testing "cut with -d -s omits blank lines" "cut -d' ' -f2 -s input" "bar\nbong\n" "$input" "" | ||
95 | |||
71 | # substitute for awk | 96 | # substitute for awk |
72 | optional FEATURE_CUT_REGEX | 97 | optional FEATURE_CUT_REGEX |
73 | testing "cut -DF" "cut -DF 2,7,5" \ | 98 | testing "cut -DF unordered" "cut -DF 2,7,5" \ |
74 | "said and your\nare\nis demand. supply\nforecast :\nyou you better,\n\nEm: Took hate\n" "" \ | 99 | "\ |
100 | said and your | ||
101 | are | ||
102 | is demand. supply | ||
103 | forecast : | ||
104 | you you better, | ||
105 | |||
106 | Em: Took hate | ||
107 | " "" \ | ||
75 | "Bother, said Pooh. It's your husband, and he has a gun. | 108 | "Bother, said Pooh. It's your husband, and he has a gun. |
76 | Cheerios are donut seeds. | 109 | Cheerios are donut seeds. |
77 | Talk is cheap because supply exceeds demand. | 110 | Talk is cheap because supply exceeds demand. |
@@ -79,9 +112,92 @@ Weather forecast for tonight : dark. | |||
79 | Apple: you can buy better, but you can't pay more. | 112 | Apple: you can buy better, but you can't pay more. |
80 | Subcalifragilisticexpialidocious. | 113 | Subcalifragilisticexpialidocious. |
81 | Auntie Em: Hate you, hate Kansas. Took the dog. Dorothy." | 114 | Auntie Em: Hate you, hate Kansas. Took the dog. Dorothy." |
115 | |||
116 | # No delimiter found: print entire line regardless of -F RANGES | ||
117 | testing "cut -F1" "cut -d: -F1" \ | ||
118 | "the_only_field\n" "" \ | ||
119 | "the_only_field\n" | ||
120 | testing "cut -F2" "cut -d: -F2" \ | ||
121 | "the_only_field\n" "" \ | ||
122 | "the_only_field\n" | ||
123 | # No delimiter found and -s: skip entire line | ||
124 | testing "cut -sF1" "cut -d: -sF1" \ | ||
125 | "" "" \ | ||
126 | "the_only_field\n" | ||
127 | #^^^ the above is probably mishandled by toybox, it prints the line | ||
128 | testing "cut -sF2" "cut -d: -sF2" \ | ||
129 | "" "" \ | ||
130 | "the_only_field\n" | ||
131 | # -D disables special handling of lines with no delimiters, the line is treated as the 1st field | ||
132 | testing "cut -DF1" "cut -d: -DF1" \ | ||
133 | "the_only_field\n" "" \ | ||
134 | "the_only_field\n" | ||
135 | testing "cut -DF2" "cut -d: -DF2" \ | ||
136 | "\n" "" \ | ||
137 | "the_only_field\n" | ||
138 | |||
139 | optional FEATURE_CUT_REGEX LONG_OPTS | ||
140 | testing "cut -F preserves intermediate delimiters" \ | ||
141 | "cut --output-delimiter=: -F2,4-6,7" \ | ||
142 | "2:4 5 6:7\n" \ | ||
143 | "" "1 2 3 4\t\t5 6 7 8\n" | ||
144 | SKIP= | ||
145 | |||
146 | optional LONG_OPTS | ||
147 | testing "cut -f does not preserve intermediate delimiters" \ | ||
148 | "cut --output-delimiter=: -d' ' -f2,4-6,7" \ | ||
149 | "2:4:5:6:7\n" \ | ||
150 | "" "1 2 3 4 5 6 7 8\n" | ||
151 | SKIP= | ||
152 | |||
153 | testing "cut empty field" "cut -d ':' -f 1-3" \ | ||
154 | "a::b\n" \ | ||
155 | "" "a::b\n" | ||
156 | testing "cut empty field 2" "cut -d ':' -f 3-5" \ | ||
157 | "b::c\n" \ | ||
158 | "" "a::b::c:d\n" | ||
159 | testing "cut non-existing field" "cut -d ':' -f1,3" \ | ||
160 | "1\n" \ | ||
161 | "" "1:\n" | ||
162 | |||
163 | # cut -d$'\n' has a special meaning: "select input lines". | ||
164 | # I didn't find any documentation for this feature. | ||
165 | testing "cut -dNEWLINE" \ | ||
166 | "cut -d' | ||
167 | ' -f4,2,6-8" \ | ||
168 | "2\n4\n6\n7\n" \ | ||
169 | "" "1\n2\n3\n4\n5\n6\n7" | ||
170 | |||
171 | optional LONG_OPTS | ||
172 | testing "cut -dNEWLINE --output-delimiter" \ | ||
173 | "cut -d' | ||
174 | ' --output-delimiter=@@ -f4,2,6-8" \ | ||
175 | "2@@4@@6@@7\n" \ | ||
176 | "" "1\n2\n3\n4\n5\n6\n7" | ||
177 | |||
178 | testing "cut -dNEWLINE --output-delimiter 2" \ | ||
179 | "cut -d' | ||
180 | ' --output-delimiter=@@ -f4,2,6-8" \ | ||
181 | "2@@4@@6@@7\n" \ | ||
182 | "" "1\n2\n3\n4\n5\n6\n7\n" | ||
183 | |||
184 | testing "cut -dNEWLINE --output-delimiter EMPTY_INPUT" \ | ||
185 | "cut -d' | ||
186 | ' --output-delimiter=@@ -f4,2,6-8" \ | ||
187 | "" \ | ||
188 | "" "" | ||
82 | SKIP= | 189 | SKIP= |
83 | 190 | ||
84 | testing "cut empty field" "cut -d ':' -f 1-3" "a::b\n" "" "a::b\n" | 191 | # This seems to work as if delimiter is never found. |
85 | testing "cut empty field 2" "cut -d ':' -f 3-5" "b::c\n" "" "a::b::c:d\n" | 192 | # We test here that -d '' does *not* operate as if there was no -d |
193 | # and delimiter has defaulted to TAB: | ||
194 | testing "cut -d EMPTY" \ | ||
195 | "cut -d '' -f2-" \ | ||
196 | "1 2\t3 4 5\n" \ | ||
197 | "" "1 2\t3 4 5\n" | ||
198 | testing "cut -d EMPTY -s" \ | ||
199 | "cut -d '' -f2- -s" \ | ||
200 | "" \ | ||
201 | "" "1 2\t3 4 5\n" | ||
86 | 202 | ||
87 | exit $FAILCOUNT | 203 | exit $FAILCOUNT |
diff --git a/testsuite/hexdump.tests b/testsuite/hexdump.tests index be0379cfc..b2f6a2201 100755 --- a/testsuite/hexdump.tests +++ b/testsuite/hexdump.tests | |||
@@ -5,6 +5,17 @@ | |||
5 | 5 | ||
6 | . ./testing.sh | 6 | . ./testing.sh |
7 | 7 | ||
8 | input=\ | ||
9 | "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"\ | ||
10 | "\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"\ | ||
11 | "\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"\ | ||
12 | "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"\ | ||
13 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" | ||
14 | |||
15 | little_endian=false | ||
16 | { printf '\0\1' | hexdump -d | grep -q 256; } && little_endian=true | ||
17 | readonly little_endian | ||
18 | |||
8 | # testing "description" "command" "result" "infile" "stdin" | 19 | # testing "description" "command" "result" "infile" "stdin" |
9 | testing 'hexdump -C with four NULs' \ | 20 | testing 'hexdump -C with four NULs' \ |
10 | 'hexdump -C' \ | 21 | 'hexdump -C' \ |
@@ -43,12 +54,7 @@ testing "hexdump -e %3_u" \ | |||
43 | 80 81 82 83 84 85 86 87 88 89 8a 8b 8c 8d 8e 8f | 54 | 80 81 82 83 84 85 86 87 88 89 8a 8b 8c 8d 8e 8f |
44 | f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc fd fe ff | 55 | f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc fd fe ff |
45 | " \ | 56 | " \ |
46 | "" \ | 57 | "" "$input" |
47 | "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"\ | ||
48 | "\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"\ | ||
49 | "\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"\ | ||
50 | "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"\ | ||
51 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"\ | ||
52 | 58 | ||
53 | testing "hexdump -e /1 %d" \ | 59 | testing "hexdump -e /1 %d" \ |
54 | "hexdump -e '16/1 \" %4d\" \"\n\"'" \ | 60 | "hexdump -e '16/1 \" %4d\" \"\n\"'" \ |
@@ -59,27 +65,74 @@ testing "hexdump -e /1 %d" \ | |||
59 | -128 -127 -126 -125 -124 -123 -122 -121 -120 -119 -118 -117 -116 -115 -114 -113 | 65 | -128 -127 -126 -125 -124 -123 -122 -121 -120 -119 -118 -117 -116 -115 -114 -113 |
60 | -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 | 66 | -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 |
61 | " \ | 67 | " \ |
62 | "" \ | 68 | "" "$input" |
63 | "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"\ | ||
64 | "\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"\ | ||
65 | "\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"\ | ||
66 | "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"\ | ||
67 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"\ | ||
68 | 69 | ||
69 | testing "hexdump -e /2 %d" \ | 70 | $little_endian || SKIP=1 |
70 | "hexdump -e '8/2 \" %6d\" \"\n\"'" \ | 71 | testing "hexdump -e /2 %d (little endian)" \ |
71 | "\ | 72 | "hexdump -e '8/2 \" %6d\" \"\n\"'" \ |
73 | "\ | ||
72 | 256 770 1284 1798 2312 2826 3340 3854 | 74 | 256 770 1284 1798 2312 2826 3340 3854 |
73 | 4368 4882 5396 5910 6424 6938 7452 7966 | 75 | 4368 4882 5396 5910 6424 6938 7452 7966 |
74 | 29040 29554 30068 30582 31096 31610 32124 32638 | 76 | 29040 29554 30068 30582 31096 31610 32124 32638 |
75 | -32384 -31870 -31356 -30842 -30328 -29814 -29300 -28786 | 77 | -32384 -31870 -31356 -30842 -30328 -29814 -29300 -28786 |
76 | -3600 -3086 -2572 -2058 -1544 -1030 -516 -2 | 78 | -3600 -3086 -2572 -2058 -1544 -1030 -516 -2 |
77 | " \ | 79 | " \ |
80 | "" "$input" | ||
81 | SKIP= | ||
82 | |||
83 | $little_endian && SKIP=1 | ||
84 | testing "hexdump -e /2 %d (big endian)" \ | ||
85 | "hexdump -e '8/2 \" %6d\" \"\n\"'" \ | ||
86 | "\ | ||
87 | 1 515 1029 1543 2057 2571 3085 3599 | ||
88 | 4113 4627 5141 5655 6169 6683 7197 7711 | ||
89 | 28785 29299 29813 30327 30841 31355 31869 32383 | ||
90 | -32639 -32125 -31611 -31097 -30583 -30069 -29555 -29041 | ||
91 | -3855 -3341 -2827 -2313 -1799 -1285 -771 -257 | ||
92 | " \ | ||
93 | "" "$input" | ||
94 | SKIP= | ||
95 | |||
96 | $little_endian || SKIP=1 | ||
97 | testing "hexdump -e /2 %x (little endian)" \ | ||
98 | "hexdump -e '8/2 \" %6x\" \"\n\"'" \ | ||
99 | "\ | ||
100 | 100 302 504 706 908 b0a d0c f0e | ||
101 | 1110 1312 1514 1716 1918 1b1a 1d1c 1f1e | ||
102 | 7170 7372 7574 7776 7978 7b7a 7d7c 7f7e | ||
103 | 8180 8382 8584 8786 8988 8b8a 8d8c 8f8e | ||
104 | f1f0 f3f2 f5f4 f7f6 f9f8 fbfa fdfc fffe | ||
105 | " \ | ||
106 | "" "$input" | ||
107 | SKIP= | ||
108 | |||
109 | $little_endian && SKIP=1 | ||
110 | testing "hexdump -e /2 %x (big endian)" \ | ||
111 | "hexdump -e '8/2 \" %6x\" \"\n\"'" \ | ||
112 | "\ | ||
113 | 1 203 405 607 809 a0b c0d e0f | ||
114 | 1011 1213 1415 1617 1819 1a1b 1c1d 1e1f | ||
115 | 7071 7273 7475 7677 7879 7a7b 7c7d 7e7f | ||
116 | 8081 8283 8485 8687 8889 8a8b 8c8d 8e8f | ||
117 | f0f1 f2f3 f4f5 f6f7 f8f9 fafb fcfd feff | ||
118 | " \ | ||
119 | "" "$input" | ||
120 | SKIP= | ||
121 | |||
122 | $little_endian || SKIP=1 | ||
123 | testing "hexdump -n4 -e '\"%u\"' (little endian)" \ | ||
124 | "hexdump -n4 -e '\"%u\"'" \ | ||
125 | "12345678" \ | ||
78 | "" \ | 126 | "" \ |
79 | "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"\ | 127 | "\x4e\x61\xbc\x00AAAA" |
80 | "\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"\ | 128 | SKIP= |
81 | "\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"\ | 129 | |
82 | "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"\ | 130 | $little_endian && SKIP=1 |
83 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"\ | 131 | testing "hexdump -n4 -e '\"%u\"' (big endian)" \ |
132 | "hexdump -n4 -e '\"%u\"'" \ | ||
133 | "1315027968" \ | ||
134 | "" \ | ||
135 | "\x4e\x61\xbc\x00AAAA" | ||
136 | SKIP= | ||
84 | 137 | ||
85 | exit $FAILCOUNT | 138 | exit $FAILCOUNT |
diff --git a/testsuite/make.tests b/testsuite/make.tests index 376bdcc15..fabdbe45c 100755 --- a/testsuite/make.tests +++ b/testsuite/make.tests | |||
@@ -86,6 +86,16 @@ test.k: | |||
86 | ' | 86 | ' |
87 | cd .. || exit 1; rm -rf make.tempdir 2>/dev/null | 87 | cd .. || exit 1; rm -rf make.tempdir 2>/dev/null |
88 | 88 | ||
89 | # Check that single-suffix inference rules work. | ||
90 | mkdir make.tempdir && cd make.tempdir || exit 1 | ||
91 | touch test.sh | ||
92 | testing "make single-suffix inference rule works" \ | ||
93 | "make -f - -s; echo $?" \ | ||
94 | "0\n" "" ' | ||
95 | test: | ||
96 | ' | ||
97 | cd .. || exit 1; rm -rf make.tempdir 2>/dev/null | ||
98 | |||
89 | # There was a bug where the failure of a build command didn't result | 99 | # There was a bug where the failure of a build command didn't result |
90 | # in make returning a non-zero exit status. | 100 | # in make returning a non-zero exit status. |
91 | testing "make return error if command fails" \ | 101 | testing "make return error if command fails" \ |
@@ -541,6 +551,36 @@ testing "make chained inference rules" \ | |||
541 | ' | 551 | ' |
542 | cd .. || exit 1; rm -rf make.tempdir 2>/dev/null | 552 | cd .. || exit 1; rm -rf make.tempdir 2>/dev/null |
543 | 553 | ||
554 | # Suffixes with multiple periods are supported | ||
555 | mkdir make.tempdir && cd make.tempdir || exit 1 | ||
556 | touch x.c.c | ||
557 | testing "make support multi-period suffixes" \ | ||
558 | "make -f -" "cat x.c.c >x.o.o\nx\n" "" ' | ||
559 | .SUFFIXES: .c.c .o.o | ||
560 | x.o.o: | ||
561 | .c.c.o.o: | ||
562 | cat $< >$@ | ||
563 | @echo $* | ||
564 | ' | ||
565 | cd .. || exit 1; rm -rf make.tempdir 2>/dev/null | ||
566 | |||
567 | # Suffixes with no periods are supported | ||
568 | mkdir make.tempdir && cd make.tempdir || exit 1 | ||
569 | touch filex | ||
570 | testing "make support suffixes without any periods" \ | ||
571 | "make -f -" "cp filex fileh\nfile\ncp filex filez\nfile\n" "" ' | ||
572 | .SUFFIXES: x h z | ||
573 | all: fileh filez | ||
574 | fileh: | ||
575 | filez: filex | ||
576 | cp filex filez | ||
577 | @echo $* | ||
578 | xh: | ||
579 | cp $< $@ | ||
580 | @echo $* | ||
581 | ' | ||
582 | cd .. || exit 1; rm -rf make.tempdir 2>/dev/null | ||
583 | |||
544 | # make supports *, ? and [] wildcards in targets and prerequisites | 584 | # make supports *, ? and [] wildcards in targets and prerequisites |
545 | mkdir make.tempdir && cd make.tempdir || exit 1 | 585 | mkdir make.tempdir && cd make.tempdir || exit 1 |
546 | touch -t 202206171201 t1a t2aa t3b | 586 | touch -t 202206171201 t1a t2aa t3b |
diff --git a/testsuite/od.tests b/testsuite/od.tests index 4f245a7e8..c863bf2e8 100755 --- a/testsuite/od.tests +++ b/testsuite/od.tests | |||
@@ -61,7 +61,8 @@ testing "od -a (DESKTOP)" \ | |||
61 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" | 61 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
62 | SKIP= | 62 | SKIP= |
63 | 63 | ||
64 | testing "od -B" \ | 64 | $little_endian || SKIP=1 |
65 | testing "od -B (little-endian)" \ | ||
65 | "od -B" \ | 66 | "od -B" \ |
66 | "\ | 67 | "\ |
67 | 0000000 001001 005003 041101 177103 | 68 | 0000000 001001 005003 041101 177103 |
@@ -70,6 +71,16 @@ testing "od -B" \ | |||
70 | "" "$input" | 71 | "" "$input" |
71 | SKIP= | 72 | SKIP= |
72 | 73 | ||
74 | $little_endian && SKIP=1 | ||
75 | testing "od -B (big-endian)" \ | ||
76 | "od -B" \ | ||
77 | "\ | ||
78 | 0000000 000402 001412 040502 041776 | ||
79 | 0000010 | ||
80 | " \ | ||
81 | "" "$input" | ||
82 | SKIP= | ||
83 | |||
73 | $little_endian || SKIP=1 | 84 | $little_endian || SKIP=1 |
74 | testing "od -o (little-endian)" \ | 85 | testing "od -o (little-endian)" \ |
75 | "od -o" \ | 86 | "od -o" \ |
diff --git a/testsuite/wget/wget-handles-https b/testsuite/wget/wget-handles-https new file mode 100644 index 000000000..11915f42f --- /dev/null +++ b/testsuite/wget/wget-handles-https | |||
@@ -0,0 +1,4 @@ | |||
1 | test x"$SKIP_INTERNET_TESTS" != x"" && exit | ||
2 | |||
3 | busybox wget -q -O foo https://www.google.com/ | ||
4 | test -s foo | ||