qualiu@mypc d:\opengit\msr\tools
$ windows-test.bat 1
################## 1-6: Test color group begin ##################  
2019-11-26 20:28:44.897 +0800 CST Succeeded to replace 1 lines in d:\opengit\msr\tools\tmp-color-group-test.log
1-1 : d:\opengit\msr\tools\tmp-color-group-test.log
Replaced 1 lines(3.45%) in 1 files(100%), read 29 lines 983 B in 1 files. Used 0.006622 s, from 2019-11-26 20:28:44.895393 +0800 China Standard Time. Checked 1 files, opened 1 files 983 B, matched 1 files = 983 B = 983 bytes. Searched dept
h = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 1 , MinOpenedDepth = 1 , MinMatchedDepth = 1 . Source = d:\opengit\msr\tools\tmp-color-group-test.log . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit\msr\tools ; Command = msr -p
 d:\opengit\msr\tools\tmp-color-group-test.log -ix d:\opengit\msr\tools -o . -ROc UnifyCurrentToDot
Replaced 0 blocks with 0 lines in 0 files, read 29 lines 964 B in 1 files with 1 blocks. Used 0.000820 s, from 2019-11-26 20:28:45.191712 +0800 China Standard Time. Checked 1 files, opened 1 files 964 B, matched 0 files = 0 B = 0 bytes. Se
arched depth = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 0 , MinOpenedDepth = 1 , MinMatchedDepth = 0 . Source = d:\opengit\msr\tools\tmp-color-group-test.log . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit\msr\tools ; Comma
nd = msr -p d:\opengit\msr\tools\tmp-color-group-test.log -b "^(msr|msr).*\s+-l -f bat\s+" -Q "^Matched|^\s*$" -t "\S+\.bat$" -o Replace-Real-File-Name-To-Avoid-Difference -Rc
Got 0 lines ONLY in base-color-group-test.log (0%/0%) NOT in tmp-color-group-test.log , read 58 rows = 29 rows in d:\opengit\msr\tools\base-color-group-test.log + 29 rows in d:\opengit\msr\tools\tmp-color-group-test.log (unique-lines = 15 
= 51.72% , duplicate = 14 = 48.28%) . Used 0.041 s. (from 2019-11-26 20:28:45 +0800 CST)
Got 0 lines ONLY in tmp-color-group-test.log (0%/0%) NOT in base-color-group-test.log , read 58 rows = 29 rows in d:\opengit\msr\tools\tmp-color-group-test.log + 29 rows in d:\opengit\msr\tools\base-color-group-test.log (unique-lines = 15 
= 51.72% , duplicate = 14 = 48.28%) . Used 0.000 s. (from 2019-11-26 20:28:45 +0800 CST)
################## "1-6: Test color grouppassed and no differences ######################


################## 2-6: Replace file and verify begin ##################  
Test-Replace-File-And-Verify-1: msr -p sample-test.txt -t Function -o Function -R -c Should not replace or change file
Test-Replace-File-And-Verify-2: msr -p sample-test.txt -t Function -o FuncTion --nx pair -R -c Should not replace or change file
Test-Replace-File-And-Verify-3: msr -p sample-test.txt -t Function -o FuncTion --nt pair -R -c Should not replace or change file
Test-Replace-File-And-Verify-4: msr -p sample-test.txt -L 37 -N 40 -S -t "\r?\n|\r\n?" -o " -New-Line- " -R -c
Test-Replace-File-And-Verify-5: msr -p sample-test.txt -L 33 -N 36 -t "\bName\b" -o PairName -R -c
Test-Replace-File-And-Verify-6: msr -p sample-test.txt -L 37 -N 40 -t "\bName\b" -o PairName -R -c
Test-Replace-File-And-Verify-7: msr -p sample-test.txt -L 35 -t "\bName\b" -o PairName -q 4000 -R -c
Test-Replace-File-And-Verify-8: msr -p sample-test.txt -b "\s*</pair" -t "\bName\b" -o PairName -q 4000 -R -c
Test-Replace-File-And-Verify-9: msr -p sample-test.txt -b "\s*<pair" -Q "\s*</pair" -t "\bName\b" -o PairName -R -c
Test-Replace-File-And-Verify-10: msr -p sample-test.txt -b "\s*<pair" -Q "\s*</pair" -t "\bName\b" -o PairName -q "\s*</pair" -R -c
Test-Replace-File-And-Verify-11: msr -p sample-test.txt -b "\s*<pair" -Q "\s*</pair" -S -t "\r?\n|\r\n?" -o " -New-Line- " -R -c
Test-Replace-File-And-Verify-12: msr -p sample-test.txt -b "\s*<Tag" -Q "^\s*</Tag" --nt "Node2" -t "\bName\b" -o PairName -R -c
Test-Replace-File-And-Verify-13: msr -p sample-test.txt -b "\s*<Tag" -Q "^\s*</Tag" --nx "Node2" -t "\bName\b" -o PairName -R -c
Test-Replace-File-And-Verify-14: msr -p sample-test.txt -b "\s*\[section[5-7]" -Q "" -y -S -t "\r?\n|\r\n?" -o " -New-Line- " -R -c
Test-Replace-File-And-Verify-15: msr -p sample-test.txt -b "\s*\[section[5-7]" -Q "" -y --nt section6 -S -t "\r?\n|\r\n?" -o " -New-Line- " -R -c
Test-Replace-File-And-Verify-16: msr -p sample-test.txt -b "\s*<pair" -Q "\s*</pair" -L 33 -N 36 -t "\bName\b" -o PairName -R -c
Test-Replace-File-And-Verify-17: msr -p sample-test.txt -b "\s*<pair" -Q "\s*</pair" -L 37 -N 40 -t "\bName\b" -o PairName -R -c
Test-Replace-File-And-Verify-18: msr -p sample-test.txt -b "\s*<pair" -Q "\s*</pair" -L 35 -t "\bName\b" -o PairName -q 4000 -R -c
Test-Replace-File-And-Verify-19: msr -p sample-test.txt -L 37 -q "\s*</pair" -S -t "\r?\n|\r\n?" -o " -New-Line- " -R -c
Test-Replace-File-And-Verify-20: msr -p sample-test.txt -b "\s*<pair" -Q "\s*</pair" -L 35 -S -t "\r?\n|\r\n?" -o " -New-Line- " -R -c
Test-Replace-File-And-Verify-21: msr -p sample-test.txt -b "\s*<pair" -Q "\s*</pair" -L 35 -S -t "\r?\n|\r\n?" -o " -New-Line- " -q "\s*</pair" -R -c
Test-Replace-File-And-Verify-22: msr -p sample-test.txt -b "\s*<pair" -Q "\s*</pair" -N 36 -S -t "\r?\n|\r\n?" -o " -New-Line- " -R -c
################## 2-6: Replace file and verify passed ##################  


################## 3-6: Test output only replaced ##################  
msr -p example-commands.bat -t "msr -c (.+\s+-o\s+)" --nt "\s+-R" -o "msr -c -j $1" -PAC | msr -x %~dp0 -o . -a -X > test-only-output-replaced-lines.log
2019-11-26 20:29:10.806 +0800 CST Succeeded to replace 117 lines in d:\opengit\msr\tools\test-only-output-replaced-lines.log
1-1 : d:\opengit\msr\tools\test-only-output-replaced-lines.log
Replaced 117 lines(13.19%) in 1 files(100%), read 887 lines 75.39 KB in 1 files. Used 0.017374 s, from 2019-11-26 20:29:10.793931 +0800 China Standard Time. Checked 1 files, opened 1 files 75.39 KB, matched 1 files = 75.39 KB = 77202 bytes
. Searched depth = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 1 , MinOpenedDepth = 1 , MinMatchedDepth = 1 . Source = d:\opengit\msr\tools\test-only-output-replaced-lines.log . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit\ms
r\tools ; Command = msr -p d:\opengit\msr\tools\test-only-output-replaced-lines.log -it "(?<=files)\s*\(\d+\S+\) in \d+ files.*|Used\s*\d+.*from.*\d-\d+.*|[,;]\s*(EXE|Directory|command)\s*=.*|[,;]*\s*read\s+\d+\s+line.*|Used \d+.*?command\
S+\s*=\s*" -o "" -ROc RemoveTotalFileInfoAndDateTimeDir
2019-11-26 20:29:10.924 +0800 CST Succeeded to replace 110 lines in d:\opengit\msr\tools\test-only-output-replaced-lines.log
1-1 : d:\opengit\msr\tools\test-only-output-replaced-lines.log
Replaced 110 lines(12.40%) in 1 files(100%), read 887 lines 44.44 KB in 1 files. Used 0.018482 s, from 2019-11-26 20:29:10.910958 +0800 China Standard Time. Checked 1 files, opened 1 files 44.44 KB, matched 1 files = 44.44 KB = 45503 bytes
. Searched depth = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 1 , MinOpenedDepth = 1 , MinMatchedDepth = 1 . Source = d:\opengit\msr\tools\test-only-output-replaced-lines.log . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit\ms
r\tools ; Command = msr -p d:\opengit\msr\tools\test-only-output-replaced-lines.log -it "(^|\s+)[\\\\/\w\.:-]+(example-commands.bat|sample-file.txt)" -o "$1$2" -ROc UnifyDirectory
2019-11-26 20:29:11.289 +0800 CST Succeeded to replace 116 lines in d:\opengit\msr\tools\test-only-output-replaced-lines.log
1-1 : d:\opengit\msr\tools\test-only-output-replaced-lines.log
Replaced 116 lines(13.08%) in 1 files(100%), read 887 lines 44.22 KB in 1 files. Used 0.007667 s, from 2019-11-26 20:29:11.286642 +0800 China Standard Time. Checked 1 files, opened 1 files 44.22 KB, matched 1 files = 44.22 KB = 45283 bytes
. Searched depth = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 1 , MinOpenedDepth = 1 , MinMatchedDepth = 1 . Source = d:\opengit\msr\tools\test-only-output-replaced-lines.log . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit\ms
r\tools ; Command = msr -p d:\opengit\msr\tools\test-only-output-replaced-lines.log -t "^\d+\S+ \d+:\d+:\S+.*?(Run-Command|Return-Value)" -o "$1" -ROc UnifyExecuteCommands
Replaced 0 blocks with 0 lines in 0 files, read 887 lines 40.37 KB in 1 files with 0 blocks. Used 0.001786 s, from 2019-11-26 20:29:11.399411 +0800 China Standard Time. Checked 1 files, opened 1 files 40.37 KB, matched 0 files = 0 B = 0 by
tes. Searched depth = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 0 , MinOpenedDepth = 1 , MinMatchedDepth = 0 . Source = d:\opengit\msr\tools\test-only-output-replaced-lines.log . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit
\msr\tools ; Command = msr -p d:\opengit\msr\tools\test-only-output-replaced-lines.log -b "^(msr|msr).*\s+-l -f bat\s+" -Q "^Matched|^\s*$" -t "\S+\.bat$" -o Replace-Real-File-Name-To-Avoid-Difference -Rc
Got 0 lines ONLY in base-test-only-output-replaced-lines.log (0%/0%) NOT in test-only-output-replaced-lines.log , read 1774 rows = 887 rows in d:\opengit\msr\tools\base-test-only-output-replaced-lines.log + 887 rows in d:\opengit\msr\tools
\test-only-output-replaced-lines.log (unique-lines = 382 = 43.07% , duplicate = 505 = 56.93%) . Used 0.017 s. (from 2019-11-26 20:29:11 +0800 CST)
Got 0 lines ONLY in test-only-output-replaced-lines.log (0%/0%) NOT in base-test-only-output-replaced-lines.log , read 1774 rows = 887 rows in d:\opengit\msr\tools\test-only-output-replaced-lines.log + 887 rows in d:\opengit\msr\tools\base
-test-only-output-replaced-lines.log (unique-lines = 382 = 43.07% , duplicate = 505 = 56.93%) . Used 0.001 s. (from 2019-11-26 20:29:11 +0800 CST)
################## "3-6: Test output only replacedpassed and no differences ######################


################## 4-6: Test list files ##################  
msr -p d:\opengit\msr\tools\test-list-files.cmd -x "%~dp0" -o d:\opengit\msr\tools -PAC | msr -t "^\S+" -o "msr" -X > test-list-files.log
msr -p d:\opengit\msr\tools\test-list-files.cmd -x "%~dp0" -o d:\opengit\msr\tools -PAC | msr -t "^\S+" -o "msr" -PAC | msr -t "\s*(--wt|--sz)\s*" -o " " -X >> test-list-files.log
2019-11-26 20:29:20.728 +0800 CST Succeeded to replace 82 lines in d:\opengit\msr\tools\test-list-files.log
1-1 : d:\opengit\msr\tools\test-list-files.log
Replaced 82 lines(25.08%) in 1 files(100%), read 327 lines 26.90 KB in 1 files. Used 0.008147 s, from 2019-11-26 20:29:20.725623 +0800 China Standard Time. Checked 1 files, opened 1 files 26.90 KB, matched 1 files = 26.90 KB = 27547 bytes.
 Searched depth = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 1 , MinOpenedDepth = 1 , MinMatchedDepth = 1 . Source = d:\opengit\msr\tools\test-list-files.log . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit\msr\tools ; Command
 = msr -p d:\opengit\msr\tools\test-list-files.log -it "(?<=files)\s*\(\d+\S+\) in \d+ files.*|Used\s*\d+.*from.*\d-\d+.*|[,;]\s*(EXE|Directory|command)\s*=.*|[,;]*\s*read\s+\d+\s+line.*|Used \d+.*?command\S+\s*=\s*" -o "" -ROc RemoveTotal
FileInfoAndDateTimeDir
2019-11-26 20:29:20.817 +0800 CST Succeeded to replace 10 lines in d:\opengit\msr\tools\test-list-files.log
1-1 : d:\opengit\msr\tools\test-list-files.log
Replaced 10 lines(3.06%) in 1 files(100%), read 327 lines 14.75 KB in 1 files. Used 0.006502 s, from 2019-11-26 20:29:20.815014 +0800 China Standard Time. Checked 1 files, opened 1 files 14.75 KB, matched 1 files = 14.75 KB = 15106 bytes.
Searched depth = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 1 , MinOpenedDepth = 1 , MinMatchedDepth = 1 . Source = d:\opengit\msr\tools\test-list-files.log . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit\msr\tools ; Command
= msr -p d:\opengit\msr\tools\test-list-files.log -it "(^|\s+)[\\\\/\w\.:-]+(example-commands.bat|sample-file.txt)" -o "$1$2" -ROc UnifyDirectory
2019-11-26 20:29:20.915 +0800 CST Succeeded to replace 100 lines in d:\opengit\msr\tools\test-list-files.log
1-1 : d:\opengit\msr\tools\test-list-files.log
Replaced 100 lines(30.58%) in 1 files(100%), read 327 lines 14.55 KB in 1 files. Used 0.007426 s, from 2019-11-26 20:29:20.912929 +0800 China Standard Time. Checked 1 files, opened 1 files 14.55 KB, matched 1 files = 14.55 KB = 14896 bytes
. Searched depth = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 1 , MinOpenedDepth = 1 , MinMatchedDepth = 1 . Source = d:\opengit\msr\tools\test-list-files.log . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit\msr\tools ; Comman
d = msr -p d:\opengit\msr\tools\test-list-files.log -ix d:\opengit\msr\tools -o . -ROc UnifyCurrentToDot
2019-11-26 20:29:21.008 +0800 CST Succeeded to replace 25 lines in d:\opengit\msr\tools\test-list-files.log
1-1 : d:\opengit\msr\tools\test-list-files.log
Replaced 25 lines(7.65%) in 1 files(100%), read 327 lines 12.69 KB in 1 files. Used 0.007334 s, from 2019-11-26 20:29:21.006155 +0800 China Standard Time. Checked 1 files, opened 1 files 12.69 KB, matched 1 files = 12.69 KB = 12996 bytes.
Searched depth = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 1 , MinOpenedDepth = 1 , MinMatchedDepth = 1 . Source = d:\opengit\msr\tools\test-list-files.log . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit\msr\tools ; Command
= msr -p d:\opengit\msr\tools\test-list-files.log -t "\s*\d+\.?\d*(\s*[KM]?B)(\s*\t\s*)\d+" -o "  Number-Unit  Bytes" -ROc ReplaceDetailSizeBytes
2019-11-26 20:29:21.096 +0800 CST Succeeded to replace 59 lines in d:\opengit\msr\tools\test-list-files.log
1-1 : d:\opengit\msr\tools\test-list-files.log
Replaced 59 lines(18.04%) in 1 files(100%), read 327 lines 12.74 KB in 1 files. Used 0.006507 s, from 2019-11-26 20:29:21.095249 +0800 China Standard Time. Checked 1 files, opened 1 files 12.74 KB, matched 1 files = 12.74 KB = 13046 bytes.
 Searched depth = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 1 , MinOpenedDepth = 1 , MinMatchedDepth = 1 . Source = d:\opengit\msr\tools\test-list-files.log . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit\msr\tools ; Command
 = msr -p d:\opengit\msr\tools\test-list-files.log -t "\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(\s*\t\s*)" -o "yyyy-MM-dd HH:mm:ss$1" -ROc ReplaceDetailFileTime
2019-11-26 20:29:21.191 +0800 CST Succeeded to replace 80 lines in d:\opengit\msr\tools\test-list-files.log
1-1 : d:\opengit\msr\tools\test-list-files.log
Replaced 80 lines(24.46%) in 1 files(100%), read 327 lines 12.74 KB in 1 files. Used 0.005601 s, from 2019-11-26 20:29:21.190241 +0800 China Standard Time. Checked 1 files, opened 1 files 12.74 KB, matched 1 files = 12.74 KB = 13046 bytes.
 Searched depth = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 1 , MinOpenedDepth = 1 , MinMatchedDepth = 1 . Source = d:\opengit\msr\tools\test-list-files.log . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit\msr\tools ; Command
 = msr -p d:\opengit\msr\tools\test-list-files.log -t "^\d+\S+ \d+:\d+:\S+.*?(Run-Command|Return-Value)" -o "$1" -ROc UnifyExecuteCommands
Replaced 0 blocks with 0 lines in 0 files, read 327 lines 10.08 KB in 1 files with 0 blocks. Used 0.000560 s, from 2019-11-26 20:29:21.274909 +0800 China Standard Time. Checked 1 files, opened 1 files 10.08 KB, matched 0 files = 0 B = 0 by
tes. Searched depth = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 0 , MinOpenedDepth = 1 , MinMatchedDepth = 0 . Source = d:\opengit\msr\tools\test-list-files.log . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit\msr\tools ; Com
mand = msr -p d:\opengit\msr\tools\test-list-files.log -b "^(msr|msr).*\s+-l -f bat\s+" -Q "^Matched|^\s*$" -t "\S+\.bat$" -o Replace-Real-File-Name-To-Avoid-Difference -Rc
Got 0 lines ONLY in base-test-list-files.log (0%/0%) NOT in test-list-files.log , read 654 rows = 327 rows in d:\opengit\msr\tools\base-test-list-files.log + 327 rows in d:\opengit\msr\tools\test-list-files.log (unique-lines = 103 = 31.50%
 , duplicate = 224 = 68.50%) . Used 0.023 s. (from 2019-11-26 20:29:21 +0800 CST)
Got 0 lines ONLY in test-list-files.log (0%/0%) NOT in base-test-list-files.log , read 654 rows = 327 rows in d:\opengit\msr\tools\test-list-files.log + 327 rows in d:\opengit\msr\tools\base-test-list-files.log (unique-lines = 103 = 31.50%
 , duplicate = 224 = 68.50%) . Used 0.001 s. (from 2019-11-26 20:29:21 +0800 CST)
################## "4-6: Test list filespassed and no differences ######################


################## 5-6: Reading from file test begin ##################  
msr -it "msr -c" -o "msr -c" -p d:\opengit\msr\tools\example-commands.bat --nt "\s+-R\b" -PAC | msr -it "\bmsr\s+" -o "msr " -PAC | msr -ix "%~dp0" -o d:\opengit\msr\tools -a -PIC | msr --nx Node1.tmp
Matched 150 lines(96.77%) from stdin, read 155 lines. Used 0.047997 s, from 2019-11-26 20:29:21.836625 +0800 CST.
Matched 5 files(13.89%) in 36 files, read 0 lines 0 B in 0 files. Used 0.000337 s, from 2019-11-26 20:29:22.513518 +0800 China Standard Time. Checked 36 files 49.38 KB, opened 0 files 0 B, matched 5 files = 49.38 KB = 50569 bytes. Searched
 depth = 1 , MaxOpenedDepth = 0 , MaxMatchedDepth = 1 , MinOpenedDepth = 0 , MinMatchedDepth = 1 . Source = d:\opengit\msr\tools . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit\msr\tools ; Command = msr -c -p d:\opengit\msr\t
ools -f bat -l -PIC -H 0
msr -p d:\opengit\msr\tools\example-commands.bat -b "::Stop calqualiu" --nt "::Stop calqualiu" -ix "%~dp0" -o %~dp0 -a -PAC | msr -it "\bmsr\b" -o "msr" -a -XPAC
Matched 1 blocks(100%) with 13 lines(9.70%) in 1 files(100%), read 134 lines 2.70 KB in 1 files with 1 blocks. Used 0.000534 s, from 2019-11-26 20:29:33.688185 +0800 China Standard Time. Checked 1 files, opened 1 files 2.70 KB, matched 1 f
iles = 2.70 KB = 2764 bytes. Searched depth = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 1 , MinOpenedDepth = 1 , MinMatchedDepth = 1 . Source = d:\opengit\msr\tools\sample-file.txt . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\ope
ngit\msr\tools ; Command = msr -c -p d:\opengit\msr\tools\sample-file.txt -b "<Tag Name.*?Node1.*?>" -Q "</Tag>" -PIC
Total executed lines = 3 , non-zero-return-count = 3 , return-zero-count = 0 , positive-return-count = 3 , negative-return-count = 0 , positive-return-sum = 3 , negative-return-sum = 0 , exceptions = 0 . Matched 3 lines(100%) from stdin, r
ead 3 lines. Used 0.487622 s, from 2019-11-26 20:29:33.824836 +0800 China Standard Time. EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit\msr\tools ; Command = msr -XI -c Automatic extract macro and replace to real values.      
Passed, input-length(32) - output-length(32) = 0. Executed. Input string = if exist Node1.tmp del Node1.tmp
2019-11-26 20:29:35.100 +0800 CST Succeeded to replace 154 lines in d:\opengit\msr\tools\file-test-result-on-windows.log
1-1 : d:\opengit\msr\tools\file-test-result-on-windows.log
Replaced 154 lines(7.95%) in 1 files(100%), read 1938 lines 196.14 KB in 1 files. Used 0.024024 s, from 2019-11-26 20:29:35.081449 +0800 China Standard Time. Checked 1 files, opened 1 files 196.14 KB, matched 1 files = 196.14 KB = 200848 b
ytes. Searched depth = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 1 , MinOpenedDepth = 1 , MinMatchedDepth = 1 . Source = d:\opengit\msr\tools\file-test-result-on-windows.log . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit\ms
r\tools ; Command = msr -p d:\opengit\msr\tools\file-test-result-on-windows.log -it "(?<=files)\s*\(\d+\S+\) in \d+ files.*|Used\s*\d+.*from.*\d-\d+.*|[,;]\s*(EXE|Directory|command)\s*=.*|[,;]*\s*read\s+\d+\s+line.*|Used \d+.*?command\S+\s
*=\s*" -o "" -ROc RemoveTotalFileInfoAndDateTimeDir
2019-11-26 20:29:35.208 +0800 CST Succeeded to replace 1100 lines in d:\opengit\msr\tools\file-test-result-on-windows.log
1-1 : d:\opengit\msr\tools\file-test-result-on-windows.log
Replaced 1100 lines(56.76%) in 1 files(100%), read 1938 lines 116.57 KB in 1 files. Used 0.016692 s, from 2019-11-26 20:29:35.196971 +0800 China Standard Time. Checked 1 files, opened 1 files 116.57 KB, matched 1 files = 116.57 KB = 119371
 bytes. Searched depth = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 1 , MinOpenedDepth = 1 , MinMatchedDepth = 1 . Source = d:\opengit\msr\tools\file-test-result-on-windows.log . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit\
msr\tools ; Command = msr -p d:\opengit\msr\tools\file-test-result-on-windows.log -it "(^|\s+)[\\\\/\w\.:-]+(example-commands.bat|sample-file.txt)" -o "$1$2" -ROc UnifyDirectory
2019-11-26 20:29:35.303 +0800 CST Succeeded to replace 48 lines in d:\opengit\msr\tools\file-test-result-on-windows.log
1-1 : d:\opengit\msr\tools\file-test-result-on-windows.log
Replaced 48 lines(2.48%) in 1 files(100%), read 1938 lines 94.01 KB in 1 files. Used 0.009112 s, from 2019-11-26 20:29:35.299526 +0800 China Standard Time. Checked 1 files, opened 1 files 94.01 KB, matched 1 files = 94.01 KB = 96271 bytes.
 Searched depth = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 1 , MinOpenedDepth = 1 , MinMatchedDepth = 1 . Source = d:\opengit\msr\tools\file-test-result-on-windows.log . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit\msr\too
ls ; Command = msr -p d:\opengit\msr\tools\file-test-result-on-windows.log -ix d:\opengit\msr\tools -o . -ROc UnifyCurrentToDot
2019-11-26 20:29:35.403 +0800 CST Succeeded to replace 3 lines in d:\opengit\msr\tools\file-test-result-on-windows.log
1-1 : d:\opengit\msr\tools\file-test-result-on-windows.log
Replaced 3 lines(0.15%) in 1 files(100%), read 1938 lines 93.12 KB in 1 files. Used 0.012732 s, from 2019-11-26 20:29:35.396031 +0800 China Standard Time. Checked 1 files, opened 1 files 93.12 KB, matched 1 files = 93.12 KB = 95359 bytes.
Searched depth = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 1 , MinOpenedDepth = 1 , MinMatchedDepth = 1 . Source = d:\opengit\msr\tools\file-test-result-on-windows.log . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit\msr\tool
s ; Command = msr -p d:\opengit\msr\tools\file-test-result-on-windows.log -t "\s*\d+\.?\d*(\s*[KM]?B)(\s*\t\s*)\d+" -o "  Number-Unit  Bytes" -ROc ReplaceDetailSizeBytes
2019-11-26 20:29:35.495 +0800 CST Succeeded to replace 5 lines in d:\opengit\msr\tools\file-test-result-on-windows.log
1-1 : d:\opengit\msr\tools\file-test-result-on-windows.log
Replaced 5 lines(0.26%) in 1 files(100%), read 1938 lines 93.13 KB in 1 files. Used 0.009871 s, from 2019-11-26 20:29:35.490964 +0800 China Standard Time. Checked 1 files, opened 1 files 93.13 KB, matched 1 files = 93.13 KB = 95365 bytes.
Searched depth = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 1 , MinOpenedDepth = 1 , MinMatchedDepth = 1 . Source = d:\opengit\msr\tools\file-test-result-on-windows.log . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit\msr\tool
s ; Command = msr -p d:\opengit\msr\tools\file-test-result-on-windows.log -t "\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(\s*\t\s*)" -o "yyyy-MM-dd HH:mm:ss$1" -ROc ReplaceDetailFileTime
2019-11-26 20:29:35.584 +0800 CST Succeeded to replace 3 lines in d:\opengit\msr\tools\file-test-result-on-windows.log
1-1 : d:\opengit\msr\tools\file-test-result-on-windows.log
Replaced 3 lines(0.15%) in 1 files(100%), read 1938 lines 93.13 KB in 1 files. Used 0.009595 s, from 2019-11-26 20:29:35.579520 +0800 China Standard Time. Checked 1 files, opened 1 files 93.13 KB, matched 1 files = 93.13 KB = 95365 bytes.
Searched depth = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 1 , MinOpenedDepth = 1 , MinMatchedDepth = 1 . Source = d:\opengit\msr\tools\file-test-result-on-windows.log . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit\msr\tool
s ; Command = msr -p d:\opengit\msr\tools\file-test-result-on-windows.log -t "^\d+\S+ \d+:\d+:\S+.*?(Run-Command|Return-Value)" -o "$1" -ROc UnifyExecuteCommands
2019-11-26 20:29:35.673 +0800 CST Succeeded to replace 16 lines in d:\opengit\msr\tools\file-test-result-on-windows.log
1-1 : d:\opengit\msr\tools\file-test-result-on-windows.log
Replaced 6 blocks(0.31%) with 16 lines(0.83%) in 1 files(100%), read 1938 lines 93.03 KB in 1 files with 6 blocks. Used 0.006807 s, from 2019-11-26 20:29:35.671158 +0800 China Standard Time. Checked 1 files, opened 1 files 93.03 KB, matche
d 1 files = 93.03 KB = 95263 bytes. Searched depth = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 1 , MinOpenedDepth = 1 , MinMatchedDepth = 1 . Source = d:\opengit\msr\tools\file-test-result-on-windows.log . EXE = d:\opengit\msr\tools\msr.e
xe ; Directory = d:\opengit\msr\tools ; Command = msr -p d:\opengit\msr\tools\file-test-result-on-windows.log -b "^(msr|msr).*\s+-l -f bat\s+" -Q "^Matched|^\s*$" -t "\S+\.bat$" -o Replace-Real-File-Name-To-Avoid-Difference -Rc            
Got 0 lines ONLY in base-windows-file-test.log (0%/0%) NOT in file-test-result-on-windows.log , read 3876 rows = 1938 rows in d:\opengit\msr\tools\base-windows-file-test.log + 1938 rows in d:\opengit\msr\tools\file-test-result-on-windows.l
og (unique-lines = 732 = 37.77% , duplicate = 1206 = 62.23%) . Used 0.002 s. (from 2019-11-26 20:29:35 +0800 CST)
Got 0 lines ONLY in file-test-result-on-windows.log (0%/0%) NOT in base-windows-file-test.log , read 3876 rows = 1938 rows in d:\opengit\msr\tools\file-test-result-on-windows.log + 1938 rows in d:\opengit\msr\tools\base-windows-file-test.l
og (unique-lines = 732 = 37.77% , duplicate = 1206 = 62.23%) . Used 0.003 s. (from 2019-11-26 20:29:35 +0800 CST)
################## "5-6: File test comparisonpassed and no differences ######################


################## 6-6: Reading from pipe test begin ##################  
msr -it "msr -c" -o "msr -c -A" -p d:\opengit\msr\tools\example-commands.bat --nt "\s+(-R|-PAC|-PIC)\b" -PAC -q ""::Stop calqualiu"|stop pipe test" | msr -it "\bmsr\s+" -o "msr " -PAC | msr -ix "%~dp0" -o d:\opengit\msr\tools -a -PAC | msr -
-nt "--wt|--sz" -it "^(msr.*?)\s+-p\s+(\S+)(\s*.*)" -o "type $2 | $1 $3" -PAC | msr --nx "type d:\opengit\msr\tools " -XI
Total executed lines = 140 , non-zero-return-count = 129 , return-zero-count = 11 , positive-return-count = 129 , negative-return-count = 0 , positive-return-sum = 2976 , negative-return-sum = 0 , exceptions = 0 . Matched 140 lines(97.90%)
 from stdin, read 143 lines. Used 19.093115 s, from 2019-11-26 20:29:36.318213 +0800 CST.
2019-11-26 20:29:55.744 +0800 CST Succeeded to replace 140 lines in d:\opengit\msr\tools\pipe-test-result-on-windows.log
1-1 : d:\opengit\msr\tools\pipe-test-result-on-windows.log
Replaced 140 lines(9.30%) in 1 files(100%), read 1506 lines 63.32 KB in 1 files. Used 0.011984 s, from 2019-11-26 20:29:55.736985 +0800 China Standard Time. Checked 1 files, opened 1 files 63.32 KB, matched 1 files = 63.32 KB = 64835 bytes
. Searched depth = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 1 , MinOpenedDepth = 1 , MinMatchedDepth = 1 . Source = d:\opengit\msr\tools\pipe-test-result-on-windows.log . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit\msr\to
ols ; Command = msr -p d:\opengit\msr\tools\pipe-test-result-on-windows.log -it "(^|\s+)[\\\\/\w\.:-]+(example-commands.bat|sample-file.txt)" -o "$1$2" -ROc UnifyDirectory
2019-11-26 20:29:56.018 +0800 CST Succeeded to replace 140 lines in d:\opengit\msr\tools\pipe-test-result-on-windows.log
1-1 : d:\opengit\msr\tools\pipe-test-result-on-windows.log
Replaced 140 lines(9.30%) in 1 files(100%), read 1506 lines 60.44 KB in 1 files. Used 0.006409 s, from 2019-11-26 20:29:56.015733 +0800 China Standard Time. Checked 1 files, opened 1 files 60.44 KB, matched 1 files = 60.44 KB = 61895 bytes
. Searched depth = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 1 , MinOpenedDepth = 1 , MinMatchedDepth = 1 . Source = d:\opengit\msr\tools\pipe-test-result-on-windows.log . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit\msr\to
ols ; Command = msr -p d:\opengit\msr\tools\pipe-test-result-on-windows.log -t "^\d+\S+ \d+:\d+:\S+.*?(Run-Command|Return-Value)" -o "$1" -ROc UnifyExecuteCommands
Replaced 0 blocks with 0 lines in 0 files, read 1506 lines 55.80 KB in 1 files with 0 blocks. Used 0.001085 s, from 2019-11-26 20:29:56.098692 +0800 China Standard Time. Checked 1 files, opened 1 files 55.80 KB, matched 0 files = 0 B = 0 b
ytes. Searched depth = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 0 , MinOpenedDepth = 1 , MinMatchedDepth = 0 . Source = d:\opengit\msr\tools\pipe-test-result-on-windows.log . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit\ms
r\tools ; Command = msr -p d:\opengit\msr\tools\pipe-test-result-on-windows.log -b "^(msr|msr).*\s+-l -f bat\s+" -Q "^Matched|^\s*$" -t "\S+\.bat$" -o Replace-Real-File-Name-To-Avoid-Difference -Rc
Got 0 lines ONLY in base-windows-pipe-test.log (0%/0%) NOT in pipe-test-result-on-windows.log , read 3012 rows = 1506 rows in d:\opengit\msr\tools\base-windows-pipe-test.log + 1506 rows in d:\opengit\msr\tools\pipe-test-result-on-windows.l
og (unique-lines = 471 = 31.27% , duplicate = 1035 = 68.73%) . Used 0.001 s. (from 2019-11-26 20:29:56 +0800 CST)
Got 0 lines ONLY in pipe-test-result-on-windows.log (0%/0%) NOT in base-windows-pipe-test.log , read 3012 rows = 1506 rows in d:\opengit\msr\tools\pipe-test-result-on-windows.log + 1506 rows in d:\opengit\msr\tools\base-windows-pipe-test.l
og (unique-lines = 471 = 31.27% , duplicate = 1035 = 68.73%) . Used 0.001 s. (from 2019-11-26 20:29:56 +0800 CST)
################## "6-6: Pipe test comparisonpassed and no differences ######################

################## All 6 test groups passed. ##################


2019-11-26 20:29:56.479 +0800 CST Run-Command[1] = call d:\opengit\msr\tools\test-nin.cmd 1
msr -p d:\opengit\msr\tools\test-nin.cmd -t "^nin\s+(%\S+%)" -o "nin $1" -PIC | msr -x %TmpSourceFile% -o d:\opengit\msr\tools\tmp-nin-source.txt -aPIC | msr -x %TmpDupliatedFile% -o d:\opengit\msr\tools\tmp-nin-duplicated.txt -aPIC | msr
-x %ThisDir% -o d:\opengit\msr\tools -aPIC | msr -t .+ -o "$0 -I" -X -c RedirectSummaryAndExecute > d:\opengit\msr\tools\test-nin.log
Matched 100 lines(44.64%) in 1 files(100%), read 224 lines 9.96 KB in 1 files. Used 0.045189 s, from 2019-11-26 20:29:57.696132 +0800 CST. Checked 1 files, opened 1 files 9.96 KB, matched 1 files = 9.96 KB = 10196 bytes. Source = d:\opengi
t\msr\tools\test-nin.cmd .
Matched 37 lines(37.00%) from stdin, read 100 lines. Used 0.039551 s, from 2019-11-26 20:29:57.741072 +0800 CST.
Matched 60 lines(60.00%) from stdin, read 100 lines. Used 0.049011 s, from 2019-11-26 20:29:57.780434 +0800 CST.
Matched 22 lines(22.00%) from stdin, read 100 lines. Used 0.049166 s, from 2019-11-26 20:29:57.829150 +0800 CST.
2019-11-26 20:30:09.585 +0800 CST Succeeded to replace 201 lines in d:\opengit\msr\tools\test-nin.log
1-1 : d:\opengit\msr\tools\test-nin.log
Replaced 201 lines(26.73%) in 1 files(100%), read 752 lines 61.64 KB in 1 files. Used 0.010588 s, from 2019-11-26 20:30:09.579143 +0800 China Standard Time. Checked 1 files, opened 1 files 61.64 KB, matched 1 files = 61.64 KB = 63116 bytes
. Searched depth = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 1 , MinOpenedDepth = 1 , MinMatchedDepth = 1 . Source = d:\opengit\msr\tools\test-nin.log . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit\msr\tools ; Command = msr
 -p d:\opengit\msr\tools\test-nin.log -it "(?<=files)\s*\(\d+\S+\) in \d+ files.*|Used\s*\d+.*from.*\d-\d+.*|[,;]\s*(EXE|Directory|command)\s*=.*|[,;]*\s*read\s+\d+\s+line.*|Used \d+.*?command\S+\s*=\s*" -o "" -ROc RemoveTotalFileInfoAndDa
teTimeDir
2019-11-26 20:30:10.029 +0800 CST Succeeded to replace 6 lines in d:\opengit\msr\tools\test-nin.log
1-1 : d:\opengit\msr\tools\test-nin.log
Replaced 6 lines(0.80%) in 1 files(100%), read 752 lines 53.41 KB in 1 files. Used 0.005729 s, from 2019-11-26 20:30:10.027386 +0800 China Standard Time. Checked 1 files, opened 1 files 53.41 KB, matched 1 files = 53.41 KB = 54695 bytes. S
earched depth = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 1 , MinOpenedDepth = 1 , MinMatchedDepth = 1 . Source = d:\opengit\msr\tools\test-nin.log . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit\msr\tools ; Command = msr -p
 d:\opengit\msr\tools\test-nin.log -x "%TmpDupliatedDiffFile%" -o d:\opengit\msr\tools\tmp-nin-duplicated-diff.txt -ROc
2019-11-26 20:30:10.106 +0800 CST Succeeded to replace 300 lines in d:\opengit\msr\tools\test-nin.log
1-1 : d:\opengit\msr\tools\test-nin.log
Replaced 300 lines(39.89%) in 1 files(100%), read 752 lines 53.57 KB in 1 files. Used 0.008605 s, from 2019-11-26 20:30:10.101908 +0800 China Standard Time. Checked 1 files, opened 1 files 53.57 KB, matched 1 files = 53.57 KB = 54851 bytes
. Searched depth = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 1 , MinOpenedDepth = 1 , MinMatchedDepth = 1 . Source = d:\opengit\msr\tools\test-nin.log . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit\msr\tools ; Command = msr
 -p d:\opengit\msr\tools\test-nin.log -ix d:\opengit\msr\tools\ -o "" -ROc UnifyCurrentToDot
2019-11-26 20:30:10.313 +0800 CST Succeeded to replace 200 lines in d:\opengit\msr\tools\test-nin.log
1-1 : d:\opengit\msr\tools\test-nin.log
Replaced 200 lines(26.60%) in 1 files(100%), read 752 lines 46.06 KB in 1 files. Used 0.005824 s, from 2019-11-26 20:30:10.310664 +0800 China Standard Time. Checked 1 files, opened 1 files 46.06 KB, matched 1 files = 46.06 KB = 47165 bytes
. Searched depth = 1 , MaxOpenedDepth = 1 , MaxMatchedDepth = 1 , MinOpenedDepth = 1 , MinMatchedDepth = 1 . Source = d:\opengit\msr\tools\test-nin.log . EXE = d:\opengit\msr\tools\msr.exe ; Directory = d:\opengit\msr\tools ; Command = msr
 -p d:\opengit\msr\tools\test-nin.log -t "^\d+\S+ \d+:\d+:\S+.*?(Run-Command|Return-Value)" -o "$1" -ROc UnifyExecuteCommands
Got 0 lines ONLY in base-test-nin.log (0%/0%) NOT in test-nin.log , read 1504 rows = 752 rows in d:\opengit\msr\tools\base-test-nin.log + 752 rows in d:\opengit\msr\tools\test-nin.log (unique-lines = 317 = 42.15% , duplicate = 435 = 57.85%
) . Used 0.001 s. (from 2019-11-26 20:30:10 +0800 CST)
Got 0 lines ONLY in test-nin.log (0%/0%) NOT in base-test-nin.log , read 1504 rows = 752 rows in d:\opengit\msr\tools\test-nin.log + 752 rows in d:\opengit\msr\tools\base-test-nin.log (unique-lines = 317 = 42.15% , duplicate = 435 = 57.85%
) . Used 0.001 s. (from 2019-11-26 20:30:10 +0800 CST)
################## "Test nin.exepassed and no differences ######################
2019-11-26 20:30:10.632 +0800 CST Return-Value[1] = 0 : Used 14.151 s , command[1] = call d:\opengit\msr\tools\test-nin.cmd 1