cmd/tests: Add FOR /D tests.

This commit is contained in:
Frédéric Delanoy 2011-07-29 13:59:50 +02:00 committed by Alexandre Julliard
parent c41a1a29b5
commit 21f7c5db61
2 changed files with 20 additions and 0 deletions

View file

@ -299,6 +299,22 @@ mkdir baz
echo > bazbaz
echo ...basic wildcards
for %%i in (ba*) do echo %%i
echo ...for /d
for /d %%i in (baz foo bar) do echo %%i
rem FIXME for /d incorrectly parses when wildcards are used
rem for /d %%i in (bazb*) do echo %%i
rem FIXME can't test wildcard expansion here since it's listed in directory
rem order, and not in alphabetic order.
rem Proper testing would need a currently missing "sort" program implementation.
rem for /d %%i in (ba*) do echo %%i>> tmp
rem sort < tmp
rem del tmp
rem for /d %%i in (?a*) do echo %%i>> tmp
rem sort < tmp
rem del tmp
rem for /d %%i in (*) do echo %%i>> tmp
rem sort < tmp
rem del tmp
cd ..
rd /s/Q foobar

View file

@ -216,6 +216,10 @@ C
@todo_wine@B D
...basic wildcards
bazbaz
...for /d
baz
foo
bar
-----------Testing del /a-----------
not-r.test not found after delete, good
r.test found before delete, good