From bdffe1bbad52ab38845a700e591a18710c0704b1 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Tue, 5 Nov 2024 20:04:58 +0300 Subject: [PATCH] tests/session: Expand "#:config" test suite * 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. --- tests/session.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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))