summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-12-27 13:35:49 +0100
committerChristian Poessinger <christian@poessinger.com>2019-12-27 13:35:49 +0100
commitf9e8fc314c94c1a09804c1c5827bc1cf50c95358 (patch)
tree23c33151dc507fe7dcb84b2a20b14a3223f01148 /scripts
parent4593cc2296a307e698ca562c7954850c52d03866 (diff)
downloadvyos-build-f9e8fc314c94c1a09804c1c5827bc1cf50c95358.tar.gz
vyos-build-f9e8fc314c94c1a09804c1c5827bc1cf50c95358.zip
Testsuite: add basic cfg/op-mode switch
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check-qemu-install11
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install
index 636da7a6..33fdaad2 100755
--- a/scripts/check-qemu-install
+++ b/scripts/check-qemu-install
@@ -281,7 +281,16 @@ try:
c.expect(r'vyos@vyos:~\$')
log.info('Logged in!')
-
+ #################################################
+ # Basic Configmode/Opmode switch
+ #################################################
+ log.info("Basic CLI login test")
+ c.sendline('configure')
+ c.expect(r'\n[edit]\nvyos@vyos:~\#')
+ log.info('Switched to configuration mode')
+ c.sendline('exit')
+ c.expect(r'\nexit\nvyos@vyos:~\$')
+ log.info('Switched to operation mode')
#################################################
# Executing test-suite