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
92356ca2
Commit
92356ca2
authored
Aug 25, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Aug 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/tests: Add tests for FOR /F 'skip' option.
parent
fef13bf2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
test_builtins.cmd
programs/cmd/tests/test_builtins.cmd
+9
-0
test_builtins.cmd.exp
programs/cmd/tests/test_builtins.cmd.exp
+4
-0
No files found.
programs/cmd/tests/test_builtins.cmd
View file @
92356ca2
...
@@ -647,6 +647,15 @@ for /f "delims=| " %%i in ("a d|") do echo %%i
...
@@ -647,6 +647,15 @@ for /f "delims=| " %%i in ("a d|") do echo %%i
for /f "delims==" %%i in ("C r=d|") do echo %%i
for /f "delims==" %%i in ("C r=d|") do echo %%i
for /f "delims=" %%i in ("foo bar baz") do echo %%i
for /f "delims=" %%i in ("foo bar baz") do echo %%i
for /f "delims=" %%i in ("c:\foo bar baz\..") do echo %%~fi
for /f "delims=" %%i in ("c:\foo bar baz\..") do echo %%~fi
echo ......skip option
echo a > foo
echo b >> foo
echo c >> foo
for /f "skip=2" %%i in (foo) do echo %%i
for /f "skip=3" %%i in (foo) do echo %%i > output_file
if not exist output_file (echo no output) else (del output_file)
for /f "skip=4" %%i in (foo) do echo %%i > output_file
if not exist output_file (echo no output) else (del output_file)
cd ..
cd ..
rd /s/q foobar
rd /s/q foobar
...
...
programs/cmd/tests/test_builtins.cmd.exp
View file @
92356ca2
...
@@ -475,6 +475,10 @@ c
...
@@ -475,6 +475,10 @@ c
@todo_wine@C r
@todo_wine@C r
@todo_wine@foo bar baz
@todo_wine@foo bar baz
@todo_wine@c:\
@todo_wine@c:\
......skip option
@todo_wine@c
@todo_wine@no output
@todo_wine@no output
-----------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