|
|
@ -1,47 +1,31 @@ |
|
|
|
..\..\bin\notepad++.exe -export=functionList -lasm .\asm\unitTest | Out-Null |
|
|
|
|
|
|
|
..\..\bin\notepad++.exe -export=functionList -lautoit .\autoit\unitTest | Out-Null |
|
|
|
|
|
|
|
..\..\bin\notepad++.exe -export=functionList -lbash .\bash\unitTest | Out-Null |
|
|
|
|
|
|
|
..\..\bin\notepad++.exe -export=functionList -lbatch .\batch\unitTest | Out-Null |
|
|
|
|
|
|
|
..\..\bin\notepad++.exe -export=functionList -lc .\c\unitTest | Out-Null |
|
|
|
|
|
|
|
..\..\bin\notepad++.exe -export=functionList -lcpp .\cpp\unitTest | Out-Null |
|
|
|
|
|
|
|
..\..\bin\notepad++.exe -export=functionList -lcs .\cs\unitTest | Out-Null |
|
|
|
|
|
|
|
..\..\bin\notepad++.exe -export=functionList -lini .\ini\unitTest | Out-Null |
|
|
|
|
|
|
|
..\..\bin\notepad++.exe -export=functionList -linno .\inno\unitTest | Out-Null |
|
|
|
|
|
|
|
..\..\bin\notepad++.exe -export=functionList -ljava .\java\unitTest | Out-Null |
|
|
|
|
|
|
|
..\..\bin\notepad++.exe -export=functionList -ljavascript .\javascript\unitTest | Out-Null |
|
|
|
|
|
|
|
..\..\bin\notepad++.exe -export=functionList -lnsis .\nsis\unitTest | Out-Null |
|
|
|
|
|
|
|
..\..\bin\notepad++.exe -export=functionList -lperl .\perl\unitTest | Out-Null |
|
|
|
|
|
|
|
..\..\bin\notepad++.exe -export=functionList -lphp .\php\unitTest | Out-Null |
|
|
|
|
|
|
|
..\..\bin\notepad++.exe -export=functionList -lpowershell .\powershell\unitTest | Out-Null |
|
|
|
|
|
|
|
..\..\bin\notepad++.exe -export=functionList -lpython .\python\unitTest | Out-Null |
|
|
|
|
|
|
|
..\..\bin\notepad++.exe -export=functionList -lruby .\ruby\unitTest | Out-Null |
|
|
|
|
|
|
|
..\..\bin\notepad++.exe -export=functionList -lvhdl .\vhdl\unitTest | Out-Null |
|
|
|
|
|
|
|
..\..\bin\notepad++.exe -export=functionList -lxml .\xml\unitTest | Out-Null |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$testRoot = ".\" |
|
|
|
$testRoot = ".\" |
|
|
|
|
|
|
|
|
|
|
|
Get-ChildItem $testRoot -Filter *.* | |
|
|
|
Get-ChildItem $testRoot -Filter *.* | |
|
|
|
Foreach-Object { |
|
|
|
Foreach-Object { |
|
|
|
if ((Get-Item $testRoot$_) -is [System.IO.DirectoryInfo]) |
|
|
|
if ((Get-Item $testRoot$_) -is [System.IO.DirectoryInfo]) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
$dirName = (Get-Item $testRoot$_).Name |
|
|
|
|
|
|
|
..\..\bin\notepad++.exe -export=functionList -l"$dirName" $testRoot$_\unitTest | Out-Null |
|
|
|
|
|
|
|
|
|
|
|
$expectedRes = Get-Content $testRoot$_\unitTest.expected.result |
|
|
|
$expectedRes = Get-Content $testRoot$_\unitTest.expected.result |
|
|
|
$generatedRes = Get-Content $testRoot$_\unitTest.result.json |
|
|
|
$generatedRes = Get-Content $testRoot$_\unitTest.result.json |
|
|
|
|
|
|
|
|
|
|
|
if ($generatedRes -eq $expectedRes) |
|
|
|
if ($generatedRes -eq $expectedRes) |
|
|
|
{ |
|
|
|
{ |
|
|
|
Remove-Item $testRoot$_\unitTest.result.json |
|
|
|
Remove-Item $testRoot$_\unitTest.result.json |
|
|
|
"" |
|
|
|
"$dirName ... OK" |
|
|
|
"OK" |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
"$generatedRes" |
|
|
|
"$dirName ... KO" |
|
|
|
|
|
|
|
"" |
|
|
|
|
|
|
|
"There's a (some) problem(s) in your functionList.xml" |
|
|
|
exit -1 |
|
|
|
exit -1 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
"" |
|
|
|
|
|
|
|
"All tests are passed." |
|
|
|
exit 0 |
|
|
|
exit 0 |
|
|
|
|
|
|
|
|
|
|
|