Files
Il2CppInspectorRedux/Il2CppTests/update-expected-results.ps1
Katy Coe 5c97202d8e C++: Significant iteration of scaffolding output (see commit description)
Generate pre-compiled headers for IL2CPP types and functions
Resolved naming conflicts with functions and macros from windows.h
IL2CPP app functions and TypeInfos were incorrectly placed in global namespace instead of 'app'
Added /MP compiler option (multi-processor compilation)
Split source files into folders
Move GetBaseAddress() into helpers.cpp
Add NewConsole() to helpers.cpp
Move init_il2cpp() from IL2CPP declarations header to own source file
Refactor some header files for consistency and duplicate elimination
2020-08-01 05:23:44 +02:00

47 lines
1.8 KiB
PowerShell

# Copyright 2019-2020 Katy Coe - http://www.djkaty.com - https://github.com/djkaty
# All rights reserved.
# This script copies all the test results from TestBinaries into TestExpectedResults with the correct filenames
# The idea is to update all the expected results once we have confirmed an improvement to the codebase works correctly to save a lot of manual copying
# It is only intended to be used during development, not for end-user scenarios
# Get all test results
$bin = (gci "$PSScriptRoot/TestBinaries/*/*" -Filter test-result.cs)
$bin2 = (gci "$PSScriptRoot/TestBinaries/*/*" -Filter test-result-1.cs)
$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)
# Get path to expected test results
$results = "$PSScriptRoot/TestExpectedResults"
$bin | % {
$target = $results + "/" + (Split-Path -Path (Split-Path -Path $_) -Leaf) + ".cs"
cp $_ -Destination $target -Force
}
$bin2 | % {
$target = $results + "/" + (Split-Path -Path (Split-Path -Path $_) -Leaf) + "-1.cs"
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 $_)) -Leaf) + ".h"
cp $_ -Destination $target -Force
}
$cpp2 | % {
$target = $results + "/" + (Split-Path -Path (Split-Path -Path (Split-Path -Path $_)) -Leaf) + "-1.h"
cp $_ -Destination $target -Force
}