if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))\r
{\r
process.StartInfo.FileName = "bash";\r
- process.StartInfo.Arguments = "-c \"sdb push " + hostFullPath + " " + targetPath + "\"";\r
+ process.StartInfo.Arguments = "-c \"" + ControlInfo.SDB + " push " + hostFullPath + " " + targetPath + "\"";\r
}\r
else\r
throw new Exception("Host OS not supported. " + @"__FILE__:__LINE__"+"\n"+caller_trace);\r
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))\r
{\r
process.StartInfo.FileName = "bash";\r
- process.StartInfo.Arguments = "-c \"sdb push " + hostFullPath + " " + targetPath + "\"";\r
+ process.StartInfo.Arguments = "-c \"" + ControlInfo.SDB + " push " + hostFullPath + " " + targetPath + "\"";\r
}\r
else\r
throw new Exception("Host OS not supported. " + @"__FILE__:__LINE__"+"\n"+caller_trace);\r
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))\r
{\r
process.StartInfo.FileName = "bash";\r
- process.StartInfo.Arguments = "-c \"sdb push " + hostFullPath + " " + targetPath + "\"";\r
+ process.StartInfo.Arguments = "-c \"" + ControlInfo.SDB + " push " + hostFullPath + " " + targetPath + "\"";\r
}\r
else\r
throw new Exception("Host OS not supported. " + @"__FILE__:__LINE__"+"\n"+caller_trace);\r
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))\r
{\r
process.StartInfo.FileName = "bash";\r
- process.StartInfo.Arguments = "-c \"sdb push " + hostFullPath + " " + targetPath + "\"";\r
+ process.StartInfo.Arguments = "-c \"" + ControlInfo.SDB + " push " + hostFullPath + " " + targetPath + "\"";\r
}\r
else\r
throw new Exception("Host OS not supported. " + @"__FILE__:__LINE__"+"\n"+caller_trace);\r
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))\r
{\r
process.StartInfo.FileName = "bash";\r
- process.StartInfo.Arguments = "-c \"sdb push " + hostFullPath + " " + targetPath + "\"";\r
+ process.StartInfo.Arguments = "-c \"" + ControlInfo.SDB + " push " + hostFullPath + " " + targetPath + "\"";\r
}\r
else\r
throw new Exception("Host OS not supported. " + @"__FILE__:__LINE__"+"\n"+caller_trace);\r
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))\r
{\r
process.StartInfo.FileName = "bash";\r
- process.StartInfo.Arguments = "-c \"sdb push " + hostFullPath + " " + targetPath + "\"";\r
+ process.StartInfo.Arguments = "-c \"" + ControlInfo.SDB + " push " + hostFullPath + " " + targetPath + "\"";\r
}\r
else\r
throw new Exception("Host OS not supported. " + @"__FILE__:__LINE__"+"\n"+caller_trace);\r
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))\r
{\r
process.StartInfo.FileName = "bash";\r
- process.StartInfo.Arguments = "-c \"sdb push " + hostFullPath + " " + targetPath + "\"";\r
+ process.StartInfo.Arguments = "-c \"" + ControlInfo.SDB + " push " + hostFullPath + " " + targetPath + "\"";\r
}\r
else\r
throw new Exception("Host OS not supported. " + @"__FILE__:__LINE__"+"\n"+caller_trace);\r
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))\r
{\r
process.StartInfo.FileName = "bash";\r
- process.StartInfo.Arguments = "-c \"sdb push " + hostFullPath + " " + targetPath + "\"";\r
+ process.StartInfo.Arguments = "-c \"" + ControlInfo.SDB + " push " + hostFullPath + " " + targetPath + "\"";\r
}\r
else\r
throw new Exception("Host OS not supported. " + @"__FILE__:__LINE__"+"\n"+caller_trace);\r
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))\r
{\r
process.StartInfo.FileName = "bash";\r
- process.StartInfo.Arguments = "-c \"sdb push " + hostFullPath + " " + targetPath + "\"";\r
+ process.StartInfo.Arguments = "-c \"" + ControlInfo.SDB + " push " + hostFullPath + " " + targetPath + "\"";\r
}\r
else\r
throw new Exception("Host OS not supported. " + @"__FILE__:__LINE__"+"\n"+caller_trace);\r
public string SourceFilesPath { get; private set; }
public string TargetAssemblyPath { get; private set; }
public string CorerunPath { get; private set; }
+ public string SDB { get; private set; }
public ControlInfo(ControlScript script,
NetcoreDbgTestCore.Environment env)
SourceFilesPath = env.SourceFilesPath;
TargetAssemblyPath = env.TargetAssemblyPath;
CorerunPath = env.CorerunPath;
+ SDB = env.SDB;
}
}
}
public string SourceFilesPath = null;
public string TargetAssemblyPath = null;
public string CorerunPath = "dotnet";
+ public string SDB = "sdb";
}
}
i += 2;
+ break;
+ case "--sdb":
+ if (i + 1 >= args.Length) {
+ NeedHelp = true;
+ break;
+ }
+
+ Environment.SDB = args[i + 1];
+
+ i += 2;
+
break;
default:
NeedHelp = true;
$DOTNET run --project TestRunner -- \
--tcp localhost $PORT \
--proto $PROTO \
+ --sdb "$SDB" \
--test $TEST_NAME \
--sources $SOURCE_FILES \
--assembly $REMOTETESTDIR/$TEST_PROJ_NAME.dll
--tcp localhost $PORT \
--dotnet /usr/bin/dotnet \
--proto $PROTO \
+ --sdb "$SDB" \
--test $TEST_NAME \
--sources "$SOURCE_FILES" \
--assembly $REMOTETESTDIR/$TEST_PROJ_NAME.dll