Commit Graph

198 Commits

Author SHA1 Message Date
Francois Gouget 66db270d22 cmd/tests: Use resynchronization points to better deal with two IF statements tests. 2011-11-30 16:41:12 +01:00
Francois Gouget 87a770fa73 cmd/tests: Tweak subsection headers so they are treated as resynchronization points. 2011-11-29 13:56:24 +01:00
Francois Gouget 128d0656de cmd/tests: Standardize the batch file section headers. 2011-11-29 13:56:12 +01:00
Francois Gouget 81f64ee906 cmd/tests: Treat lines that start with '---' as resynchronization points. 2011-11-29 13:56:03 +01:00
Frédéric Delanoy e8d8df3c54 cmd: Trim whitespace in echo on/off. 2011-11-15 11:44:40 +01:00
Frédéric Delanoy 45c1dff552 cmd: Make 'if errorlevel' only recognize integer values. 2011-10-28 12:43:27 +02:00
Frédéric Delanoy 6fd9d77426 cmd: Make RENAME work for read-only files. 2011-10-14 20:26:43 +02:00
Frédéric Delanoy d5523fcd80 cmd/tests: Show that read-only files are RENAMEable. 2011-10-14 20:26:43 +02:00
Frédéric Delanoy 1f5c0a6170 cmd/tests: Add tests for directories RENAMEs. 2011-10-14 20:26:43 +02:00
Frédéric Delanoy 1e4c17e5dd cmd: Make MOVE work for read-only files. 2011-10-13 20:07:28 +02:00
Frédéric Delanoy ad9ae2b8ff cmd/tests: Show that read-only files are MOVEable. 2011-10-13 20:07:26 +02:00
Frédéric Delanoy 212949f108 cmd/tests: Add MOVE tests. 2011-10-11 19:43:47 +02:00
Frédéric Delanoy cf826fe010 cmd/tests: Add RENAME tests. 2011-09-15 15:41:40 +02:00
Frédéric Delanoy ad064b44ed cmd/tests: Add tests for SHIFT builtin. 2011-09-14 17:27:24 +02:00
Frédéric Delanoy 8fff969ce6 cmd/tests: Segment mkdir tests for an easier read. 2011-09-13 17:17:55 +02:00
Frédéric Delanoy 195ee2f377 cmd/tests: Add tests for combined CALLs/GOTOs. 2011-09-12 16:49:56 +02:00
Frédéric Delanoy a33bad1edd cmd: Allow a batch file to delete itself. 2011-09-12 16:49:56 +02:00
Frédéric Delanoy cb63445b5e cmd: Show that windows doesn't lock/prevent access to batch file during execution. 2011-09-12 16:49:56 +02:00
Frédéric Delanoy d029a33453 cmd/tests: Segment CALL tests for an easier read. 2011-09-12 10:07:56 +02:00
Frédéric Delanoy 712276c7bf cmd: Fix IF operands parsing for '==' operator. 2011-09-08 20:08:07 +02:00
Frédéric Delanoy f35d52e20e cmd/tests: Add tests for IF '==' operator. 2011-09-05 19:32:32 +02:00
Frédéric Delanoy ba094f2830 cmd/tests: Add pushd/popd tests. 2011-08-31 19:43:07 +02:00
Frédéric Delanoy 74566422c7 cmd/tests: Add ftype tests. 2011-08-30 17:07:36 +02:00
Frédéric Delanoy 97b074d2da cmd: Fix invalid RegSetValueExW call in WCMD_assoc. 2011-08-30 16:56:03 +02:00
Frédéric Delanoy c08459d0be cmd/tests: Add assoc tests. 2011-08-30 16:55:55 +02:00
Frédéric Delanoy 745fbe084f cmd/tests: Add tests for mixed echo modes. 2011-08-29 13:55:59 +02:00
Frédéric Delanoy a2eb505d2c cmd/tests: Add tests for redirections within IF statements. 2011-08-29 13:55:54 +02:00
Frédéric Delanoy bbdaed2f33 cmd: Fix redirection handle parsing. 2011-08-29 13:55:41 +02:00
Frédéric Delanoy 523683d788 cmd/tests: Add tests for redirections using non stdout/stderr handles. 2011-08-29 13:55:29 +02:00
Frédéric Delanoy 003bdf8e69 cmd: Ignore trailing whitespace when using cd. 2011-08-29 13:55:12 +02:00
Frédéric Delanoy 9b79fd5777 cmd/tests: Add variable substitution tests. 2011-08-26 13:27:41 +02:00
Frédéric Delanoy 92356ca2b7 cmd/tests: Add tests for FOR /F 'skip' option. 2011-08-26 11:33:01 +02:00
Frédéric Delanoy fef13bf2ca cmd/tests: Add tests for FOR /F 'delims' option. 2011-08-26 11:32:58 +02:00
Frédéric Delanoy 1755885472 cmd/tests: Add tests for FOR /F 'eol' option. 2011-08-26 11:32:52 +02:00
Frédéric Delanoy bf0e1c7ca7 cmd/tests: Add basic FOR /F tests. 2011-08-26 11:32:47 +02:00
Frédéric Delanoy 199f788c31 cmd/tests: Add FOR tests for various quoted parameters. 2011-08-26 11:32:40 +02:00
Frédéric Delanoy 16744ed65e cmd/tests: Ensure ATTRIB tests pass on more Windows platforms.
There can be some default 'I' extended file attribute pertaining to
non-indexable file/folders by Indexing Service, e.g. when using CIFS.
2011-08-26 11:31:59 +02:00
Frédéric Delanoy 3ce59f5dba cmd/tests: Add attrib tests. 2011-08-25 19:15:29 +02:00
Frédéric Delanoy 82cdeb6d4d cmd/tests: Add tests for variables substrings. 2011-08-25 17:56:31 +02:00
Frédéric Delanoy 0decc777eb cmd/tests: Test handling of strings starting with on/off using the ECHO builtin. 2011-08-25 14:51:23 +02:00
Frédéric Delanoy 09655aca95 cmd: Misc tab fixes. 2011-08-25 14:51:16 +02:00
Frédéric Delanoy eda33f22ff cmd: Fix if/else tab handling. 2011-08-25 14:51:02 +02:00
Frédéric Delanoy 6d3fd3abcd cmd: Fix REM tab handling. 2011-08-25 14:50:51 +02:00
Frédéric Delanoy d147df418c cmd/tests: Add REM tests. 2011-08-25 14:50:43 +02:00
Frédéric Delanoy f37ab586d8 cmd: Skip tabs as well as spaces in WCMD_skip_leading_spaces. 2011-08-25 14:50:38 +02:00
Frédéric Delanoy 20fa3fe802 cmd: Fix FOR tab handling. 2011-08-24 14:01:13 +02:00
Frédéric Delanoy 6572de3cfa cmd: Fix ECHO tab issues. 2011-08-24 14:01:03 +02:00
Frédéric Delanoy a91eceaec0 cmd/tests: Add tests for tab handling. 2011-08-23 16:53:50 +02:00
Frédéric Delanoy 6bd0671f07 cmd/tests: Add basic cd tests. 2011-08-23 16:53:50 +02:00
Frédéric Delanoy 303af43ff5 cmd: Fix a FOR parsing bug when multiple spaces follow an IN. 2011-08-23 16:53:50 +02:00
Frédéric Delanoy 71a237d478 cmd: Fix handling of lines starting with echo. or echo:. 2011-08-05 16:41:14 +02:00
Frédéric Delanoy 28fe027eee cmd/tests: Add FOR /A tests. 2011-08-04 18:27:37 +02:00
Frédéric Delanoy 920bdcc4b8 cmd/tests: Add setlocal/endlocal tests. 2011-08-04 18:27:36 +02:00
Dan Kegel 6990cdfe96 cmd: mkdir: Set errorlevel and output error message if final directory already exists. 2011-08-03 17:46:05 +02:00
Dan Kegel 3cd864bdf8 cmd: mkdir: Set errorlevel on invalid argument. 2011-08-03 17:45:01 +02:00
Dan Kegel 15ce9a5784 cmd: mkdir: Handle multiple arguments. 2011-08-03 17:44:53 +02:00
Frédéric Delanoy 0cfe9fa6a5 cmd/tests: Additional tests for variable delayed expansion. 2011-08-02 20:47:51 +02:00
Frédéric Delanoy 3c8674a721 cmd/tests: Add tests for variable delayed expansion. 2011-08-01 18:26:27 +02:00
Frédéric Delanoy ce57ebe32d cmd/tests: Additional CALL tests. 2011-07-29 15:31:31 +02:00
Frédéric Delanoy 7fb790f8a7 cmd/tests: Add FOR /L tests. 2011-07-29 15:31:28 +02:00
Frédéric Delanoy 21f7c5db61 cmd/tests: Add FOR /D tests. 2011-07-29 15:31:25 +02:00
Frédéric Delanoy 327eb31325 cmd/tests: Additional variable expansion FOR tests. 2011-07-28 18:55:25 +02:00
Frédéric Delanoy 25fcad3768 cmd: Partial fix for echo's special ':' handling. 2011-07-28 18:55:07 +02:00
Frédéric Delanoy dcd544f744 cmd/tests: Test special handling of ':' in echo. 2011-07-28 18:54:50 +02:00
Frédéric Delanoy 5fe0f1e1dc cmd/tests: Fix test runner so it catches cases where an output line contains the associated expected line as prefix. 2011-07-28 18:54:47 +02:00
Frédéric Delanoy 011d5c331c cmd/tests: Add tests for stdout redirection and appending operators. 2011-07-27 12:28:12 +02:00
Frédéric Delanoy 414bd437a9 cmd/tests: Test multiple params rmdir. 2011-07-25 22:30:01 +02:00
Frédéric Delanoy 9e57a09bb5 cmd/tests: Test multiple params mkdir. 2011-07-25 22:29:59 +02:00
Frédéric Delanoy 1e28bbb88e cmd/tests: Add ^ escape character tests. 2011-07-25 14:01:05 +02:00
Frédéric Delanoy 3d9245830f cmd/tests: Add tests for || on failure conditional execution. 2011-07-25 14:00:48 +02:00
Frédéric Delanoy 73413693d6 cmd/tests: Add tests for && on success conditional execution. 2011-07-25 14:00:46 +02:00
Frédéric Delanoy 8b1d8e9e82 cmd/tests: Add tests for & (un)conditional execution. 2011-07-25 14:00:44 +02:00
Frédéric Delanoy 8f8aa7a35e cmd/tests: Add CALL tests. 2011-07-21 16:28:46 +02:00
Frédéric Delanoy 5d22f3aa14 cmd/tests: Add tests for NUL handling. 2011-07-19 18:26:22 +02:00
Frédéric Delanoy a28c7caf3e cmd/tests: Test that ErrorLevel is set to 9009 when unknown commands are encountered. 2011-07-19 14:04:25 +02:00
Frédéric Delanoy 23cd306a7d cmd/tests: Add tests for recursive rmdir. 2011-07-19 14:04:16 +02:00
Frédéric Delanoy 79926d6f2b cmd/tests: Add SET tests. 2011-07-18 16:23:30 +02:00
Frédéric Delanoy 4b4dd300f6 cmd: Avoid excess newline after TYPE outputs file contents. 2011-07-15 17:07:51 +02:00
André Hentschel a9504e276c cmd/tests: Add test for parameter detection. 2011-07-12 11:46:23 +02:00
Frédéric Delanoy b37d39e351 cmd/tests: Add basic rmdir tests. 2011-07-12 11:46:23 +02:00
Frédéric Delanoy 3f173faf1b cmd/tests: Add mkdir tests for trailing backslashes and invalid chars handling. 2011-07-12 11:46:23 +02:00
Frédéric Delanoy 9114dc5c03 cmd/tests: Add basic mkdir tests. 2011-07-12 11:46:23 +02:00
Frédéric Delanoy 63a6a80d40 cmd/tests: Add basic "for" tests. 2011-07-12 11:46:23 +02:00
Dan Kegel 32ea7d1f2e cmd: WCMD_delete: fix /s for dirnames containing spaces, add test. 2011-06-02 17:24:58 +02:00
Dan Kegel 3ccfbaef70 cmd: WCMD_delete: move "Delete *.* ?" processing into WCMD_delete_confirm_wildcard. 2011-05-31 18:32:59 +02:00
Dan Kegel 67873bdc9f cmd: Add simple test for %errorlevel%. 2011-05-26 15:23:56 +02:00
Dan Kegel ff1e7038b2 cmd: del /a: test deleting readonly files, with fix. 2011-05-24 13:26:04 +02:00
Detlef Riekenberg d62c6bb77f cmd: Allow GOTO to a label which has a following whitespace, with test. 2010-12-13 12:43:33 +01:00
Alexandre Goujon 4cd2a0e542 cmd: Add a space at the end of the first echo'ed batch line. 2010-11-08 18:13:36 +01:00
Jason Edmeades 32c8b46633 cmd: echo.word should echo back the word without the . 2010-09-08 19:49:30 +02:00
Austin English 27717a5127 cmd: Add testcases for goto. 2010-03-24 19:02:12 +01:00
Jacek Caban e486a02157 cmd: Added @or_broken@ handling to test templates and use it to fix tests on win2k. 2010-03-18 11:18:18 +01:00
Yann Droneaud ac8d92405c cmd: Add another expansion test.
Test %VAR%VAR% to check that the second variable is not expanded.
2010-03-16 17:03:38 +01:00
Yann Droneaud 954d06ca35 cmd: Remove %CD% test.
%CD% seems not supported on Windows NT 4.
2010-03-16 17:03:30 +01:00
Yann Droneaud 9bad2febf3 cmd: Added some expansion tests. 2010-03-15 16:51:37 +01:00
Trey Hunner 41c0db3ce9 cmd: Add test for 'if' case sensitivity. 2010-02-19 11:30:00 +01:00
Dan Kegel 8110dde8ae cmd: Fix 'else', with tests. 2010-02-18 12:43:00 +01:00
Dan Kegel e4fd5196c2 cmd: Rename reference file from .out to .exp to avoid clash with gnu make builtin rule. 2010-02-17 09:48:03 +01:00