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
63a6a80d
Commit
63a6a80d
authored
Jul 11, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Jul 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/tests: Add basic "for" tests.
parent
cde4993d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
test_builtins.cmd
programs/cmd/tests/test_builtins.cmd
+23
-0
test_builtins.cmd.exp
programs/cmd/tests/test_builtins.cmd.exp
+16
-0
No files found.
programs/cmd/tests/test_builtins.cmd
View file @
63a6a80d
...
@@ -78,6 +78,29 @@ if /i not foo==FOO echo if /i seems to be broken
...
@@ -78,6 +78,29 @@ if /i not foo==FOO echo if /i seems to be broken
if /I foo==FOO echo if /I seems to work
if /I foo==FOO echo if /I seems to work
if /I not foo==FOO echo if /I seems to be broken
if /I not foo==FOO echo if /I seems to be broken
echo -----------Testing for -----------
for %%i in (A B C) do echo %%i
for %%i in (A B C) do call :forTestFun1 %%i
goto :endForTestFun1
:forTestFun1
echo %1
goto :eof
:endForTestFun1
for %%i in (X) do (
for %%j in (Y) do (
echo %%i %%j ))
for %%i in (A B) do (
for %%j in (C D) do (
echo %%i %%j ))
for %%i in (A B) do (
for %%j in (C D) do (
call :forTestFun2 %%i %%j ))
goto :endForTestFun2
:forTestFun2
echo %1 %2
goto :eof
:endForTestFun2
echo -----------Testing del /a-----------
echo -----------Testing del /a-----------
del /f/q *.test > nul
del /f/q *.test > nul
echo r > r.test
echo r > r.test
...
...
programs/cmd/tests/test_builtins.cmd.exp
View file @
63a6a80d
...
@@ -78,6 +78,22 @@ Testing case sensitivity with and without /i option
...
@@ -78,6 +78,22 @@ Testing case sensitivity with and without /i option
if seems to default to case sensitivity
if seems to default to case sensitivity
if /i seems to work
if /i seems to work
if /I seems to work
if /I seems to work
-----------Testing for -----------
A
B
C
A
B
C
@todo_wine@X Y
@todo_wine@A C
@todo_wine@A D
@todo_wine@B C
@todo_wine@B D
@todo_wine@A C
@todo_wine@A D
@todo_wine@B C
@todo_wine@B D
-----------Testing del /a-----------
-----------Testing del /a-----------
not-r.test not found after delete, good
not-r.test not found after delete, good
r.test found before delete, good
r.test found before delete, good
...
...
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