[Tizen] skip dotnet specific arguments in corerun
authorKonstantin Baladurin <k.baladurin@samsung.com>
Fri, 4 Oct 2019 16:45:44 +0000 (19:45 +0300)
committerAlexander Soldatov/AI Compiler Lab /SRR/Staff Engineer/삼성전자 <soldatov.a@samsung.com>
Mon, 7 Oct 2019 08:58:33 +0000 (11:58 +0300)
Now we use corerun to run corefx tests instead of dotnet, because last
one isn't available for Tizen/armel. So we need to skip dotnet specific
arguments, we patch corerun for it because Microsoft.DotNet.RemoteExecutor
tries to execute binary that it gets from /proc/self/maps, so we need a
binary that will behave like dotnet.

src/coreclr/hosts/unixcorerun/corerun.cpp

index 4e5c9d9..5d245f7 100644 (file)
@@ -61,12 +61,25 @@ bool ParseArguments(
                     DisplayUsage();
                     break;
                 }
+                // Now we use corerun to run corefx tests instead of dotnet, because last one isn't available for
+                // Tizen/armel. So we need to skip dotnet specific arguments, we patch corerun for it because
+                // Microsoft.DotNet.RemoteExecutor tries to execute binary that it gets from /proc/self/maps, so we
+                // need a binary that will behave like dotnet.
+                else if (strcmp(argv[i], "--runtimeconfig") == 0 || strcmp(argv[i], "--depsfile") == 0)
+                {
+                    i++;
+                    continue;
+                }
                 else
                 {
                     fprintf(stderr, "Unknown option %s\n", argv[i]);
                     break;
                 }
             }
+            else if (strcmp(argv[i], "exec") == 0)
+            {
+                continue;
+            }
             else
             {
                 // First argument that is not an option is the managed assembly to execute