cmd/tests: add a couple basic copy tests
Austin English
austinenglish at gmail.com
Tue Jul 26 19:33:48 CDT 2011
https://testbot.winehq.org/JobDetails.pl?Key=12885 /
http://bugs.winehq.org/show_bug.cgi?id=27899
--
-Austin
-------------- next part --------------
diff --git a/programs/cmd/tests/test_builtins.cmd b/programs/cmd/tests/test_builtins.cmd
index 2062a9d..1668981 100644
--- a/programs/cmd/tests/test_builtins.cmd
+++ b/programs/cmd/tests/test_builtins.cmd
@@ -483,6 +483,16 @@ call dir /b
cd ..
rd /s/q foobar
+echo -----------Testing copy-----------
+echo a > a.txt
+type a.txt
+copy a.txt b.txt 2> nul > nul
+type b.txt
+echo c > c.txt
+rem this should combine the two files
+copy b.txt+c.txt test.txt 2> nul > nul
+if exist test.txt (echo test.txt was created) else echo test.txt was not created
+
echo -----------Testing Errorlevel-----------
rem WARNING: Do *not* add tests using ErrorLevel after this section
should_not_exist 2> nul > nul
diff --git a/programs/cmd/tests/test_builtins.cmd.exp b/programs/cmd/tests/test_builtins.cmd.exp
index d939ec5..d4de13d 100644
--- a/programs/cmd/tests/test_builtins.cmd.exp
+++ b/programs/cmd/tests/test_builtins.cmd.exp
@@ -226,6 +226,10 @@ bar :testRoutine
@todo_wine at 1
@todo_wine at 1
non-builtin dir
+-----------Testing copy-----------
+a
+a
+ at todo_wine@test.txt was created
-----------Testing Errorlevel-----------
9009
1
More information about the wine-patches
mailing list