Frédéric Delanoy : cmd/tests: Add tests for mixed echo modes.
Module: wine Branch: master Commit: 745fbe084f37d280b96115f580b129c8e6610d19 URL: http://source.winehq.org/git/wine.git/?a=commit;h=745fbe084f37d280b96115f580... Author: Frédéric Delanoy <frederic.delanoy(a)gmail.com> Date: Sat Aug 27 02:11:33 2011 +0200 cmd/tests: Add tests for mixed echo modes. --- programs/cmd/tests/test_builtins.cmd | 11 +++++++++++ programs/cmd/tests/test_builtins.cmd.exp | 15 +++++++++++++++ 2 files changed, 26 insertions(+), 0 deletions(-) diff --git a/programs/cmd/tests/test_builtins.cmd b/programs/cmd/tests/test_builtins.cmd index bce966b..1250e89 100644 --- a/programs/cmd/tests/test_builtins.cmd +++ b/programs/cmd/tests/test_builtins.cmd @@ -54,6 +54,17 @@ echo @tab(a)word echo @tab(a)word echo(a)tab@@tab(a)word +echo ------------ Testing mixed echo modes -------------- +echo @echo on> mixedEchoModes.cmd +echo if 1==1 echo foo>> mixedEchoModes.cmd +echo if 1==1 @echo bar>> mixedEchoModes.cmd +echo @echo off>> mixedEchoModes.cmd +echo if 1==1 echo foo2>> mixedEchoModes.cmd +echo if 1==1 @echo bar2>> mixedEchoModes.cmd +type mixedEchoModes.cmd +cmd /c mixedEchoModes.cmd +del mixedEchoModes.cmd + echo ------------ Testing rem -------------- rem Hello rem Hello diff --git a/programs/cmd/tests/test_builtins.cmd.exp b/programs/cmd/tests/test_builtins.cmd.exp index eb7784f..5c545ed 100644 --- a/programs/cmd/tests/test_builtins.cmd.exp +++ b/programs/cmd/tests/test_builtins.cmd.exp @@ -99,6 +99,21 @@ word @tab(a)word @space@@tab(a)word @tab(a)word +------------ Testing mixed echo modes -------------- +(a)echo on +if 1==1 echo foo +if 1==1 @echo bar +(a)echo off +if 1==1 echo foo2 +if 1==1 @echo bar2 + +(a)todo_wine@@pwd@>if 1 == 1 echo foo(a)space@ +foo + +(a)todo_wine@@pwd@>if 1 == 1(a)space@ +bar +foo2 +bar2 ------------ Testing rem -------------- @pwd@>rem Hello(a)space@
participants (1)
-
Alexandre Julliard