cmd: Add a space at the end of the first echo'ed batch line.
[wine/multimedia.git] / programs / cmd / tests / test_builtins.cmd.exp
blobdee2c5b9ed9de632575d59eaba237b9e1cf40f02
2 @pwd@>echo Tests for cmd's builtin commands@space@
3 Tests for cmd's builtin commands
5 @pwd@>echo ------------ Testing 'echo' [ON] --------------@space@
6 ------------ Testing 'echo' [ON] --------------
8 @pwd@>echo word@space@
9 word
11 @pwd@>echo 'singlequotedword'@space@
12 'singlequotedword'
14 @pwd@>echo "doublequotedword"@space@
15 "doublequotedword"
16 at-echoed-word
18 @pwd@>echo "/?"@space@
19 "/?"
21 @pwd@>echo.
24 @pwd@>echo .@space@
27 @pwd@>echo.word
28 word
30 @pwd@>echo .word@space@
31 .word
33 @pwd@>echo word@space@@space@
34 word@space@
36 @pwd@>echo word@space@@space@@space@
37 word@space@@space@
38 ------------ Testing 'echo' [OFF] --------------
39 word
40 'singlequotedword'
41 "doublequotedword"
42 at-echoed-word
43 "/?"
46 word
47 .word
48 word@space@
49 word@space@@space@
50 ------------ Testing 'set' --------------
51 set "FOO=bar" should not include the quotes in the variable value
52 bar
53 ------------ Testing variable expansion --------------
54 ~dp0 should be directory containing batch file
55 @pwd@\
56 @pwd@\
57 CD value @pwd@@or_broken@CD value
64 ERRORLEVEL
67 0ERRORLEVEL
72 P0S
73 ------------ Testing if/else --------------
74 if/else should work with blocks
75 if seems to work
76 else seems to work
77 Testing case sensitivity with and without /i option
78 if seems to default to case sensitivity
79 if /i seems to work
80 if /I seems to work
81 -----------Testing GOTO-----------
82 goto with no leading space worked
83 goto with a leading space worked
84 goto with a leading tab worked