[Tizen] Partially handle runtimeconfig.json in corerun
authorGleb Balykov <g.balykov@samsung.com>
Mon, 17 Oct 2022 15:58:21 +0000 (18:58 +0300)
committerGleb Balykov <g.balykov@samsung.com>
Fri, 15 Dec 2023 12:28:32 +0000 (15:28 +0300)
commit887e541efcc4d5bf56f6a742f0390345ae0ac9b7
tree49de81921cee4e1b780ee82f590485a5db703553
parentfc25939520b4bfe3bc397ca1c27bd9f878824458
[Tizen] Partially handle runtimeconfig.json in corerun

runtimeconfig.json parser is very limited (and actually not fully correct) and is supposed to be used only with what corefx tests build system generates, for example:

{
  "runtimeOptions": {
    "tfm": "net6.0"
    "rollForward": "Major"
    "framework": {
      "name": "Microsoft.NETCore.App",
      "version": "6.0.9"
    },
    "configProperties": {
      "System.Reflection.Metadata.MetadataUpdater.IsSupported": false
    }
  }
}

Properties are set using keys and values that are passed to coreclr_initialize options. Alternative to this is to use System.AppContext.SetSwitch delegate.
RunTests.sh
src/coreclr/hosts/corerun/corerun.cpp