notepad-plus-plus-legacy/PowerEditor/Test/FunctionList/unitTest.ps1
Baptiste Thémine e72d4855de Update functionList.xml C++ parser
Improvements :
- add templated classes (and template-nested templated classes)
- add namespaced classes
- add classes which inherits another class without the accessibility keyword (private is optional for example)
- add classes with virtual inheritance
- add functions defined with the following keywords
  - (left) consteval|constexpr|friend|inline|static|virtual
  - (right) const|final|noexcept|override
- add functions defined with templated types (and template-nested templated types)
- add operator definitions

Close #5175
2020-08-30 18:13:23 +02:00

27 lines
590 B
PowerShell

$testRoot = ".\"
$dirName=$args[0]
$langName=$args[1]
if ((Get-Item $testRoot$dirName) -is [System.IO.DirectoryInfo])
{
..\..\bin\notepad++.exe -export=functionList -l"$langName" $testRoot$dirName\unitTest | Out-Null
$expectedRes = Get-Content $testRoot$dirName\unitTest.expected.result
$generatedRes = Get-Content $testRoot$dirName\unitTest.result.json
if ($generatedRes -eq $expectedRes)
{
Remove-Item $testRoot$dirName\unitTest.result.json
"$dirName ... OK"
}
else
{
"$dirName ... KO"
""
"There's a (some) problem(s) in your functionList.xml"
exit -1
}
}