mirror of
https://github.com/casey/just.git
synced 2024-12-04 11:14:03 +03:00
44 lines
576 B
Rust
44 lines
576 B
Rust
#[cfg(windows)]
|
|
test! {
|
|
name: powershell,
|
|
justfile: r#"
|
|
default:
|
|
#!powershell
|
|
Write-Host Hello-World
|
|
"#,
|
|
stdout: "Hello-World\n",
|
|
}
|
|
|
|
#[cfg(windows)]
|
|
test! {
|
|
name: powershell_exe,
|
|
justfile: r#"
|
|
default:
|
|
#!powershell.exe
|
|
Write-Host Hello-World
|
|
"#,
|
|
stdout: "Hello-World\n",
|
|
}
|
|
|
|
#[cfg(windows)]
|
|
test! {
|
|
name: cmd,
|
|
justfile: r#"
|
|
default:
|
|
#!cmd /c
|
|
@echo Hello-World
|
|
"#,
|
|
stdout: "Hello-World\r\n",
|
|
}
|
|
|
|
#[cfg(windows)]
|
|
test! {
|
|
name: cmd_exe,
|
|
justfile: r#"
|
|
default:
|
|
#!cmd.exe /c
|
|
@echo Hello-World
|
|
"#,
|
|
stdout: "Hello-World\r\n",
|
|
}
|