Skip to content

Commit

Permalink
tests/session: Expand "#:config" test suite
Browse files Browse the repository at this point in the history
* tests/session.scm ("make-session, '#:config' as a boolean value: #f"):
Rename. Add a commentary.
("make-session, '#:config' as a boolean value: #t"): New test case.
  • Loading branch information
artyom-poptsov committed Nov 5, 2024
1 parent 88c9a89 commit bdffe1b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/session.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit bdffe1b

Please sign in to comment.