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.

505 lines
20 KiB

  1. @perl -x -w %0 %*
  2. @goto :eof
  3. #!perl
  4. ################################################################################
  5. #
  6. # Script begins here. Above is overhead to make a happy batch file.
  7. #
  8. ################################################################################
  9. use srTest;
  10. use Cwd;
  11. my $dev = substr(cwd(),0,2);
  12. my $opOpt = "";
  13. my $sfOpt = "";
  14. #
  15. # the command to execute
  16. #
  17. # Operator defintions:
  18. # nnn: Commands to execute (can be search for)
  19. # ! internal PERL commands to be executed silently
  20. # ... anything else is a command to bshell
  21. #
  22. #
  23. SrRun (
  24. #rename file, file relative
  25. "1:Rename file \\rntest\\a.exe to\n \\rntest\\b.exe, file relative, no overwrite",
  26. "!mkdir '$dev/rntest/', 0",
  27. "!unlink '$dev/rntest/b.exe'", #make sure test files don't exist
  28. "op $opOpt /f\\$dev\\rntest\\a.exe /dzj /pzd",
  29. "sf $sfOpt /i0 /pf /cb /frb.exe",
  30. "cl /i0",
  31. "2:Rename file \\rntest\\a.exe to\n \\rntest\\b.exe, file relative, overwrite, not allowed",
  32. "!mkdir '$dev/rntest/', 0",
  33. "!crfile '$dev/rntest/b.exe'",
  34. "op $opOpt /f\\$dev\\rntest\\a.exe /dzj /pzd",
  35. "sf $sfOpt /i0 /pf /cb /frb.exe",
  36. "cl /i0",
  37. "3:Rename file \\rntest\\a.exe to\n \\rntest\\b.exe, file relative, overwrite",
  38. "!mkdir '$dev/rntest/', 0",
  39. "!crfile '$dev/rntest/b.exe'",
  40. "op $opOpt /f\\$dev\\rntest\\a.exe /dzj /pzd",
  41. "sf $sfOpt /i0 /pt /cb /frb.exe",
  42. "cl /i0",
  43. "4:Rename file \\rntest\\a.exe to\n \\rntest\\b.dat, file relative, to unmonitored, no overwrite",
  44. "!mkdir '$dev/rntest/', 0",
  45. "!unlink '$dev/rntest/b.dat'",
  46. "op $opOpt /f\\$dev\\rntest\\a.exe /dzj /pzd",
  47. "sf $sfOpt /i0 /pf /cb /frb.dat",
  48. "cl /i0",
  49. "5:Rename file \\rntest\\a.exe to\n \\rntest\\b.dat, file relative, to unmonitored, overwrite",
  50. "!mkdir '$dev/rntest/', 0",
  51. "!crfile '$dev/rntest/b.dat'",
  52. "op $opOpt /f\\$dev\\rntest\\a.exe /dzj /pzd",
  53. "sf $sfOpt /i0 /pt /cb /frb.dat",
  54. "cl /i0",
  55. "6:Rename file \\rntest\\a.dat to\n \\rntest\\b.exe, file relative, to interesting, no overwrite",
  56. "!mkdir '$dev/rntest/', 0",
  57. "!unlink '$dev/rntest/b.exe'",
  58. "op $opOpt /f\\$dev\\rntest\\a.dat /dzj /pzd",
  59. "sf $sfOpt /i0 /pf /cb /frb.exe",
  60. "cl /i0",
  61. "7:Rename file \\rntest\\a.dat to\n \\rntest\\b.exe, file relative, to interesting, overwrite",
  62. "!mkdir '$dev/rntest/', 0",
  63. "!crfile '$dev/rntest/b.exe'",
  64. "op $opOpt /f\\$dev\\rntest\\a.dat /dzj /pzd",
  65. "sf $sfOpt /i0 /pt /cb /frb.exe",
  66. "cl /i0",
  67. #rename file, via shortname
  68. "8:Rename file \\rntest\\alongf~1.exe to\n \\rntest\\anotherLongFileName.exe, file relative, via shortname",
  69. "!mkdir '$dev/rntest/', 0",
  70. "!unlink '$dev/rntest/anotherLongFileName.exe'",
  71. "!crfile '$dev/rntest/aLongFileName.exe'",
  72. "op $opOpt /f\\$dev\\rntest\\alongf~1.exe /dzj /pzb",
  73. "sf $sfOpt /i0 /pf /cb /franotherLongFileName.exe",
  74. "cl /i0",
  75. #rename file, to shortname, no overwrite
  76. "9:Rename file \\rntest\\a.exe to\n \\rntest\\alongf~1.exe, file relative, no overwrite",
  77. "!mkdir '$dev/rntest/', 0",
  78. "!unlink '$dev/rntest/alongf~1.exe'",
  79. "op $opOpt /f\\$dev\\rntest\\a.exe /dzj /pzd",
  80. "sf $sfOpt /i0 /pf /cb /fralongf~1.exe",
  81. "cl /i0",
  82. #rename file, to shortname, overwrite
  83. "10:Rename file \\rntest\\a.exe to\n \\rntest\\alongf~1.exe, file relative, overwrite",
  84. "!mkdir '$dev/rntest/', 0",
  85. "!unlink '$dev/rntest/alongf~1.exe'",
  86. "!unlink '$dev/rntest/aLongFileName.exe'",
  87. "!crfile '$dev/rntest/aLongFileName.exe'",
  88. "op $opOpt /f\\$dev\\rntest\\a.exe /dzj /pzd",
  89. "sf $sfOpt /i0 /pt /cb /fralongf~1.exe",
  90. "cl /i0",
  91. #rename file, to it own shortname
  92. "11:Rename file \\rntest\\aLongFileName.exe to\n \\rntest\\alongf~1.exe, file relative, to its own shortname",
  93. "!mkdir '$dev/rntest/', 0",
  94. "!unlink '$dev/rntest/alongf~1.exe'",
  95. "!unlink '$dev/rntest/aLongFileName.exe'",
  96. "!crfile '$dev/rntest/aLongFileName.exe'",
  97. "op $opOpt /f\\$dev\\rntest\\aLongFileName.exe /dzj /pzd",
  98. "sf $sfOpt /i0 /pt /cb /fralongf~1.exe",
  99. "cl /i0",
  100. #rename directory, file relative, with files
  101. "12:Rename directory \\rnTestDirectory to\n \\rnDirectoryTest, file relative, with files",
  102. "!mkdir '$dev/rnTestDirectory/', 0",
  103. "!crfile '$dev/rnTestDirectory/1.exe', 0",
  104. "!crfile '$dev/rnTestDirectory/2.exe', 0",
  105. "!crfile '$dev/rnTestDirectory/3.dat', 0",
  106. "!unlink <$dev/rnDirectoryTest/*>",
  107. "!rmdir '$dev/rnDirectoryTest'",
  108. "op $opOpt /f\\$dev\\rnTestDirectory /dzaj /pzb /nza",
  109. "sf $sfOpt /i0 /pf /cb /frrnDirectoryTest",
  110. "cl /i0",
  111. "13:Rename file \\rntest\\a.dat to\n \\rntest\\b.dat, file relative, no overwrite",
  112. "!mkdir '$dev/rntest/', 0",
  113. "!unlink '$dev/rntest/b.dat'", #make sure test files don't exist
  114. "op $opOpt /f\\$dev\\rntest\\a.dat /dzj /pzd",
  115. "sf $sfOpt /i0 /pf /cb /frb.dat",
  116. "cl /i0",
  117. #rename file over directory (fails)
  118. "14:Rename file \\rntest\\a.exe to\n directory \\rntest\\subdir, file relative, will fail",
  119. "!mkdir '$dev/rntest/', 0",
  120. "!mkdir '$dev/rntest/subdir/', 0",
  121. "op $opOpt /f\\$dev\\rntest\\a.exe /dzj /pzd",
  122. "sf $sfOpt /i0 /pt /cb /frsubdir",
  123. "cl /i0",
  124. #rename directory over file
  125. "15:Rename directory \\rntest\\subdir1 to\n directory \\rntest\\aaa.exe, file relative, overwrite file with directory ",
  126. "!mkdir '$dev/rntest/', 0",
  127. "!mkdir '$dev/rntest/subdir1', 0",
  128. "!rmdir '$dev/rntest/aaa.exe'",
  129. "!crfile '$dev/rntest/aaa.exe', 0",
  130. "op $opOpt /f\\$dev\\rntest\\subdir1 /dzaj /pzb /nza",
  131. "sf $sfOpt /i0 /pt /cb /fraaa.exe",
  132. "cl /i0",
  133. #rename file, full path
  134. "41:Rename file \\rntest1\\a.exe to\n \\rntest2\\b.exe, full path, no overwrite",
  135. "!mkdir '$dev/rntest1/', 0",
  136. "!mkdir '$dev/rntest2/', 0",
  137. "!unlink '$dev/rntest2/b.exe'",
  138. "op $opOpt /f\\$dev\\rntest1\\a.exe /dzj /pzd",
  139. "sf $sfOpt /i0 /pf /cb /fr\\??\\$dev\\rntest2\\b.exe",
  140. "cl /i0",
  141. "42:Rename file \\rntest1\\a.exe to\n \\rntest2\\b.exe, full path, overwrite, not allowed",
  142. "!mkdir '$dev/rntest1/', 0",
  143. "!mkdir '$dev/rntest2/', 0",
  144. "!crfile '$dev/rntest2/b.exe'",
  145. "op $opOpt /f\\$dev\\rntest1\\a.exe /dzj /pzd",
  146. "sf $sfOpt /i0 /pf /cb /fr\\??\\$dev\\rntest2\\b.exe",
  147. "cl /i0",
  148. "43:Rename file \\rntest1\\a.exe to\n \\rntest2\\b.exe, full path, overwrite",
  149. "!mkdir '$dev/rntest1/', 0",
  150. "!mkdir '$dev/rntest2/', 0",
  151. "!crfile '$dev/rntest2/b.exe'",
  152. "op $opOpt /f\\$dev\\rntest1\\a.exe /dzj /pzd",
  153. "sf $sfOpt /i0 /pt /cb /fr\\??\\$dev\\rntest2\\b.exe",
  154. "cl /i0",
  155. "44:Rename file \\rntest1\\a.exe to\n \\rntest2\\b.dat, full path, to unmonitored, no overwrite",
  156. "!mkdir '$dev/rntest1/', 0",
  157. "!mkdir '$dev/rntest2/', 0",
  158. "!unlink '$dev/rntest2/b.dat'",
  159. "op $opOpt /f\\$dev\\rntest1\\a.exe /dzj /pzd",
  160. "sf $sfOpt /i0 /pf /cb /fr\\??\\$dev\\rntest2\\b.dat",
  161. "cl /i0",
  162. "45:Rename file \\rntest1\\a.exe to\n \\rntest2\\b.dat, full path, to unmonitored, overwrite",
  163. "!mkdir '$dev/rntest1/', 0",
  164. "!mkdir '$dev/rntest2/', 0",
  165. "!crfile '$dev/rntest2/b.dat'",
  166. "op $opOpt /f\\$dev\\rntest1\\a.exe /dzj /pzd",
  167. "sf $sfOpt /i0 /pt /cb /fr\\??\\$dev\\rntest2\\b.dat",
  168. "cl /i0",
  169. "46:Rename file \\rntest1\\a.dat to\n \\rntest2\\b.exe, full path, to interesting, no overwrite",
  170. "!mkdir '$dev/rntest1/', 0",
  171. "!mkdir '$dev/rntest2/', 0",
  172. "!unlink '$dev/rntest2/b.exe'",
  173. "op $opOpt /f\\$dev\\rntest1\\a.dat /dzj /pzd",
  174. "sf $sfOpt /i0 /pf /cb /fr\\??\\$dev\\rntest2\\b.exe",
  175. "cl /i0",
  176. "47:Rename file \\rntest1\\a.dat to\n \\rntest2\\b.exe, full path, to interesting, overwrite",
  177. "!mkdir '$dev/rntest1/', 0",
  178. "!mkdir '$dev/rntest2/', 0",
  179. "!crfile '$dev/rntest2/b.exe'",
  180. "op $opOpt /f\\$dev\\rntest1\\a.dat /dzj /pzd",
  181. "sf $sfOpt /i0 /pt /cb /fr\\??\\$dev\\rntest2\\b.exe",
  182. "cl /i0",
  183. #rename file, via shortname
  184. "48:Rename file \\rntest1\\alongf~1.exe to\n \\rntest2\\anotherLongFileName.exe, full path, via shortname",
  185. "!mkdir '$dev/rntest1/', 0",
  186. "!mkdir '$dev/rntest2/', 0",
  187. "!unlink '$dev/rntest2/anotherLongFileName.exe'",
  188. "!crfile '$dev/rntest1/aLongFileName.exe'",
  189. "op $opOpt /f\\$dev\\rntest1\\alongf~1.exe /dzj /pzb",
  190. "sf $sfOpt /i0 /pf /cb /fr\\??\\$dev\\rntest2\\anotherLongFileName.exe",
  191. "cl /i0",
  192. #rename file, to shortname, no overwrite
  193. "49:Rename file \\rntest\\a.exe to\n \\rntest\\alongf~1.exe, full path, no overwrite",
  194. "!mkdir '$dev/rntest/', 0",
  195. "!unlink '$dev/rntest/alongf~1.exe'",
  196. "op $opOpt /f\\$dev\\rntest\\a.exe /dzj /pzd",
  197. "sf $sfOpt /i0 /pf /cb /fr\\??\\$dev\\rntest\\alongf~1.exe",
  198. "cl /i0",
  199. #rename file, to shortname, overwrite
  200. "50:Rename file \\rntest\\a.exe to\n \\rntest\\alongf~1.exe, full path, overwrite",
  201. "!mkdir '$dev/rntest/', 0",
  202. "!unlink '$dev/rntest/alongf~1.exe'",
  203. "!unlink '$dev/rntest/aLongFileName.exe'",
  204. "!crfile '$dev/rntest/aLongFileName.exe'",
  205. "op $opOpt /f\\$dev\\rntest\\a.exe /dzj /pzd",
  206. "sf $sfOpt /i0 /pt /cb /fr\\??\\$dev\\rntest\\alongf~1.exe",
  207. "cl /i0",
  208. #rename file, to it own shortname
  209. "51:Rename file \\rntest\\aLongFileName.exe to\n \\rntest\\alongf~1.exe, full path, to its own shortname",
  210. "!mkdir '$dev/rntest/', 0",
  211. "!unlink '$dev/rntest/alongf~1.exe'",
  212. "!unlink '$dev/rntest/aLongFileName.exe'",
  213. "!crfile '$dev/rntest/aLongFileName.exe'",
  214. "op $opOpt /f\\$dev\\rntest\\aLongFileName.exe /dzj /pzd",
  215. "sf $sfOpt /i0 /pt /cb /fr\\??\\$dev\\rntest\\alongf~1.exe",
  216. "cl /i0",
  217. #rename directory, fullpath
  218. "52:Rename directory \\rntest1\\rnTestDirectory to\n \\rntest2\\rnDirectoryTest, full path, with files",
  219. "!mkdir '$dev/rntest1/', 0",
  220. "!mkdir '$dev/rntest2/', 0",
  221. "!mkdir '$dev/rntest1/rnTestDirectory/', 0",
  222. "!crfile '$dev/rntest1/rnTestDirectory/1.exe', 0",
  223. "!crfile '$dev/rntest1/rnTestDirectory/2.exe', 0",
  224. "!crfile '$dev/rntest1/rnTestDirectory/3.dat', 0",
  225. "!unlink <$dev/rntest2/rnDirectoryTest/*>",
  226. "!rmdir '$dev/rntest2/rnDirectoryTest/'",
  227. "op $opOpt /f\\$dev\\rntest1\\rnTestDirectory /dzaj /pzb /nza",
  228. "sf $sfOpt /i0 /pf /cb /fr\\??\\$dev\\rntest2\\rnDirectoryTest",
  229. "cl /i0",
  230. #rename directory, fullpath
  231. "53:Rename directory \\rntest1\\rnTestDirectory to\n \\temp\\rnTestDirectory, full path, with files, to unmonitored",
  232. "!mkdir '$dev/rntest1/', 0",
  233. "!mkdir '$dev/temp/', 0",
  234. "!mkdir '$dev/rntest1/rnTestDirectory/', 0",
  235. "!crfile '$dev/rntest1/rnTestDirectory/1.exe', 0",
  236. "!crfile '$dev/rntest1/rnTestDirectory/2.exe', 0",
  237. "!crfile '$dev/rntest1/rnTestDirectory/3.dat', 0",
  238. "!unlink <$dev/temp/rnTestDirectory/*>",
  239. "!rmdir '$dev/temp/rnTestDirectory/'",
  240. "op $opOpt /f\\$dev\\rntest1\\rnTestDirectory /dzaj /pzb /nza",
  241. "sf $sfOpt /i0 /pf /cb /fr\\??\\$dev\\temp\\rnTestDirectory",
  242. "cl /i0",
  243. #rename directory, fullpath
  244. "54:Rename directory \\temp\\rnTestDirectory to\n \\rntest2\\rnTestDirectory, full path, with files, to unmonitored",
  245. "!mkdir '$dev/temp/', 0",
  246. "!mkdir '$dev/rntest2/', 0",
  247. "!mkdir '$dev/temp/rnTestDirectory/', 0",
  248. "!crfile '$dev/temp/rnTestDirectory/1.exe', 0",
  249. "!crfile '$dev/temp/rnTestDirectory/2.exe', 0",
  250. "!crfile '$dev/temp/rnTestDirectory/3.dat', 0",
  251. "!unlink <$dev/rntest2/rnTestDirectory/*>",
  252. "!rmdir '$dev/rntest2/rnTestDirectory/'",
  253. "op $opOpt /f\\$dev\\temp\\rnTestDirectory /dzaj /pzb /nza",
  254. "sf $sfOpt /i0 /pf /cb /fr\\??\\$dev\\rntest2\\rnTestDirectory",
  255. "cl /i0",
  256. #rename file, path relative
  257. "81:Rename file \\rntest\\subdir1\\a.exe to\n \\rntest\\subdir2\\b.exe, directory relative, no overwrite",
  258. "!mkdir '$dev/rntest/', 0",
  259. "!mkdir '$dev/rntest/subdir1/', 0",
  260. "!mkdir '$dev/rntest/subdir2/', 0",
  261. "!unlink '$dev/rntest/subdir2/b.exe'",
  262. "op $opOpt /f\\$dev\\rntest\\ /dza /pzb /nza",
  263. "op $opOpt /f\\$dev\\rntest\\subdir1\\a.exe /dzj /pzd",
  264. "sf $sfOpt /i1 /pf /cb /r0 /frsubdir2\\b.exe",
  265. "cl /i0",
  266. "cl /i1",
  267. "82:Rename file \\rntest\\subdir1\\a.exe to\n \\rntest\\subdir2\\b.exe, full path, overwrite, not allowed",
  268. "!mkdir '$dev/rntest/', 0",
  269. "!mkdir '$dev/rntest/subdir1/', 0",
  270. "!mkdir '$dev/rntest/subdir2/', 0",
  271. "!crfile '$dev/rntest/subdir2/b.exe'",
  272. "op $opOpt /f\\$dev\\rntest\\ /dza /pzb /nza",
  273. "op $opOpt /f\\$dev\\rntest\\subdir1\\a.exe /dzj /pzd",
  274. "sf $sfOpt /ii /pf /cb /r0 /frsubdir2\\b.exe",
  275. "cl /i0",
  276. "cl /i1",
  277. "83:Rename file \\rntest\\subdir1\\a.exe to\n \\rntest\\subdir2\\b.exe, full path, overwrite",
  278. "!mkdir '$dev/rntest/', 0",
  279. "!mkdir '$dev/rntest/subdir1/', 0",
  280. "!mkdir '$dev/rntest/subdir2/', 0",
  281. "!crfile '$dev/rntest/subdir2/b.exe'",
  282. "op $opOpt /f\\$dev\\rntest\\ /dza /pzb /nza",
  283. "op $opOpt /f\\$dev\\rntest\\subdir1\\a.exe /dzj /pzd",
  284. "sf $sfOpt /i1 /pt /cb /r0 /frsubdir2\\b.exe",
  285. "cl /i1",
  286. "cl /i0",
  287. #rename streams
  288. #rename file with stream from unmonitored to monitored space
  289. "100:Rename file \\rntest\\a.dat with stream :stream1 to\n \\rntest\\b.exe",
  290. "!disableSr $dev\\",
  291. "!mkdir '$dev/rntest/', 0",
  292. "!unlink '$dev/rntest/b.exe'",
  293. "!unlink '$dev/rntest/a.dat'",
  294. "!crfile '$dev/rntest/a.dat', 0",
  295. "!crfile '$dev/rntest/a.dat:stream1', 0",
  296. "!enableSr $dev\\",
  297. "op $opOpt /f\\$dev\\rntest\\a.dat /dzj /pzb",
  298. "sf $sfOpt /i0 /pf /cb /frb.exe",
  299. "cl /i0",
  300. "101:Rename file \\rntest\\a.exe with stream :stream1 to\n \\rntest\\b.exe",
  301. "!disableSr $dev\\",
  302. "!mkdir '$dev/rntest/', 0",
  303. "!unlink '$dev/rntest/b.exe'",
  304. "!unlink '$dev/rntest/a.exe'",
  305. "!crfile '$dev/rntest/a.exe', 0",
  306. "!crfile '$dev/rntest/a.exe:stream1', 0",
  307. "!enableSr $dev\\",
  308. "op $opOpt /f\\$dev\\rntest\\a.exe /dzj /pzb",
  309. "sf $sfOpt /i0 /pf /cb /frb.exe",
  310. "cl /i0",
  311. "102:Rename file \\rntest\\a.dat with stream :stream1 to\n \\rntest\\b.dat",
  312. "!disableSr $dev\\",
  313. "!mkdir '$dev/rntest/', 0",
  314. "!unlink '$dev/rntest/b.dat'",
  315. "!unlink '$dev/rntest/a.dat'",
  316. "!crfile '$dev/rntest/a.dat', 0",
  317. "!crfile '$dev/rntest/a.dat:stream1', 0",
  318. "!enableSr $dev\\",
  319. "op $opOpt /f\\$dev\\rntest\\a.dat /dzj /pzb",
  320. "sf $sfOpt /i0 /pf /cb /frb.dat",
  321. "cl /i0",
  322. "103:Rename file \\rntest\\a.exe with stream :stream1 to\n \\rntest\\b.dat",
  323. "!disableSr $dev\\",
  324. "!mkdir '$dev/rntest/', 0",
  325. "!unlink '$dev/rntest/b.dat'",
  326. "!unlink '$dev/rntest/a.exe'",
  327. "!crfile '$dev/rntest/a.exe', 0",
  328. "!crfile '$dev/rntest/a.exe:stream1', 0",
  329. "!enableSr $dev\\",
  330. "op $opOpt /f\\$dev\\rntest\\a.exe /dzj /pzb",
  331. "sf $sfOpt /i0 /pf /cb /frb.dat",
  332. "cl /i0",
  333. "104:Rename stream \\rntest\\a.exe:stream1 to\n :stream2 (doesn't exist)",
  334. "!disableSr $dev\\",
  335. "!mkdir '$dev/rntest/', 0",
  336. "!unlink '$dev/rntest/a.exe'",
  337. "!crfile '$dev/rntest/a.exe', 0",
  338. "!crfile '$dev/rntest/a.exe:stream1', 0",
  339. "!enableSr $dev\\",
  340. "op $opOpt /f\\$dev\\rntest\\a.exe:stream1 /dzj /pzb",
  341. "sf $sfOpt /i0 /pf /cb /fr:stream2",
  342. "cl /i0",
  343. "105:Rename stream \\rntest\\a.dat:stream1 to\n :stream2 (doesn't exist)",
  344. "!disableSr $dev\\",
  345. "!mkdir '$dev/rntest/', 0",
  346. "!unlink '$dev/rntest/a.dat'",
  347. "!crfile '$dev/rntest/a.dat', 0",
  348. "!crfile '$dev/rntest/a.dat:stream1', 0",
  349. "!enableSr $dev\\",
  350. "op $opOpt /f\\$dev\\rntest\\a.dat:stream1 /dzj /pzb",
  351. "sf $sfOpt /i0 /pf /cb /fr:stream2",
  352. "cl /i0",
  353. "106:Rename stream \\rntest\\a.exe:stream1 to\n :stream2 (exists, no data, overwrite allowed)",
  354. "!disableSr $dev\\",
  355. "!mkdir '$dev/rntest/', 0",
  356. "!unlink '$dev/rntest/a.exe'",
  357. "!crfile '$dev/rntest/a.exe', 0",
  358. "!crfile '$dev/rntest/a.exe:stream1', 0",
  359. "!crfile '$dev/rntest/a.exe:stream2', 0",
  360. "!enableSr $dev\\",
  361. "op $opOpt /f\\$dev\\rntest\\a.exe:stream1 /dzj /pzb",
  362. "sf $sfOpt /i0 /pt /cb /fr:stream2",
  363. "cl /i0",
  364. "107:Rename stream \\rntest\\a.dat:stream1 to\n :stream2 (exists, no data, overwrite allowed)",
  365. "!disableSr $dev\\",
  366. "!mkdir '$dev/rntest/', 0",
  367. "!unlink '$dev/rntest/a.dat'",
  368. "!crfile '$dev/rntest/a.dat', 0",
  369. "!crfile '$dev/rntest/a.dat:stream1', 0",
  370. "!crfile '$dev/rntest/a.dat:stream2', 0",
  371. "!enableSr $dev\\",
  372. "op $opOpt /f\\$dev\\rntest\\a.dat:stream1 /dzj /pzb",
  373. "sf $sfOpt /i0 /pt /cb /fr:stream2",
  374. "cl /i0",
  375. "108:Rename stream \\rntest\\a.exe:stream1 to\n :stream2 (exists, no data, overwrite not allowed)\nWILL FAIL",
  376. "!disableSr $dev\\",
  377. "!mkdir '$dev/rntest/', 0",
  378. "!unlink '$dev/rntest/a.exe'",
  379. "!crfile '$dev/rntest/a.exe', 0",
  380. "!crfile '$dev/rntest/a.exe:stream1', 0",
  381. "!crfile '$dev/rntest/a.exe:stream2', 0",
  382. "!enableSr $dev\\",
  383. "op $opOpt /f\\$dev\\rntest\\a.exe:stream1 /dzj /pzb",
  384. "sf $sfOpt /i0 /pf /cb /fr:stream2",
  385. "cl /i0",
  386. "109:Rename stream \\rntest\\a.dat:stream1 to\n :stream2 (exists, no data, overwrite not allowed)\nWILL FAIL",
  387. "!disableSr $dev\\",
  388. "!mkdir '$dev/rntest/', 0",
  389. "!unlink '$dev/rntest/a.dat'",
  390. "!crfile '$dev/rntest/a.dat', 0",
  391. "!crfile '$dev/rntest/a.dat:stream1', 0",
  392. "!crfile '$dev/rntest/a.dat:stream2', 0",
  393. "!enableSr $dev\\",
  394. "op $opOpt /f\\$dev\\rntest\\a.dat:stream1 /dzj /pzb",
  395. "sf $sfOpt /i0 /pf /cb /fr:stream2",
  396. "cl /i0",
  397. "110:Rename stream \\rntest\\a.exe:stream1 to\n :stream2 (exists, with data, overwrite allowed)\nWILL FAIL",
  398. "!disableSr $dev\\",
  399. "!mkdir '$dev/rntest/', 0",
  400. "!unlink '$dev/rntest/a.exe'",
  401. "!crfile '$dev/rntest/a.exe', 0",
  402. "!crfile '$dev/rntest/a.exe:stream1', 0",
  403. "!crdatafile '$dev/rntest/a.dat:stream2', 0",
  404. "!enableSr $dev\\",
  405. "op $opOpt /f\\$dev\\rntest\\a.exe:stream1 /dzj /pzb",
  406. "sf $sfOpt /i0 /pt /cb /fr:stream2",
  407. "cl /i0",
  408. "111:Rename stream \\rntest\\a.dat:stream1 to\n :stream2 (exists, with data, overwrite allowed)\nWILL FAIL",
  409. "!disableSr $dev\\",
  410. "!mkdir '$dev/rntest/', 0",
  411. "!unlink '$dev/rntest/a.dat'",
  412. "!crfile '$dev/rntest/a.dat', 0",
  413. "!crfile '$dev/rntest/a.dat:stream1', 0",
  414. "!crdatafile '$dev/rntest/a.dat:stream2', 0",
  415. "!enableSr $dev\\",
  416. "op $opOpt /f\\$dev\\rntest\\a.dat:stream1 /dzj /pzb",
  417. "sf $sfOpt /i0 /pt /cb /fr:stream2",
  418. "cl /i0",
  419. "112:Rename stream \\rntest\\a.exe:stream1 to\n :stream2 (exists, with data, overwrite not allowed)\nWILL FAIL",
  420. "!disableSr $dev\\",
  421. "!mkdir '$dev/rntest/', 0",
  422. "!unlink '$dev/rntest/a.exe'",
  423. "!crfile '$dev/rntest/a.exe', 0",
  424. "!crfile '$dev/rntest/a.exe:stream1', 0",
  425. "!crdatafile '$dev/rntest/a.dat:stream2', 0",
  426. "!enableSr $dev\\",
  427. "op $opOpt /f\\$dev\\rntest\\a.exe:stream1 /dzj /pzb",
  428. "sf $sfOpt /i0 /pf /cb /fr:stream2",
  429. "cl /i0",
  430. "113:Rename stream \\rntest\\a.dat:stream1 to\n :stream2 (exists, with data, overwrite not allowed)\nWILL FAIL",
  431. "!disableSr $dev\\",
  432. "!mkdir '$dev/rntest/', 0",
  433. "!unlink '$dev/rntest/a.dat'",
  434. "!crfile '$dev/rntest/a.dat', 0",
  435. "!crfile '$dev/rntest/a.dat:stream1', 0",
  436. "!crdatafile '$dev/rntest/a.dat:stream2', 0",
  437. "!enableSr $dev\\",
  438. "op $opOpt /f\\$dev\\rntest\\a.dat:stream1 /dzj /pzb",
  439. "sf $sfOpt /i0 /pf /cb /fr:stream2",
  440. "cl /i0",
  441. );