diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-12-11 17:33:08 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-12-11 17:33:08 +0000 |
commit | 59ec601b8e4db86e1861d12f4efc6d1dbb440e28 (patch) | |
tree | fff533c0d7940113db52c3f2c88d591fd278c2f5 | |
parent | a293a516ad5af82028425f23a722fb75411d985b (diff) | |
download | busybox-w32-59ec601b8e4db86e1861d12f4efc6d1dbb440e28.tar.gz busybox-w32-59ec601b8e4db86e1861d12f4efc6d1dbb440e28.tar.bz2 busybox-w32-59ec601b8e4db86e1861d12f4efc6d1dbb440e28.zip |
Test suite update from Larry Doolittle to disable some problematic
ambiguous cases. Everything now passes the test suite...
-rw-r--r-- | tests/cp_tests.mk | 8 | ||||
-rw-r--r-- | tests/mv_tests.mk | 5 |
2 files changed, 10 insertions, 3 deletions
diff --git a/tests/cp_tests.mk b/tests/cp_tests.mk index f6e6c0df7..b96c5cea6 100644 --- a/tests/cp_tests.mk +++ b/tests/cp_tests.mk | |||
@@ -14,10 +14,11 @@ clean:: cp_clean | |||
14 | cp_clean: | 14 | cp_clean: |
15 | - rm -rf cp_tests cp_*.{gnu,bb} cp | 15 | - rm -rf cp_tests cp_*.{gnu,bb} cp |
16 | 16 | ||
17 | # check_cp_dir_to_dir_wo_a removed from this list; see below | ||
17 | cp_tests: cp_clean cp check_exists check_simple_cp check_cp_symlnk \ | 18 | cp_tests: cp_clean cp check_exists check_simple_cp check_cp_symlnk \ |
18 | check_cp_symlink_w_a check_cp_files_to_dir check_cp_files_to_dir_w_d \ | 19 | check_cp_symlink_w_a check_cp_files_to_dir check_cp_files_to_dir_w_d \ |
19 | check_cp_files_to_dir_w_p check_cp_files_to_dir_w_p_and_d \ | 20 | check_cp_files_to_dir_w_p check_cp_files_to_dir_w_p_and_d \ |
20 | check_cp_dir_to_dir_wo_a check_cp_dir_to_dir_w_a \ | 21 | check_cp_dir_to_dir_w_a \ |
21 | check_cp_dir_to_dir_w_a_take_two | 22 | check_cp_dir_to_dir_w_a_take_two |
22 | 23 | ||
23 | check_exists: | 24 | check_exists: |
@@ -247,6 +248,11 @@ check_cp_files_to_dir_w_p_and_d: | |||
247 | @echo; | 248 | @echo; |
248 | rm -rf cp_tests/{afile{1,2},symlink1,there1}; | 249 | rm -rf cp_tests/{afile{1,2},symlink1,there1}; |
249 | 250 | ||
251 | # This test doesn't work any more; gnu cp now _does_ copy a directory | ||
252 | # to a subdirectory of itself. What's worse, that "feature" has no | ||
253 | # (documented) way to be disabled with command line switches. | ||
254 | # It's not obvious that busybox cp should mimic this behavior. | ||
255 | # For now, this test is removed from the cp_tests list, above. | ||
250 | check_cp_dir_to_dir_wo_a: | 256 | check_cp_dir_to_dir_wo_a: |
251 | # Copy a directory to another directory, without the -a switch. | 257 | # Copy a directory to another directory, without the -a switch. |
252 | @echo; echo Copy a directory to another directory, without the -a switch. | 258 | @echo; echo Copy a directory to another directory, without the -a switch. |
diff --git a/tests/mv_tests.mk b/tests/mv_tests.mk index 81b8ffdec..f03e08a73 100644 --- a/tests/mv_tests.mk +++ b/tests/mv_tests.mk | |||
@@ -144,8 +144,8 @@ mv_tests: mv_clean mv | |||
144 | @echo; echo ------------------------------; | 144 | @echo; echo ------------------------------; |
145 | @echo There should be an error message about cannot mv a dir to a subdir of itself. | 145 | @echo There should be an error message about cannot mv a dir to a subdir of itself. |
146 | cd mv_tests; \ | 146 | cd mv_tests; \ |
147 | touch a b c; \ | ||
148 | mkdir adir; \ | 147 | mkdir adir; \ |
148 | touch -r . a b c adir; \ | ||
149 | ls -lR . > ../mv_a_star_adir.gnu; \ | 149 | ls -lR . > ../mv_a_star_adir.gnu; \ |
150 | ${GMV} * adir; \ | 150 | ${GMV} * adir; \ |
151 | ls -lR . >> ../mv_a_star_adir.gnu; | 151 | ls -lR . >> ../mv_a_star_adir.gnu; |
@@ -153,8 +153,9 @@ mv_tests: mv_clean mv | |||
153 | @echo | 153 | @echo |
154 | @echo There should be an error message about cannot mv a dir to a subdir of itself. | 154 | @echo There should be an error message about cannot mv a dir to a subdir of itself. |
155 | cd mv_tests; \ | 155 | cd mv_tests; \ |
156 | rm -rf adir; \ | 156 | rm -rf a b c adir; \ |
157 | mkdir adir; \ | 157 | mkdir adir; \ |
158 | touch -r . a b c adir; \ | ||
158 | ls -lR . > ../mv_a_star_adir.bb; \ | 159 | ls -lR . > ../mv_a_star_adir.bb; \ |
159 | ${BMV} * adir; \ | 160 | ${BMV} * adir; \ |
160 | ls -lR . >> ../mv_a_star_adir.bb; | 161 | ls -lR . >> ../mv_a_star_adir.bb; |