40 references to PrepareExec
Microsoft.Build.Tasks.UnitTests (40)
Exec_Tests.cs (40)
67Exec exec = PrepareExec("echo Hello World!"); 90Exec exec = PrepareExec("echo LANG=$LANG; echo LC_ALL=$LC_ALL;"); 130Exec exec = PrepareExec("echo Four days until ZBB!"); 147Exec exec = PrepareExec(NativeMethodsShared.IsWindows ? "xcopy thisisanonexistentfile" : "cp thisisanonexistentfile thatisanonexistentfile"); 165Exec exec = PrepareExec(NativeMethodsShared.IsWindows ? ":foo \n goto foo" : "while true; do sleep 1; done"); 195Exec exec = PrepareExec(NativeMethodsShared.IsWindows ? ":foo \n goto foo" : "while true; do sleep 1; done"); 215var exec = PrepareExec("echo hello\r\n\r\n"); 229Exec exec = PrepareExec("exit 120"); 243Exec exec = PrepareExec(cmdLine); 259Exec exec = PrepareExec(cmdLine); 269Exec exec = PrepareExec("dir ||invalid||"); 279Exec exec = PrepareExec(NativeMethodsShared.IsWindows ? "echo [%cd%]" : "echo [$PWD]"); 292Exec exec = PrepareExec("echo [%cd%]"); 315Exec exec = PrepareExec(NativeMethodsShared.IsWindows ? "echo [%cd%]" : "echo [$PWD]"); 350Exec exec = PrepareExec("echo [hello]"); 387Exec exec = PrepareExec("echo [hello]"); 425Exec exec = PrepareExec("echo [hello]"); 462Exec exec = PrepareExec("echo [hello]"); 547Exec exec = PrepareExec("exit 0"); 594exec = PrepareExec(command); 625Exec exec = PrepareExec("echo [%cd%]"); 638Exec exec = PrepareExec("echo [%cd%]"); 652exec = PrepareExec("echo Some output & echo Some output & echo Some output & echo Some output "); 656exec = PrepareExec("echo Some output ; echo Some output ; echo Some output ; echo Some output "); 682Exec exec = PrepareExec(cmdLine); 690exec = PrepareExec(cmdLine); 713Exec exec = PrepareExec(cmdLine); 722exec = PrepareExec(cmdLine); 740Exec exec = PrepareExec(cmdLine); 756Exec exec = PrepareExec(cmdLine); 773Exec exec = PrepareExec("echo unmatched curly {"); 789Exec exec = PrepareExec("echo unmatched curly {"); 806Exec exec = PrepareExec(cmdLine); 819Exec exec = PrepareExec("echo YOGI BEAR "); 832Exec exec = PrepareExec("echo [%cd%]"); 866Exec exec = PrepareExec("echo this is an innocuous successful command"); 881Exec exec = PrepareExec(" "); 913Exec exec = PrepareExec("set foo=blah"); 927exec = PrepareExec(testString); 1051Exec exec = PrepareExec(NativeMethodsShared.IsWindows ? $"type {textFilePath}" : $"cat {textFilePath}");