mirror of
https://github.com/sharkdp/bat
synced 2026-06-09 10:03:18 +00:00
test(Tcl): add shebang source files for regression test
CI reported FileNotFoundError for Tcl/{tclsh,expect,wish}_shebang in
tests/syntax-tests/source/Tcl/. The highlighted files existed but the
source files had been omitted, so create_highlighted_versions.py had
nothing to read from.
Source files match the shebang regression test inputs at
tests/examples/regression_tests/issue_3647_*.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/expect -f
|
||||
# Expect script detected via expect shebang
|
||||
set timeout 30
|
||||
spawn ssh user@host
|
||||
expect "password:"
|
||||
send "secret\r"
|
||||
expect eof
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env tclsh
|
||||
# Tcl script detected via tclsh shebang
|
||||
puts "Hello from tclsh"
|
||||
set x 42
|
||||
if {$x > 0} {
|
||||
puts "positive"
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/wish
|
||||
# Tk script detected via wish shebang
|
||||
package require Tk
|
||||
button .b -text "Click" -command {puts "clicked"}
|
||||
pack .b
|
||||
Reference in New Issue
Block a user