diff --git a/tests/session.scm b/tests/session.scm index 7302743..c33caae 100644 --- a/tests/session.scm +++ b/tests/session.scm @@ -222,10 +222,17 @@ (make-session #:host "localhost" #:config %config)) -(test-assert "make-session, '#:config' as a boolean value" +;; Setting '#:config' option to #f must set "process-config?" option to #f. +(test-assert "make-session, '#:config' as a boolean value: #f" (make-session #:host "localhost" #:config #f)) +;; Setting '#:config' option to #t must initiate parsing the default user +;; configuration file ('~/.ssh/config'.) +(test-assert "make-session, '#:config' as a boolean value: #t" + (make-session #:host "localhost" + #:config #t)) + (test-error "make-session, only '#:config' is specified" 'guile-ssh-error (make-session #:config %config))