summaryrefslogtreecommitdiff
path: root/tests/session.scm (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tests/key.scm ("string->public-key, RSA, gc test"): New TCArtyom V. Poptsov2016-08-191-0/+10
| | | | | * tests/key.scm ("string->public-key, RSA, gc test"): New TC. * tests/session.scm ("%make-session, gc test"): New TC.
* tests/common.scm (test-begin-with-log): New procedureArtyom V. Poptsov2016-07-041-6/+1
| | | | | | | * tests/common.scm (test-begin-with-log): New procedure. * tests/client-server.scm, tests/common.scm, tests/dist.scm, tests/key.scm, tests/popen.scm, tests/server-client.scm, tests/server.scm, tests/session.scm, tests/tunnel.scm: Use it.
* tests/session.scm ("blocking-flush!"): ImproveArtyom V. Poptsov2016-07-031-4/+3
| | | | | * tests/session.scm ("blocking-flush!"): Use 'test-equal-with-log', simplify a bit.
* session.scm: Implement SSH config parsingArtyom V. Poptsov2015-12-011-0/+8
| | | | | | | | | | | * modules/ssh/session.scm (make-session): Accept 'config' option. (session-parse-config!): New procedure. * libguile-ssh/session-func.c (gssh_session_parse_config): New procedure. * tests/common.scm (%config): Export the new global symbol. * doc/api-sessions.texi: Update. * tests/config: Add to the repository. * tests/session.scm ("session-parse-config!"): New test case. * NEWS: Update.
* session-func.c (set_callbacks): Validate callbacksArtyom V. Poptsov2015-11-201-1/+2
| | | | | | | * libguile-ssh/session-func.c (set_callbacks): Ensure that callbacks are procedures. (scm_is_procedure, validate_callback): New procedures. * tests/session.scm ("session-set!, invalid values"): Update.
* tests/session.scm ("session-set!, valid values"): BugfixArtyom V. Poptsov2015-11-201-3/+3
| | | | | | * tests/session.scm ("session-set!, valid values"): Due to erroneous quasiquote usage the test would always fail to set callbacks for a session. The patch fixes that.
* tests/session.scm: Setup loggingArtyom V. Poptsov2015-11-201-0/+7
|
* tests/session.scm ("session-get"): Test callbacksArtyom V. Poptsov2015-11-191-2/+7
|
* libguile-ssh: Add basic support of session callbacksArtyom V. Poptsov2015-11-181-2/+5
| | | | | | | | | | | | | | * libguile-ssh/session-func.c: Add basic support of session callbacks. (libssh_global_request_callback, set_callbacks): New static procedure. (set_option): Change paramegers. All callers updated. (guile_ssh_session_set): Update. * libguile-ssh/session-type.h (session_data): Add 'callbacks' field. * modules/ssh/session.scm (make-session): Accept 'callbacks' as a keyed argument. * libguile-ssh/message-type.c (_scm_from_ssh_message): New procedure. * libguile-ssh/message-type.h: Update. * tests/session.scm ("session-set!, valid values") ("session-set!, invalid values"): Check new 'callbacks' option.
* tests/session.scm ("session-set!, invalid values"): Use 'const'Artyom V. Poptsov2015-10-291-2/+1
|
* tests/session.scm: Use (tests common)Artyom V. Poptsov2015-10-291-5/+6
|
* ssh/session-func.c (guile_ssh_session_get): Handle `port' optionArtyom V. Poptsov2014-08-091-0/+3
| | | | | | * ssh/session-func.c (guile_ssh_session_get): Handle `port' option. * doc/api-sessions.texi (Sessions): Update. * tests/session.scm ("session-get"): Update.
* ssh/session-func.c: Handle disconnected sessionsArtyom Poptsov2014-07-121-4/+0
| | | | | | | | | | | | * ssh/session-func.c (guile_ssh_get_protocol_version) (guile_ssh_authenticate_server, guile_ssh_get_server_public_key) (guile_ssh_write_known_host): Expect a connected session as an argument. Throw `wrong-type-arg' if the session is not connected. * tests/session.scm ("get-protocol-version"): Move with some changes to `tests/client-server.scm'. * tests/client-server.scm ("get-protocol-version"): New TC. * doc/api-sessions.texi (Sessions): Update. * NEWS: Update.
* ssh/session.scm (session-get): New procedureArtyom Poptsov2014-06-221-0/+16
| | | | | | | | | | * ssh/session-func.c (guile_ssh_session_get): New procedure. * ssh/session-func.h (guile_ssh_session_get): Likewise. * ssh/session.scm (session-get): New procedure. * tests/session.scm ("session-get"): New TC. * doc/api-sessions.texi (Sessions): Add description of `session-get' procedure. * NEWS: Update.
* Replace `libguile-ssh' with `Guile-SSH' in commentaries.Artyom Poptsov2014-03-231-4/+4
| | | | | | | | | | | | | | | | | | | | | * Makefile.am, am/Makefile.am, ssh/Makefile.am, ssh/auth.c, ssh/auth.h, ssh/auth.scm, ssh/base64.c, ssh/base64.h, ssh/channel-func.c, ssh/channel-func.h, ssh/channel-main.c, ssh/channel-type.c, ssh/channel-type.h, ssh/channel.scm, ssh/common.c, ssh/common.h, ssh/error.c, ssh/error.h, ssh/key-func.c, ssh/key-func.h, ssh/key-main.c, ssh/key-type.c, ssh/key-type.h, ssh/key.scm, ssh/message-func.c, ssh/message-func.h, ssh/message-main.c, ssh/message-type.c, ssh/message-type.h, ssh/message.scm, ssh/server-func.c, ssh/server-func.h, ssh/server-main.c, ssh/server-type.c, ssh/server-type.h, ssh/server.scm, ssh/session-func.c, ssh/session-func.h, ssh/session-main.c, ssh/session-type.c, ssh/session-type.h, ssh/session.scm, ssh/threads.c, ssh/threads.h, ssh/version.c, ssh/version.scm, tests/Makefile.am, tests/client-server.scm, tests/server-client.scm, tests/server.scm, tests/session.scm, tests/sssh-ssshd.scm, configure.ac: Replace `libguile-ssh' with `Guile-SSH' in commentaries.
* tests/session.scm, tests/server.scm: Update comments.Artyom Poptsov2014-01-291-0/+4
|
* tests/: Update TCs to use symbols for `log-verbosity' option.Artyom Poptsov2014-01-281-2/+3
| | | | | | | | | | | | * tests/client-server.scm ("connect"): Update test to use symbols for setting log levels. * tests/server.scm ("server-set!, valid values"): Likewise. ("server-set!, invalid values"): Likewise. ("make-server"): Likewise. ("server-listen"): Likewise. * tests/session.scm ("session-set!, valid values"): Likewise. ("session-set!, invalid values"): Update `log-verbosity' data set for the test.
* tests/session.scm: Fix a typo in a TC name.Artyom Poptsov2014-01-261-1/+1
| | | | | * tests/session.scm ("comparison of sessions"): Fix a typo in TC name.
* tests/session.scm: Fix bug in TC.Artyom Poptsov2014-01-261-1/+1
| | | | | * tests/session.scm ("session-set!, valid values"): Fix bug in TC: try all valid values for each option, not only the first one.
* tests/session.scm ("comparsion of sessions"): New TC.Artyom Poptsov2014-01-261-8/+5
| | | | | * tests/session.scm ("comparsion of sessions"): Use one test case instead of two separated TCs (equal?/not equal? test).
* tests/session.scm ("session?"): New test case.Artyom Poptsov2014-01-261-0/+6
|
* Add some unit tests.Artyom Poptsov2014-01-261-0/+110
* tests/session.scm, tests/auth.scm: New files. * srfi/srfi-64.upstream.scm, srfi/srfi-64.scm: New files. * Makefile.am (SCM_TESTS): New variable. (TESTS): Likewise. (TEST_EXTENSIONS): Likewise. (AM_TESTS_ENVIRONMENT): Likewise. (SCM_LOG_COMPILER): Likewise. (AM_SCM_LOG_FLAGS): Likewise. (tests): New target. (CLEANFILES): Add .log-files produced by tests.