Commit graph

18 commits

Author SHA1 Message Date
Hermès Bélusca-Maïto 4f4af5d271
[CMD_ROSTEST] Add tests for CALL label parsing, and for CALL and GOTO behaviour.
Tests adapted from https://stackoverflow.com/q/31987023/13530036
and from https://stackoverflow.com/a/38938416/13530036 .

- Test when CALL with a label containing /? actually calls GOTO's help,
  and test when CALL's help is displayed instead.

- Test when CALL with a label containing /?, but specified by variables,
  do NOT trigger GOTO's or CALL's help.

- Test the effect of the presence of escape carets in CALL label string.

- Test that CALL indeed supports double delayed expansion. Adapted from
  https://stackoverflow.com/a/31990563/13530036 .
2020-09-27 19:04:51 +02:00
Hermès Bélusca-Maïto 7988a2ac54
[CMD_ROSTEST] Add more tests for the command echoer and new tests for the parser. 2020-09-26 17:51:07 +02:00
Hermès Bélusca-Maïto f5cf67f455
[CMD_ROSTEST] Add tests for SET /A errorlevels. 2020-09-23 00:22:48 +02:00
Hermès Bélusca-Maïto 0b400bbb98
[CMD_ROSTEST] Add tests for particular ERRORLEVEL behaviour in some commands. 2020-09-23 00:22:45 +02:00
Hermès Bélusca-Maïto 69258973e0
[CMD_ROSTEST] Add tests for the FOR /F "tokens=" command. See commit 0695ecbf. 2020-09-22 23:08:13 +02:00
Hermès Bélusca-Maïto 014efdf7e8
[CMD_ROSTEST] Add tests for delayed expansion. 2020-09-19 19:44:53 +02:00
Hermès Bélusca-Maïto 4c9d322c68
[CMD_ROSTEST] Add tests for EXIT and CMD returned exit code values.
CORE-10495 CORE-13672

See also commits 8cf11060 (r40474), 26ff2c8e and 7bd33ac4.

More information can be also found at:
https://stackoverflow.com/a/34987886/13530036
and
https://stackoverflow.com/a/34937706/13530036
2020-08-19 20:36:02 +02:00
Hermès Bélusca-Maïto 71cd64d66a
[CMD_ROSTEST] Add tests for GOTO label parsing. 2020-08-19 20:36:01 +02:00
Hermès Bélusca-Maïto aee1dd2972
[CMD_ROSTEST] Add tests for GOTO :EOF 2020-08-19 20:36:00 +02:00
Hermès Bélusca-Maïto 8ed9a46dc2
[CMD_ROSTEST] Add tests for GOTO and CALL label search ordering. 2020-08-19 20:35:59 +02:00
Hermès Bélusca-Maïto 7f8792e005
[CMD_ROSTEST] Add tests for batch execution flow with GOTO and CALL commands.
- Tests for GOTO across IF parenthesized block (parser test with line
  continuation at closing parenthesis).

- Tests for showing how FOR-loops stop when a GOTO is encountered.

- Tests for EXIT command within IF block.
2020-08-19 20:35:58 +02:00
Hermès Bélusca-Maïto 988f8bd2f6
[CMD_ROSTEST] Add tests for the command echoer. 2020-08-19 20:35:55 +02:00
Hermès Bélusca-Maïto 23a52b2285
[CMD_ROSTEST] Minor improvements for the echo-ed info of the builtins tests. 2020-08-19 20:35:53 +02:00
Hermès Bélusca-Maïto d85d991679
[CMD_ROSTEST] Sync batch.c with cmd_winetest' counterpart. 2020-08-19 20:35:53 +02:00
Timo Kreuzer 42d2d5ec9c [ROSTESTS] fix x64 build and fix/disable warnings 2020-01-26 11:50:37 +01:00
Doug Lyons 79d67dc846 Merge pull request #1889 from Doug-Lyons/find_regression_test
Add Regression test for "find" using BAT with Conditionals "&&" and "||"
2019-09-01 23:03:16 +02:00
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
Colin Finck c2c66aff7d Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00