cmd/tests: add a couple basic copy tests (try 2)
Austin English
austinenglish at gmail.com
Tue Jul 26 19:39:18 CDT 2011
Forgot to cleanup :)
https://testbot.winehq.org/JobDetails.pl?Key=12887
--
-Austin
-------------- next part --------------
diff --git a/programs/cmd/tests/test_builtins.cmd b/programs/cmd/tests/test_builtins.cmd
index 2062a9d..51e2c9f 100644
--- a/programs/cmd/tests/test_builtins.cmd
+++ b/programs/cmd/tests/test_builtins.cmd
@@ -483,6 +483,20 @@ 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
+ del test.txt
+) else echo test.txt was not created
+del a.txt b.txt c.txt
+
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