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 | |
Michal Vasko | b4cf6d1 | 2022-11-09 10:26:14 +0100 | [diff] [blame] | 13 | # skip no dir and/or no history warnings |
14 | expect_output "(YANGLINT.*)*> " | ||||
roman | e84f7dc | 2022-10-21 10:25:38 +0200 | [diff] [blame] | 15 | |
16 | 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> " | ||||
17 | |||||
roman | 300b878 | 2022-08-11 12:49:21 +0200 | [diff] [blame] | 18 | send -- "exit\r" |
roman | e84f7dc | 2022-10-21 10:25:38 +0200 | [diff] [blame] | 19 | |
roman | 300b878 | 2022-08-11 12:49:21 +0200 | [diff] [blame] | 20 | expect eof |