Tests: Remove .py generation from TestRunner and update-expected-results
This commit is contained in:
@@ -59,11 +59,6 @@ namespace Il2CppInspector
|
||||
|
||||
new CppScaffolding(appModel)
|
||||
.Write(testPath + $@"\test-cpp-result{nameSuffix}");
|
||||
|
||||
new IDAPythonScript(appModel)
|
||||
.WriteScriptToFile(testPath + $@"\test-ida-result{nameSuffix}.py",
|
||||
testPath + $@"\test-cpp-result{nameSuffix}\appdata\il2cpp-types.h",
|
||||
testPath + $@"\test-result{nameSuffix}.json");
|
||||
}
|
||||
|
||||
// Compare test results with expected results
|
||||
@@ -73,7 +68,6 @@ namespace Il2CppInspector
|
||||
compareFiles(testPath, suffix + ".cs", $"test-result{suffix}.cs");
|
||||
compareFiles(testPath, suffix + ".json", $"test-result{suffix}.json");
|
||||
compareFiles(testPath, suffix + ".h", $@"test-cpp-result{suffix}\appdata\il2cpp-types.h");
|
||||
compareFiles(testPath, suffix + ".py", $"test-ida-result{suffix}.py");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -10,8 +10,6 @@ $cs = (gci "$PSScriptRoot/TestBinaries/*/*" -Filter test-result.cs)
|
||||
$cs2 = (gci "$PSScriptRoot/TestBinaries/*/*" -Filter test-result-1.cs)
|
||||
$json = (gci "$PSScriptRoot/TestBinaries/*/*" -Filter test-result.json)
|
||||
$json2 = (gci "$PSScriptRoot/TestBinaries/*/*" -Filter test-result-1.json)
|
||||
$py = (gci "$PSScriptRoot/TestBinaries/*/*" -Filter test-ida-result.py)
|
||||
$py2 = (gci "$PSScriptRoot/TestBinaries/*/*" -Filter test-ida-result-1.py)
|
||||
$cpp = (gci "$PSScriptRoot/TestBinaries/*/test-cpp-result/appdata/*" -Filter il2cpp-types.h)
|
||||
$cpp2 = (gci "$PSScriptRoot/TestBinaries/*/test-cpp-result-1/appdata/*" -Filter il2cpp-types.h)
|
||||
|
||||
@@ -38,16 +36,6 @@ $json2 | % {
|
||||
cp $_ -Destination $target -Force
|
||||
}
|
||||
|
||||
$py | % {
|
||||
$target = $results + "/" + (Split-Path -Path (Split-Path -Path $_) -Leaf) + ".py"
|
||||
cp $_ -Destination $target -Force
|
||||
}
|
||||
|
||||
$py2 | % {
|
||||
$target = $results + "/" + (Split-Path -Path (Split-Path -Path $_) -Leaf) + "-1.py"
|
||||
cp $_ -Destination $target -Force
|
||||
}
|
||||
|
||||
$cpp | % {
|
||||
$target = $results + "/" + (Split-Path -Path (Split-Path -Path (Split-Path -Path (Split-Path -Path $_))) -Leaf) + ".h"
|
||||
cp $_ -Destination $target -Force
|
||||
|
||||
Reference in New Issue
Block a user