Tests: Add shim DLLs to test suite
This commit is contained in:
@@ -6,19 +6,27 @@
|
||||
# It is only intended to be used during development, not for end-user scenarios
|
||||
|
||||
# Get all test results
|
||||
echo "Initializing"
|
||||
|
||||
$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)
|
||||
$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)
|
||||
$dll = (gci "$PSScriptRoot/TestBinaries/*/test-dll-result/*")
|
||||
$dll2 = (gci "$PSScriptRoot/TestBinaries/*/test-dll-result-1/*")
|
||||
|
||||
# Get path to expected test results
|
||||
$results = "$PSScriptRoot/TestExpectedResults"
|
||||
|
||||
# Wipe existing results
|
||||
rm -Recurse -Force $results >$null
|
||||
mkdir $results >$null
|
||||
echo "Removing previous results"
|
||||
|
||||
rm -Recurse -Force $results >$null 2>&1
|
||||
mkdir $results >$null 2>&1
|
||||
|
||||
echo "Updating .cs files"
|
||||
|
||||
$cs | % {
|
||||
$target = $results + "/" + (Split-Path -Path (Split-Path -Path $_) -Leaf) + ".cs"
|
||||
@@ -30,6 +38,8 @@ $cs2 | % {
|
||||
cp $_ -Destination $target -Force
|
||||
}
|
||||
|
||||
echo "Updating .json files"
|
||||
|
||||
$json | % {
|
||||
$target = $results + "/" + (Split-Path -Path (Split-Path -Path $_) -Leaf) + ".json"
|
||||
cp $_ -Destination $target -Force
|
||||
@@ -40,6 +50,8 @@ $json2 | % {
|
||||
cp $_ -Destination $target -Force
|
||||
}
|
||||
|
||||
echo "Updating .h files"
|
||||
|
||||
$cpp | % {
|
||||
$target = $results + "/" + (Split-Path -Path (Split-Path -Path (Split-Path -Path (Split-Path -Path $_))) -Leaf) + ".h"
|
||||
cp $_ -Destination $target -Force
|
||||
@@ -48,4 +60,20 @@ $cpp | % {
|
||||
$cpp2 | % {
|
||||
$target = $results + "/" + (Split-Path -Path (Split-Path -Path (Split-Path -Path (Split-Path -Path $_))) -Leaf) + "-1.h"
|
||||
cp $_ -Destination $target -Force
|
||||
}
|
||||
}
|
||||
|
||||
echo "Updating .dll files"
|
||||
|
||||
$dll | % {
|
||||
$targetPath = $results + "/dll-" + (Split-Path -Path (Split-Path -Path (Split-Path -Path $_)) -Leaf)
|
||||
mkdir $targetPath >$null 2>&1
|
||||
$target = $targetPath + "/" + (Split-Path -Path $_ -Leaf)
|
||||
cp $_ -Destination $target -Force
|
||||
}
|
||||
|
||||
$dll2 | % {
|
||||
$targetPath = $results + "/dll-" + (Split-Path -Path (Split-Path -Path (Split-Path -Path $_)) -Leaf) + "-1"
|
||||
mkdir $targetPath >$null 2>&1
|
||||
$target = $targetPath + "/" + (Split-Path -Path $_ -Leaf)
|
||||
cp $_ -Destination $target -Force
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user