Skip to content
Snippets Groups Projects
Commit 232f2825 authored by eric pouech's avatar eric pouech Committed by Alexandre Julliard
Browse files

cmd/tests: Test nested loop variables expansion.


Based on a patch by Dimitry Sokolov.

Signed-off-by: default avatarEric Pouech <epouech@codeweavers.com>
parent 14bdf6e7
No related branches found
No related tags found
No related merge requests found
......@@ -1403,6 +1403,18 @@ goto :endForTestFun2
echo %1 %2
goto :eof
: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 foo
mkdir bar
......
......@@ -1000,6 +1000,9 @@ A C
A D
B C
B D
--- nested FORs and args tempering
@todo_wine@inner argument {-foo, bar}
@todo_wine@inner argument {-x, y}
--- basic wildcards
bazbaz
--- wildcards in subdirs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment