cmd/tests: Add pushd/popd tests.

This commit is contained in:
Frédéric Delanoy 2011-08-30 23:33:52 +02:00 committed by Alexandre Julliard
parent 4e862b8440
commit ba094f2830
2 changed files with 48 additions and 0 deletions

View File

@ -1027,6 +1027,39 @@ if not exist foobar (echo foobar removed) else echo foobar not removed!
if not exist bar\baz (echo bar\baz removed) else echo bar\baz not removed!
cd .. & rd /s/q foobaz
echo ----------- Testing pushd/popd -----------
cd
echo ...popd is no-op when dir stack is empty
popd
cd
echo ...pushing non-existing dir
pushd foobar
cd
echo ...basic behaviour
mkdir foobar\baz
pushd foobar
cd
popd
cd
pushd foobar
pushd baz
cd
popd
cd
pushd baz
popd
cd
popd
cd
pushd .
cd foobar\baz
pushd ..
cd
popd
popd
cd
rd /s/q foobar
echo ------------ Testing attrib --------------
rem FIXME Add tests for archive, hidden and system attributes + mixed attributes modifications
mkdir foobar & cd foobar

View File

@ -634,6 +634,21 @@ foo removed
bar removed
foobar removed
bar\baz removed
----------- Testing pushd/popd -----------
@pwd@
...popd is no-op when dir stack is empty
@pwd@
...pushing non-existing dir
@pwd@
...basic behaviour
@pwd@\foobar
@pwd@
@pwd@\foobar\baz
@pwd@\foobar
@pwd@\foobar
@pwd@
@pwd@\foobar
@pwd@
------------ Testing attrib --------------
@todo_wine@A @pwd@\foobar\foo@or_broken@A @pwd@\foobar\foo@or_broken@A I @pwd@\foobar\foo
... read-only attribute