Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
232f2825
Commit
232f2825
authored
May 06, 2024
by
Eric Pouech
Committed by
Alexandre Julliard
May 07, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/tests: Test nested loop variables expansion.
Based on a patch by Dimitry Sokolov. Signed-off-by:
Eric Pouech
<
epouech@codeweavers.com
>
parent
14bdf6e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
test_builtins.cmd
programs/cmd/tests/test_builtins.cmd
+12
-0
test_builtins.cmd.exp
programs/cmd/tests/test_builtins.cmd.exp
+3
-0
No files found.
programs/cmd/tests/test_builtins.cmd
View file @
232f2825
...
@@ -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
...
...
programs/cmd/tests/test_builtins.cmd.exp
View file @
232f2825
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment