Tests: Remove .py generation from TestRunner and update-expected-results

This commit is contained in:
Katy Coe
2020-08-04 04:25:55 +02:00
parent 5c2e06daee
commit 6823e37e83
2 changed files with 0 additions and 18 deletions

View File

@@ -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");
}
}

View File

@@ -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