-
Notifications
You must be signed in to change notification settings - Fork 428
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
picocli fish completion: run fish dejagnu tests from java
- Loading branch information
serg-v
committed
Feb 25, 2023
1 parent
2f75728
commit 3caf4d7
Showing
6 changed files
with
20 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
exp_spawn fish --no-config | ||
expect -re "(.+>)" | ||
|
||
# Set terminal size to my notebook's resolution | ||
send "stty rows 53 cols 190\r" | ||
expect -re "(.+>)" | ||
|
||
source $::srcdir/lib/library.exp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
proc run_completion_test {cmd test candidates} { | ||
exp_internal 1 | ||
send "${cmd}\t" | ||
expect { | ||
-re "(\n${candidates}\u001b)" { pass $test } | ||
timeout { fail $test } | ||
} | ||
puts "###Output" | ||
puts "$expect_out(1,string)" | ||
exp_internal 0 | ||
send "\x03" | ||
expect ">" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
runtest --outdir log --tool completion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters