We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80ab9f5 commit a106b80Copy full SHA for a106b80
src/lib.rs
@@ -147,4 +147,16 @@ ls $TEMP
147
assert!(x.stdout.len() > 10);
148
assert!(x.stderr.is_empty())
149
}
150
+
151
+ #[test]
152
+ #[cfg(windows)]
153
+ fn test_install_choco() {
154
+ // choco is typically installed on github runners.
155
+ let x = run_script("Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))", true).unwrap();
156
+ println!("{x:?}");
157
158
+ let x = run_script("choco.exe --version", true).unwrap();
159
160
+ assert!(!x.stdout.is_empty());
161
+ }
162
0 commit comments