for the tests, I think we may want: for COPY, in programs/cmd/tests, in the section (--- success/failure for COPY command) both in the test_builtins.bat and .cmd cases (*), add (with the same wrappers as other tests): - COPY fileA fileA - COPY fileA+fileB fileA and check fileA contents after COPY (maybe reset it if content has been altered) - COPY fileA+fileB fileB and check fileB contents after COPY (maybe reset it if content has been altered)
Note: the 'COPY fileA+' (not listed above) case is hard to test, so it rather be tested by hand for now (fileA is not erased, only the modification time is changed)
(*) we need both as some return codes may vary between .cmd and .bat
for XCOPY, since it's an external command, it should rather be done in programs/xcopy, but same three cases as above is a good start (+ checking exit codes)