reactos/modules/rostests/win32/cmd/test_builtins.cmd
Hermès Bélusca-Maïto 8dd89c7cfc
[ROSTESTS] Start adding ReactOS-owned tests for cmd.exe, based on Wine's.
CORE-7998

Based on Wine's cmd_winetest code, this first bunch of tests check how the
"for" command should process the newlines inside its parenthesed set.
Adapted by Doug Lyons.
2017-11-17 00:58:45 +01:00

31 lines
692 B
Batchfile

@echo off
echo ------------ Testing for1 ------------
echo --- plain FOR with multiple lines
for %%i in (A
B
C) do echo %%i
echo ------------ Testing for2 ------------
echo --- plain FOR with lines and spaces
for %%i in (D
E
F) do echo %%i
echo ------------ Testing for3 ------------
echo --- plain FOR with multiple lines and commas
for %%i in (G,
H,
I
) do echo %%i
echo ------------ Testing for4 ------------
echo --- plain FOR with multiple lines and %%I
for %%i in (J
K
L) do echo %%I
echo ------------ Testing for5 ------------
echo --- plain FOR with multiple lines and %%j
for %%i in (M,
N,
O
) do echo %%j
echo ------------ End of Testing ------------
echo --- Testing ends here