cmd/tests: Add basic cd tests.

This commit is contained in:
Frédéric Delanoy 2011-08-20 01:59:00 +02:00 committed by Alexandre Julliard
parent ff501904a7
commit 6bd0671f07
2 changed files with 45 additions and 0 deletions

View file

@ -244,6 +244,38 @@ if exist bar6 (
del bar6
)
echo ------------ Testing cd ------------
mkdir foobar
cd foobar
echo blabla > singleFile
dir /b
echo Current dir: %CD%
cd
cd ..
cd
cd foobar@space@
cd
cd ..
cd
cd @space@foobar
cd
cd..
cd
cd foobar
cd..@space@
cd
if not exist foobar (cd ..)
cd foobar
mkdir "bar bak"
cd "bar bak"
cd
cd ..
cd bar bak
cd
cd ..\..
cd
rd /Q/s foobar
echo ------------ Testing type ------------
echo bar> foobaz
@echo on

View file

@ -179,6 +179,19 @@ foo4
@todo_wine@...on failure conditional ||
@todo_wine@foo5
@todo_wine@foo6@space@
------------ Testing cd ------------
singleFile
Current dir: @pwd@\foobar@or_broken@Current dir:@space@
@pwd@\foobar
@pwd@
@pwd@\foobar
@pwd@
@pwd@\foobar
@pwd@
@todo_wine@@pwd@
@pwd@\foobar\bar bak
@pwd@\foobar\bar bak
@pwd@
------------ Testing type ------------
@pwd@>type foobaz@space@