Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

297 lines
5.5 KiB

  1. set tdrive=%1
  2. if "%1" == "" set tdrive=T:
  3. %tdrive%
  4. delnode /q \sub1\foo3\b1
  5. delnode /q \sub1\sub2\foo1\newdir2a
  6. delnode /q \sub1\foo3\newdir2a
  7. md \sub1\foo3\newdir2a
  8. md \sub1\foo3\newdir2a\A1
  9. md \sub1\foo3\newdir2a\B1
  10. md \sub1\foo3\newdir2a\A1\AA1
  11. md \sub1\foo3\newdir2a\A1\AA2
  12. md \sub1\foo3\newdir2a\B1\BB1
  13. md \sub1\foo3\newdir2a\B1\BB2
  14. md \sub1\foo3\newdir2a\B1\BB2\BBB3
  15. sleep 1
  16. rem movers subtree
  17. mv \sub1\foo3\newdir2a \sub1\sub2\foo1
  18. sleep 1
  19. rem movers part of subtree back
  20. mv \sub1\sub2\foo1\newdir2a\B1 \sub1\foo3
  21. sleep 1
  22. cd \
  23. goto QUIT
  24. goto R2
  25. REM ==================================================================
  26. REM Rename file test.
  27. :R2
  28. cd \
  29. del \sub1\sub2\foo1\jetwalk\obj\filetest.txt
  30. del \sub1\sub2\foo1\jetwalk\bnewname.txt
  31. rem create test file
  32. echo test1 > \sub1\sub2\foo1\jetwalk\obj\filetest.txt
  33. sleep 1
  34. REM mv file from one RS to another RS
  35. mv \sub1\sub2\foo1\jetwalk\obj\filetest.txt \sub1\foo3\
  36. sleep 1
  37. REM mv file from one RS to outside an RS
  38. mv \sub1\foo3\filetest.txt \sub1
  39. sleep 1
  40. REM mv file from outside an RS to inside an RS
  41. mv \sub1\filetest.txt \sub1\sub2\foo1\jetwalk\obj
  42. sleep 1
  43. REM create file outside rs
  44. echo test > \a.txt
  45. sleep 1
  46. rem MOVEIN file to rs
  47. mv a.txt \sub1\sub2\foo1\
  48. sleep 1
  49. rem create file inside rs.
  50. echo test > \sub1\sub2\foo1\b.txt
  51. sleep 1
  52. rem overwrite file in rs
  53. echo test2 > \sub1\sub2\foo1\b.txt
  54. sleep 1
  55. rem MOVDIR of file in rs
  56. mv \sub1\sub2\foo1\b.txt \sub1\sub2\foo1\jetwalk
  57. sleep 1
  58. rem rename on b.txt
  59. ren \sub1\sub2\foo1\jetwalk\b.txt bnewname.txt
  60. sleep 1
  61. rem create file in rs
  62. echo test3 > \sub1\foo3\test3.txt
  63. sleep 1
  64. rem move to diff rs
  65. mv \sub1\foo3\test3.txt \sub1\sub2\foo1\jetwalk\obj
  66. sleep 1
  67. rem delete it. should evap.
  68. del \sub1\sub2\foo1\jetwalk\obj\test3.txt
  69. sleep 1
  70. cd \
  71. goto QUIT
  72. REM ============================================================
  73. REM Rename dir test.
  74. :R1
  75. cd \
  76. REM mv dir from one RS to another RS
  77. mv \sub1\sub2\foo1\jetwalk\obj \sub1\foo3\obj
  78. sleep 1
  79. REM mv dir from one RS to outside an RS
  80. mv \sub1\foo3\obj \obj
  81. sleep 1
  82. REM mv dir from outside an RS to inside an RS
  83. mv \obj \sub1\sub2\foo1\jetwalk\obj
  84. sleep 1
  85. REM create file outside rs
  86. echo test > \a.txt
  87. sleep 1
  88. rem MOVEIN file to rs
  89. mv a.txt \sub1\sub2\foo1\
  90. sleep 1
  91. rem create file inside rs.
  92. echo test > \sub1\sub2\foo1\b.txt
  93. sleep 1
  94. rem overwrite file in rs
  95. echo test2 > \sub1\sub2\foo1\b.txt
  96. sleep 1
  97. rem delete dir in rs (non existent)
  98. delnode /q \sub1\foo3\newdir2a
  99. delnode /q \sub1\sub2\foo1\dstree\newdir2a
  100. md \sub1\sub2\foo1\dstree\newdir2a\A1
  101. md \sub1\sub2\foo1\dstree\newdir2a\B1
  102. md \sub1\sub2\foo1\dstree\newdir2a\A1\AA1
  103. md \sub1\sub2\foo1\dstree\newdir2a\A1\AA2
  104. md \sub1\sub2\foo1\dstree\newdir2a\B1\BB1
  105. md \sub1\sub2\foo1\dstree\newdir2a\B1\BB2
  106. md \sub1\sub2\foo1\dstree\newdir2a\B1\BB2\BBB3
  107. sleep 1
  108. mv \sub1\sub2\foo1\dstree\newdir2a \sub1\foo3\
  109. goto QUIT
  110. REM =====================================================================
  111. :R3
  112. rem cre dir in rs
  113. rd \sub1\sub2\foo1\newdir\jetwalk\newdir2\newdir2
  114. rd \sub1\foo3\dstree\newdir2b
  115. rem cre dir in rs
  116. md \sub1\sub2\foo1\newdir
  117. sleep 1
  118. rem MOVEDIR in rs
  119. mv \sub1\sub2\foo1\newdir \sub1\sub2\foo1\jetwalk
  120. sleep 1
  121. rem rename dir in same dir. Create for newdir2 not in journal.
  122. mv \sub1\sub2\foo1\jetwalk\newdir \sub1\sub2\foo1\jetwalk\bbb\newdir2
  123. sleep 1
  124. rem rename dir in same dir. Create for newdir2 not in journal.
  125. mv \sub1\sub2\foo1\jetwalk\newdir \sub1\sub2\foo1\jetwalk\newdir2
  126. sleep 1
  127. rem rename on newwdir2
  128. ren \sub1\sub2\foo1\jetwalk\newdir2 newdir2b
  129. sleep 1
  130. rem MOVEDIR
  131. mv \sub1\sub2\foo1\jetwalk\newdir2b \sub1\sub2\foo1
  132. sleep 1
  133. rem MOVEDIR
  134. mv \sub1\sub2\foo1\newdir2b \sub1\sub2\foo1\dstree
  135. sleep 1
  136. rem MOVERS
  137. mv \sub1\sub2\foo1\dstree\newdir2b \sub1\foo3\dstree
  138. sleep 1
  139. rem cre dir in rs
  140. rd t:\sub1\sub2\foo1\jetwalk\newdir_nameChange
  141. md \sub1\sub2\foo1\newnewdir
  142. sleep 1
  143. rem MOVEDIR in rs
  144. mv \sub1\sub2\foo1\newnewdir \sub1\sub2\foo1\jetwalk
  145. sleep 1
  146. cd \sub1\sub2\foo1\jetwalk
  147. ren newnewdir newdir_nameChange
  148. sleep 1
  149. cd \
  150. goto QUIT
  151. :T1
  152. cd \
  153. del T1test1 2> nul:
  154. echo create > T1test1
  155. echo overwrite > T1test1
  156. rename T1test1 T1test2
  157. echo append >> T1test2
  158. del T1test2
  159. :T2
  160. cd \sub1
  161. del T2test1 2> nul:
  162. echo create > T2test1
  163. echo overwrite > T2test1
  164. mv T2test1 \sub1\sub2\T2test2_in_sub2
  165. echo append >> \sub1\sub2\T2test2_in_sub2
  166. del \sub1\sub2\T2test2_in_sub2
  167. echo create > T2test1
  168. echo overwrite > T2test1
  169. mv T2test1 \sub1\sub2\foo1\T2test2_in_foo1
  170. echo append >> \sub1\sub2\foo1\T2test2_in_foo1
  171. del \sub1\sub2\foo1\T2test2_in_foo1
  172. :T3
  173. cd \sub1\sub2
  174. del T3test1 2> nul:
  175. echo create > T3test1
  176. echo overwrite > T3test1
  177. rename T3test1 T3test2
  178. echo append >> T3test2
  179. del T3test2
  180. :T4
  181. cd \sub1\sub2\foo1
  182. del T4test1 2> nul:
  183. echo create > T4test1
  184. echo overwrite > T4test1
  185. rename T4test1 T4test2
  186. echo append >> T4test2
  187. mv T4test2 \sub1\T4test2_insub1
  188. del \sub1\T4test2_insub1
  189. :T5
  190. cd \sub1\sub2\foo1\dstree
  191. del T5test1 2> nul:
  192. echo create > T5test1
  193. del T5test1 2> nul:
  194. echo create > T5test1
  195. del T5test1 2> T5nul:
  196. echo create > T5test1
  197. del T5test1 2> nul:
  198. echo create > T5test1
  199. del T5test1 2> nul:
  200. echo create > T5test1
  201. echo overwrite > T5test1
  202. rename T5test1 T5test2
  203. echo append >> T5test2
  204. del T5test2
  205. :T6
  206. cd \sub1\sub2\foo1\jetwalk
  207. del T6test1 2> nul:
  208. echo create > T6test1
  209. echo overwrite > T6test1
  210. rename T6test1 T6test2
  211. echo append >> T6test2
  212. del T6test2
  213. :T7
  214. cd \sub1\sub2\foo2
  215. del T7test1 2> nul:
  216. del T7test2 2> nul:
  217. echo create > T7test1
  218. echo overwrite > T7test1
  219. rename T7test1 T7test2
  220. echo append >> T7test2
  221. mv T7test2 \sub1\foo3\dstree
  222. del \sub1\foo3\dstree\T7test2
  223. :T8
  224. cd \sub1\foo3
  225. delnode /q jetwalk\slm.dif\T8
  226. xcopy /hice \sub1\sub2\foo1\dstree jetwalk\slm.dif\T8
  227. :QUIT
  228. E: