2021-08-20 01:54:07 +03:00
|
|
|
if ($Triplet -ne "x64-linux") {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
. $PSScriptRoot/../end-to-end-tests-prelude.ps1
|
|
|
|
|
2023-07-10 17:44:19 +03:00
|
|
|
$args = $commonArgs + @("--overlay-triplets=$PSScriptRoot/../e2e-ports/compilertracking", "--binarysource=clear;files,$ArchiveRoot,readwrite")
|
2021-08-20 01:54:07 +03:00
|
|
|
|
|
|
|
# Test simple installation
|
2022-04-01 00:08:32 +03:00
|
|
|
Run-Vcpkg -TestArgs ($args + @("install", "vcpkg-hello-world-1"))
|
2021-08-20 01:54:07 +03:00
|
|
|
Throw-IfFailed
|
2022-04-01 00:08:32 +03:00
|
|
|
if (-Not (select-string "^triplet_abi [0-9a-f]+-[0-9a-f]+-[0-9a-f]+$" "$installRoot/x64-linux/share/vcpkg-hello-world-1/vcpkg_abi_info.txt")) {
|
|
|
|
throw "Expected vcpkg-hello-world-1 to perform compiler detection"
|
2021-08-20 01:54:07 +03:00
|
|
|
}
|
|
|
|
Remove-Item -Recurse -Force $installRoot
|
|
|
|
|
2022-04-01 00:08:32 +03:00
|
|
|
Run-Vcpkg -TestArgs ($args + @("install", "vcpkg-hello-world-2"))
|
2021-08-20 01:54:07 +03:00
|
|
|
Throw-IfFailed
|
2022-04-01 00:08:32 +03:00
|
|
|
if (-Not (select-string "^triplet_abi [0-9a-f]+-[0-9a-f]+$" "$installRoot/x64-linux/share/vcpkg-hello-world-2/vcpkg_abi_info.txt")) {
|
|
|
|
throw "Expected vcpkg-hello-world-2 to not perform compiler detection"
|
2021-08-20 01:54:07 +03:00
|
|
|
}
|
|
|
|
Remove-Item -Recurse -Force $installRoot
|
|
|
|
|
2022-04-01 00:08:32 +03:00
|
|
|
Run-Vcpkg -TestArgs ($args + @("install", "vcpkg-hello-world-2", "vcpkg-hello-world-1"))
|
2021-08-20 01:54:07 +03:00
|
|
|
Throw-IfFailed
|
2022-04-01 00:08:32 +03:00
|
|
|
if (-Not (select-string "^triplet_abi [0-9a-f]+-[0-9a-f]+-[0-9a-f]+$" "$installRoot/x64-linux/share/vcpkg-hello-world-1/vcpkg_abi_info.txt")) {
|
|
|
|
throw "Expected vcpkg-hello-world-1 to perform compiler detection"
|
2021-08-20 01:54:07 +03:00
|
|
|
}
|
2022-04-01 00:08:32 +03:00
|
|
|
if (-Not (select-string "^triplet_abi [0-9a-f]+-[0-9a-f]+$" "$installRoot/x64-linux/share/vcpkg-hello-world-2/vcpkg_abi_info.txt")) {
|
|
|
|
throw "Expected vcpkg-hello-world-2 to not perform compiler detection"
|
2021-08-20 01:54:07 +03:00
|
|
|
}
|