roman | 300b878 | 2022-08-11 12:49:21 +0200 | [diff] [blame] | 1 | #!/usr/bin/expect -f |
2 | |||||
roman | e84f7dc | 2022-10-21 10:25:38 +0200 | [diff] [blame] | 3 | if { [info exists ::env(CURRENT_SOURCE_DIR)] } { |
4 | source "$env(CURRENT_SOURCE_DIR)/tests/expect/common.exp" | ||||
Michal Vasko | 832a6fa | 2022-10-24 08:31:17 +0200 | [diff] [blame] | 5 | set yang_dir "$env(CURRENT_SOURCE_DIR)/examples" |
roman | e84f7dc | 2022-10-21 10:25:38 +0200 | [diff] [blame] | 6 | } else { |
7 | source "common.exp" | ||||
Michal Vasko | 832a6fa | 2022-10-24 08:31:17 +0200 | [diff] [blame] | 8 | set yang_dir "../../examples" |
roman | e84f7dc | 2022-10-21 10:25:38 +0200 | [diff] [blame] | 9 | } |
roman | 300b878 | 2022-08-11 12:49:21 +0200 | [diff] [blame] | 10 | |
Michal Vasko | 832a6fa | 2022-10-24 08:31:17 +0200 | [diff] [blame] | 11 | spawn $yanglint |
roman | e84f7dc | 2022-10-21 10:25:38 +0200 | [diff] [blame] | 12 | |
13 | expect_output "> " | ||||
14 | |||||
15 | expect_command "feature -a" 1 "yang:\r\n\t\\(none\\)\r\n\r\nietf-yang-schema-mount:\r\n\t\\(none\\)\r\n\r\n> " | ||||
16 | |||||
roman | 300b878 | 2022-08-11 12:49:21 +0200 | [diff] [blame] | 17 | send -- "exit\r" |
roman | e84f7dc | 2022-10-21 10:25:38 +0200 | [diff] [blame] | 18 | |
roman | 300b878 | 2022-08-11 12:49:21 +0200 | [diff] [blame] | 19 | expect eof |