55 references to RunAndGetOutput
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (3)
CommandLineTests.cs (3)
5994
ProcessUtilities.
RunAndGetOutput
("cmd.exe", $@"/C ""{s_DotnetCscRun} -.exe""", expectedRetCode: 0, startFolder: tempDir) :
5995
ProcessUtilities.
RunAndGetOutput
("sh", $@"-c ""{s_DotnetCscRun} -.exe""", expectedRetCode: 0, startFolder: tempDir);
11370
output = ProcessUtilities.
RunAndGetOutput
(Path.Combine(dir.ToString(), "out.exe"), startFolder: dir.ToString());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\Metadata\PE\TypeForwarders.cs (2)
1562
var result = ProcessUtilities.
RunAndGetOutput
(asmB.Path);
1570
result = ProcessUtilities.
RunAndGetOutput
(asmB2.Path);
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (50)
CommandLineBreakingChanges.vb (5)
28
Dim output = ProcessUtilities.
RunAndGetOutput
("cmd", "/C """ & s_basicCompilerExecutable & """ /nologo /preferreduilang:en /warnaserror+ /warnaserror- /out:" & tempBinary.Path & " " & src & " > " & tempLog.Path, expectedRetCode:=0)
59
Dim output = ProcessUtilities.
RunAndGetOutput
("cmd", "/C """ & s_basicCompilerExecutable & """ /nologo /preferreduilang:en /optionstrict:custom /nowarn:41008 /warnaserror+ " & src & " > " & tempOut.Path, expectedRetCode:=1)
91
Dim output = ProcessUtilities.
RunAndGetOutput
("cmd", "/C """ & s_basicCompilerExecutable & """ /nologo /preferreduilang:en /optionstrict:custom /nowarn:41008 /warnaserror+ " & src & " > " & tempOut.Path, expectedRetCode:=1)
123
Dim output = ProcessUtilities.
RunAndGetOutput
("cmd", "/C """ & s_basicCompilerExecutable & """ /nologo /preferreduilang:en /optionstrict:custom /warnaserror-:42025 /warnaserror+ " & src & " > " & tempOut.Path, expectedRetCode:=1)
158
Dim output = ProcessUtilities.
RunAndGetOutput
("cmd", "/C """ & s_basicCompilerExecutable & """ /nologo /preferreduilang:en /optionstrict:custom /warnaserror-:42025 /warnaserror+ " & src & " > " & tempOut.Path, expectedRetCode:=1)
CommandLineTests.vb (45)
613
Dim output = ProcessUtilities.
RunAndGetOutput
("cmd", "/C """ & s_basicCompilerExecutable & """ /nologo /preferreduilang:en /t:library " & src & " > " & tempOut.Path, expectedRetCode:=1)
632
Dim output = ProcessUtilities.
RunAndGetOutput
("cmd", "/C """ & s_basicCompilerExecutable & """ /utf8output /nologo /preferreduilang:en /t:library " & src & " > " & tempOut.Path, expectedRetCode:=1)
679
ProcessUtilities.
RunAndGetOutput
("cmd.exe", $"/C ""{s_DotnetCscRun} -.exe""", expectedRetCode:=0, startFolder:=tempDir),
680
ProcessUtilities.
RunAndGetOutput
("sh", $"-c ""{s_DotnetCscRun} -.exe""", expectedRetCode:=0, startFolder:=tempDir))
4106
Dim output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable,
4139
Dim output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, String.Format("/nologo /t:library /doc+ {0}", src.ToString()), startFolder:=dir.ToString(), expectedRetCode:=0)
4189
Dim output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, String.Format("/nologo /t:library /doc+ {0}", src.ToString()), startFolder:=dir.ToString(), expectedRetCode:=0)
4224
output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, String.Format("/nologo /t:library /doc+ {0}", src.ToString()), startFolder:=dir.ToString(), expectedRetCode:=0)
4265
Dim output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, String.Format("/nologo /t:library /doc:abcdfg.xyz /doc+ {0}", src.ToString()), startFolder:=dir.ToString())
4284
Dim output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, String.Format("/nologo /t:library /doc /out:MyXml.dll {0}", src.ToString()), startFolder:=dir.ToString())
4303
Dim output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, String.Format("/nologo /t:library /doc:doc.xml /doc+ {0}", src.ToString()), startFolder:=dir.ToString())
4322
Dim output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, String.Format("/nologo /t:library /doc:doc.xml /out:out.dll {0}", src.ToString()), startFolder:=dir.ToString())
4341
Dim output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, String.Format("/nologo /t:library /doc:doc.xml /doc /out:out.dll {0}", src.ToString()), startFolder:=dir.ToString())
4360
Dim output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, String.Format("/nologo /t:library /doc:doc.xml /out:out.dll /doc+ {0}", src.ToString()), startFolder:=dir.ToString())
5087
Dim output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, "/nologo /preferreduilang:en /vbruntime /t:library " & src.ToString(), expectedRetCode:=1)
5095
output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, "/nologo /preferreduilang:en /vbruntime+ /t:library " & src.ToString(), expectedRetCode:=1)
5103
output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, "/nologo /preferreduilang:en /vbruntime* /t:library /r:System.dll " & src.ToString(), expectedRetCode:=1)
5111
output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, "/nologo /preferreduilang:en /vbruntime+ /vbruntime:abc /vbruntime* /t:library /r:System.dll " & src.ToString(), expectedRetCode:=1)
5119
output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, "/nologo /preferreduilang:en /vbruntime+ /vbruntime:abc /t:library " & src.ToString(), expectedRetCode:=1)
5128
output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, "/nologo /preferreduilang:en /vbruntime:" & newVbCore.ToString() & " /t:library " & src.ToString(), expectedRetCode:=1)
5154
Dim output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, "/nologo /preferreduilang:en /nostdlib /r:mscorlib.dll /vbruntime- /t:library /d:_MyType=\""Empty\"" " & src.ToString(), expectedRetCode:=1)
5197
Dim output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, "/nologo /preferreduilang:en /nostdlib /sdkpath:l:\x /t:library " & src.ToString(), expectedRetCode:=1, startFolder:=dir.Path)
5203
output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, "/nologo /preferreduilang:en /nostdlib /r:mscorlib.dll /vbruntime- /sdkpath:c:folder /t:library " & src.ToString(), expectedRetCode:=1, startFolder:=dir.Path)
5209
output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, "/nologo /preferreduilang:en /nostdlib /sdkpath:" & dir.Path & " /t:library " & src.ToString(), expectedRetCode:=1, startFolder:=dir.Path)
5219
output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, "/nologo /preferreduilang:en /nostdlib /sdkpath:" & dir.Path & " /t:library " & src.ToString(), expectedRetCode:=1, startFolder:=dir.Path)
5228
output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, "/nologo /preferreduilang:en /nostdlib /sdkpath:" & dir.Path & " /t:library " & src.ToString(), expectedRetCode:=1, startFolder:=dir.Path)
5239
output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, "/nologo /nostdlib /sdkpath:" & dir.Path & " /t:library /vbruntime* /r:" & Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "System.dll") & " " & src.ToString(), startFolder:=dir.Path)
5245
output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, "/nologo /nostdlib /sdkpath:" & dir.Path & " /t:library /vbruntime* /r:" & Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "System.dll") & " " & src.ToString(), startFolder:=dir.Path)
5277
output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, cmdNoStdLibNoRuntime, startFolder:=dir.Path, expectedRetCode:=1)
5285
output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, cmdNoStdLibNoRuntime, startFolder:=dir.Path)
5288
output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, cmd, startFolder:=dir.Path, expectedRetCode:=1)
5310
Dim output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, "/nologo /preferreduilang:en /nostdlib /t:library " & src.ToString(), startFolder:=dir.Path, expectedRetCode:=1)
5313
output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, "/nologo /nostdlib /define:_MYTYPE=\""Empty\"" /t:library " & src.ToString(), startFolder:=dir.Path)
5316
output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, "/nologo /preferreduilang:en /nostdlib /sdkpath:x:\ /vbruntime- /define:_MYTYPE=\""Empty\"" /t:library " & src.ToString(), expectedRetCode:=1, startFolder:=dir.Path)
6443
Dim output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, "/nologo /t:library " & file.ToString(), startFolder:=dir.Path)
6446
output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, "/nologo /preferreduilang:en /t:library /codepage:20127 " & file.ToString(), expectedRetCode:=1, startFolder:=dir.Path) ' 20127: US-ASCII
6863
Dim output = ProcessUtilities.
RunAndGetOutput
("cmd", "/C icacls " & ref & " /inheritance:r /Q")
6866
output = ProcessUtilities.
RunAndGetOutput
("cmd", "/C icacls " & ref & " /deny %USERDOMAIN%\%USERNAME%:(r,WDAC) /Q")
6869
output = ProcessUtilities.
RunAndGetOutput
("cmd", "/C """ & s_basicCompilerExecutable & """ /nologo /preferreduilang:en /r:" & ref & " /t:library " & source, expectedRetCode:=1)
6873
Dim output = ProcessUtilities.
RunAndGetOutput
("cmd", "/C icacls " & ref & " /reset /Q")
7507
Dim output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, "/nologo /t:library /langversion:9 /preferreduilang:en " & src.ToString(), expectedRetCode:=1, startFolder:=dir.Path)
8645
Dim output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, String.Format("/nologo /doc:doc.xml /out:out.exe /resource:doc.xml {0}", src.ToString()), startFolder:=dir.ToString())
8673
output = ProcessUtilities.
RunAndGetOutput
(Path.Combine(dir.ToString(), "out.exe"), startFolder:=dir.ToString())
9309
Dim output = ProcessUtilities.
RunAndGetOutput
(s_basicCompilerExecutable, args, startFolder:=folderName)
9371
Dim output = ProcessUtilities.
RunAndGetOutput
(exe, startFolder:=dir.Path)