mirror of
https://github.com/nxtrace/NTrace-core.git
synced 2026-12-06 03:07:48 +00:00
test(ci): 验证 Windows 批处理中文路径与参数解码
This commit is contained in:
1 parent
5207c32a01
commit
dbb3f58c25
1 file changed
+3
@@ -713,6 +713,9 @@ finally {
|
||||
Pop-Location
|
||||
}
|
||||
|
||||
# Exercise command-file decoding independently of network capabilities.
|
||||
Run-Cmd -Name "command_utf8_回归" -Note "UTF-8 batch path and command arguments" -Command "echo 回归编码" -SuccessPattern "(?m)^回归编码\r?$"
|
||||
|
||||
$icmp4Capability = Get-CapabilityStatus -Name "icmp4" -Label "ICMPv4 tracing" -Command "`"$Bin`" --traceroute --no-color -q 1 -m 1 --timeout 1000 1.1.1.1" -SuccessPattern "hops max, .*ICMP mode"
|
||||
$tcp4Capability = Get-CapabilityStatus -Name "tcp4" -Label "TCPv4 tracing" -Command "`"$Bin`" --traceroute --no-color -T -q 1 -m 1 --timeout 1000 1.1.1.1" -SuccessPattern "hops max, .*TCP mode"
|
||||
$udp4Capability = Get-CapabilityStatus -Name "udp4" -Label "UDPv4 tracing" -Command "`"$Bin`" --traceroute --no-color -U -q 1 -m 1 --timeout 1000 1.1.1.1" -SuccessPattern "hops max, .*UDP mode"
|
||||
|
||||
Reference in new issue
Block a user