Commit 232f2825 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

cmd/tests: Test nested loop variables expansion.

Based on a patch by Dimitry Sokolov. Signed-off-by: 's avatarEric Pouech <epouech@codeweavers.com>
parent 14bdf6e7
...@@ -1403,6 +1403,18 @@ goto :endForTestFun2 ...@@ -1403,6 +1403,18 @@ goto :endForTestFun2
echo %1 %2 echo %1 %2
goto :eof goto :eof
:endForTestFun2 :endForTestFun2
echo --- nested FORs and args tempering
set "WINE_ARGS= -foo=bar -x=y"
:test_for_loop_params_parse
for /F "tokens=1,* delims= " %%a in ("%WINE_ARGS%") do (
for /F "tokens=1,2 delims==" %%1 in ("%%a") do (
echo inner argument {%%1, %%2}
)
set "WINE_ARGS=%%b"
goto :test_for_loop_params_parse
)
set "WINE_ARGS="
mkdir foobar & cd foobar mkdir foobar & cd foobar
mkdir foo mkdir foo
mkdir bar mkdir bar
......
...@@ -1000,6 +1000,9 @@ A C ...@@ -1000,6 +1000,9 @@ A C
A D A D
B C B C
B D B D
--- nested FORs and args tempering
@todo_wine@inner argument {-foo, bar}
@todo_wine@inner argument {-x, y}
--- basic wildcards --- basic wildcards
bazbaz bazbaz
--- wildcards in subdirs --- wildcards in subdirs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment