cmd/tests: Segment CALL tests for an easier read.
This commit is contained in:
parent
6e506eaea9
commit
d029a33453
|
@ -1196,9 +1196,9 @@ set FOO=
|
|||
endlocal
|
||||
cd .. & rd /s/q foobar
|
||||
|
||||
echo ------------ Testing CALL --------------
|
||||
echo ------------ Testing CALL ------------
|
||||
mkdir foobar & cd foobar
|
||||
rem External script
|
||||
echo ... external script ...
|
||||
echo echo foo %%1> foo.cmd
|
||||
call foo
|
||||
call foo.cmd 8
|
||||
|
@ -1210,7 +1210,8 @@ call foo.cmd "" bar
|
|||
call foo.cmd foo ''
|
||||
call foo.cmd '' bar
|
||||
del foo.cmd
|
||||
rem Internal routines
|
||||
|
||||
echo ... internal routines ...
|
||||
call :testRoutine :testRoutine
|
||||
goto :endTestRoutine
|
||||
:testRoutine
|
||||
|
@ -1230,7 +1231,7 @@ echo %1 %2
|
|||
goto :eof
|
||||
:endTestRoutineArgs
|
||||
|
||||
rem Should work for builtins...
|
||||
echo ... with builtins ...
|
||||
call mkdir foo
|
||||
echo %ErrorLevel%
|
||||
if exist foo (echo foo created) else echo foo should exist!
|
||||
|
|
|
@ -696,7 +696,8 @@ footype=foo_opencmd
|
|||
footype=foo_opencmd
|
||||
...resetting association
|
||||
@todo_wine@original value@or_broken@buggyXP@or_broken@!FOO!
|
||||
------------ Testing CALL --------------
|
||||
------------ Testing CALL ------------
|
||||
... external script ...
|
||||
foo@space@
|
||||
foo 8
|
||||
foo@space@@space@
|
||||
|
@ -705,6 +706,7 @@ foo bar@space@
|
|||
@todo_wine@"" bar@space@
|
||||
foo ''@space@
|
||||
'' bar@space@
|
||||
... internal routines ...
|
||||
bar :testRoutine
|
||||
foo@space@
|
||||
foo bar
|
||||
|
@ -712,6 +714,7 @@ foo bar
|
|||
@todo_wine@"" bar
|
||||
foo ''
|
||||
'' bar
|
||||
... with builtins ...
|
||||
@todo_wine@0
|
||||
@todo_wine@foo created
|
||||
@todo_wine@Should expand foobaz
|
||||
|
|
Loading…
Reference in New Issue