40 references to PrepareExec
Microsoft.Build.Tasks.UnitTests (40)
Exec_Tests.cs (40)
68Exec exec = PrepareExec("echo Hello World!"); 91Exec exec = PrepareExec("echo LANG=$LANG; echo LC_ALL=$LC_ALL;"); 131Exec exec = PrepareExec("echo Four days until ZBB!"); 148Exec exec = PrepareExec(NativeMethodsShared.IsWindows ? "xcopy thisisanonexistentfile" : "cp thisisanonexistentfile thatisanonexistentfile"); 166Exec exec = PrepareExec(NativeMethodsShared.IsWindows ? ":foo \n goto foo" : "while true; do sleep 1; done"); 185Exec exec = PrepareExec(NativeMethodsShared.IsWindows ? ":foo \n goto foo" : "while true; do sleep 1; done"); 205var exec = PrepareExec("echo hello\r\n\r\n"); 219Exec exec = PrepareExec("exit 120"); 233Exec exec = PrepareExec(cmdLine); 249Exec exec = PrepareExec(cmdLine); 259Exec exec = PrepareExec("dir ||invalid||"); 269Exec exec = PrepareExec(NativeMethodsShared.IsWindows ? "echo [%cd%]" : "echo [$PWD]"); 282Exec exec = PrepareExec("echo [%cd%]"); 305Exec exec = PrepareExec(NativeMethodsShared.IsWindows ? "echo [%cd%]" : "echo [$PWD]"); 340Exec exec = PrepareExec("echo [hello]"); 377Exec exec = PrepareExec("echo [hello]"); 415Exec exec = PrepareExec("echo [hello]"); 452Exec exec = PrepareExec("echo [hello]"); 537Exec exec = PrepareExec("exit 0"); 584exec = PrepareExec(command); 615Exec exec = PrepareExec("echo [%cd%]"); 628Exec exec = PrepareExec("echo [%cd%]"); 642exec = PrepareExec("echo Some output & echo Some output & echo Some output & echo Some output "); 646exec = PrepareExec("echo Some output ; echo Some output ; echo Some output ; echo Some output "); 672Exec exec = PrepareExec(cmdLine); 680exec = PrepareExec(cmdLine); 703Exec exec = PrepareExec(cmdLine); 712exec = PrepareExec(cmdLine); 730Exec exec = PrepareExec(cmdLine); 746Exec exec = PrepareExec(cmdLine); 763Exec exec = PrepareExec("echo unmatched curly {"); 779Exec exec = PrepareExec("echo unmatched curly {"); 796Exec exec = PrepareExec(cmdLine); 809Exec exec = PrepareExec("echo YOGI BEAR "); 822Exec exec = PrepareExec("echo [%cd%]"); 856Exec exec = PrepareExec("echo this is an innocuous successful command"); 871Exec exec = PrepareExec(" "); 903Exec exec = PrepareExec("set foo=blah"); 917exec = PrepareExec(testString); 1041Exec exec = PrepareExec(NativeMethodsShared.IsWindows ? $"type {textFilePath}" : $"cat {textFilePath}");