40 references to PrepareExec
Microsoft.Build.Tasks.UnitTests (40)
Exec_Tests.cs (40)
66Exec exec = PrepareExec("echo Hello World!"); 89Exec exec = PrepareExec("echo LANG=$LANG; echo LC_ALL=$LC_ALL;"); 129Exec exec = PrepareExec("echo Four days until ZBB!"); 146Exec exec = PrepareExec(NativeMethodsShared.IsWindows ? "xcopy thisisanonexistentfile" : "cp thisisanonexistentfile thatisanonexistentfile"); 164Exec exec = PrepareExec(NativeMethodsShared.IsWindows ? ":foo \n goto foo" : "while true; do sleep 1; done"); 194Exec exec = PrepareExec(NativeMethodsShared.IsWindows ? ":foo \n goto foo" : "while true; do sleep 1; done"); 214var exec = PrepareExec("echo hello\r\n\r\n"); 228Exec exec = PrepareExec("exit 120"); 242Exec exec = PrepareExec(cmdLine); 269Exec exec = PrepareExec(cmdLine); 279Exec exec = PrepareExec("dir ||invalid||"); 289Exec exec = PrepareExec(NativeMethodsShared.IsWindows ? "echo [%cd%]" : "echo [$PWD]"); 302Exec exec = PrepareExec("echo [%cd%]"); 325Exec exec = PrepareExec(NativeMethodsShared.IsWindows ? "echo [%cd%]" : "echo [$PWD]"); 360Exec exec = PrepareExec("echo [hello]"); 397Exec exec = PrepareExec("echo [hello]"); 435Exec exec = PrepareExec("echo [hello]"); 472Exec exec = PrepareExec("echo [hello]"); 557Exec exec = PrepareExec("exit 0"); 604exec = PrepareExec(command); 635Exec exec = PrepareExec("echo [%cd%]"); 648Exec exec = PrepareExec("echo [%cd%]"); 662exec = PrepareExec("echo Some output & echo Some output & echo Some output & echo Some output "); 666exec = PrepareExec("echo Some output ; echo Some output ; echo Some output ; echo Some output "); 692Exec exec = PrepareExec(cmdLine); 700exec = PrepareExec(cmdLine); 723Exec exec = PrepareExec(cmdLine); 732exec = PrepareExec(cmdLine); 750Exec exec = PrepareExec(cmdLine); 766Exec exec = PrepareExec(cmdLine); 783Exec exec = PrepareExec("echo unmatched curly {"); 799Exec exec = PrepareExec("echo unmatched curly {"); 816Exec exec = PrepareExec(cmdLine); 829Exec exec = PrepareExec("echo YOGI BEAR "); 842Exec exec = PrepareExec("echo [%cd%]"); 876Exec exec = PrepareExec("echo this is an innocuous successful command"); 891Exec exec = PrepareExec(" "); 923Exec exec = PrepareExec("set foo=blah"); 937exec = PrepareExec(testString); 1061Exec exec = PrepareExec(NativeMethodsShared.IsWindows ? $"type {textFilePath}" : $"cat {textFilePath}");