Split install_location to file-per-architecture (#59404)
authorVitek Karas <vitek.karas@microsoft.com>
Wed, 22 Sep 2021 17:04:00 +0000 (10:04 -0700)
committerEric StJohn <ericstj@microsoft.com>
Wed, 22 Sep 2021 17:07:51 +0000 (10:07 -0700)
commit20bfd6a8903e47c7cd68fd1562bfffdb6c5b76c3
tree80fe3861a118e9549b226e73a362eb949e7ae53b
parentb700018f8abb67c9b76379ca6f1da8a53b7127a6
Split install_location to file-per-architecture (#59404)

On non-Windows we used install_location file with multiple lines which contained locations per-architecture (and the default).

This changes the host to use separate file for each architecture:
* `install_location_<arch>` for the architecture specific
* `install_location` for the "legacy" file

This is a much easier format for installers to handle (and it also simplifies the apphost code a little bit).

Adapted tests to the new behavior. Removed some tests which don't make sense anymore. Some small test cleanup to deduplicate code.

Changed the test-only env. variable to point to the directory with configuration files instead of to the configuration file itself.
src/installer/tests/HostActivation.Tests/Constants.cs
src/installer/tests/HostActivation.Tests/InstallLocationCommandResultExtensions.cs
src/installer/tests/HostActivation.Tests/MultiArchInstallLocation.cs
src/installer/tests/HostActivation.Tests/NativeHosting/Nethost.cs
src/installer/tests/HostActivation.Tests/RegisteredInstallLocationOverride.cs
src/native/corehost/hostmisc/pal.unix.cpp