summaryrefslogtreecommitdiff
path: root/tests/dist.scm (follow)
Commit message (Expand)AuthorAgeFilesLines
* node.scm (node-guile-version): Bugfix•••'node-guile-version' would always fail due to a wrong call to 'rexec' procedure passing it a node object instead of a session object. This patch fixes the bug. Reported by Mark H Weaver <mhw@netris.org> and Ludovic Courtès <ludo@gnu.org>: <https://bugs.gnu.org/26976> * modules/ssh/dist/node.scm (node-guile-version): Pass node session to a 'rexec' procedure instead of a node object. * tests/common.scm (start-server/exec): Handle node version requests. * tests/dist.scm ("node-guile-version, valid response"): New test case. * NEWS: Update. Artyom V. Poptsov2017-05-211-0/+17
* tests/dist.scm ("with-ssh") <server>: Wait before closing a channelArtyom V. Poptsov2017-05-081-0/+1
* tests/dist.scm ("with-ssh") <server>: Close a channel•••* tests/dist.scm ("with-ssh") <server>: Close channel as soon as data sent to the client. Artyom V. Poptsov2017-05-081-1/+2
* node.scm (rrepl-get-result): Handle unknown # objects properly•••The procedure would always fail to read unknown objects (e.g. instances of Guile-SSH session) properly, raising an obscure errors like "Unknown # object: #\<". Now the procedure raises 'node-repl-error' with full evaluation result gotten from RREPL. Reported by Mathieu, in <https://github.com/artyom-poptsov/guile-ssh/issues/3> * modules/ssh/dist/node.scm (rrepl-get-result): Handle unknown # objects properly. * tests/dist.scm ("rrepl-get-result, unknown # object error"): New test case. * NEWS: Update Artyom V. Poptsov2017-05-021-0/+9
* node.scm (rrepl-get-result): Handle "unbound variable" errors•••The procedure would always fail to read "unbound variable" errors properly, returning wrong result with only two values (current module name and current language name). Now this bug should be fixed. Reported by Mathieu, in <https://github.com/artyom-poptsov/guile-ssh/issues/3> * modules/ssh/dist/node.scm (rrepl-get-result): Handle "unbound variable" errors. * tests/dist.scm ("rrepl-get-result, unbound variable error"): New test case. * AUTHORS, NEWS: Update. Artyom V. Poptsov2017-04-301-0/+13
* node.scm (rrepl-get-result): Bugfix: Handle compilation errors•••Guile-SSH would always fail to read compilation errors properly because it considered the message as "undefined" result. Now this bug should be fixed. An example of an error that now should be handled is "no code for module" due to using a non-existing module in 'with-ssh' expression. Reported by Mathieu, in <https://github.com/artyom-poptsov/guile-ssh/issues/3> * modules/ssh/dist/node.scm (rrepl-get-result): Bugfix: Do not consider compilation errors as undefined results. (rrepl-eval): Call 'exit' on the remote side to ensure that the remote side closed a channel. * tests/dist.scm: Improve logging. ("rrepl-get-result, compilation error"): New TC. * doc/guile-ssh.texi (Acknowledgments): Update. * AUTHORS, NEWS, THANKS: Update. Artyom V. Poptsov2017-04-231-7/+20
* tests/dist.scm ("with-ssh"): Wait for the client process•••* tests/dist.scm ("with-ssh"): Wait for the client process to read the response. Artyom V. Poptsov2017-01-041-2/+2
* tests/dist.scm: Update copyright datesArtyom V. Poptsov2016-07-151-1/+1
* tests/dist.scm ("with-ssh"): Simplify the client partArtyom V. Poptsov2016-07-151-14/+9
* tests/common.scm (test-begin-with-log): New procedure•••* 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. Artyom V. Poptsov2016-07-041-12/+5
* tests/dist.scm ("split"): Split into two testsArtyom V. Poptsov2016-07-031-3/+9
* tests/common.scm (test-error-with-log/=): New macro•••* tests/common.scm (test-error-with-log/=): New macro. (test-error-with-log/handler): New macro. (test-error-with-log): Use 'test-error-with-log/handler'. * tests/dist.scm ("rrepl-get-result, error"): Use 'test-error-with-log/='. Artyom V. Poptsov2016-07-031-8/+4
* tests/dist.scm ("rrepl-skip-to-prompt, invalid input"): Fix TC nameArtyom V. Poptsov2016-06-121-1/+1
* tests/dist.scm ("hand-out-job, invalid type"): New test caseArtyom V. Poptsov2016-06-121-0/+4
* tests/common.scm (test-error-with-log): New macro•••* tests/common.scm (test-error-with-log): New macro. * tests/dist.scm ("rrepl-skip-to-prompt, invalid input"): Use it. Artyom V. Poptsov2016-06-121-8/+4
* tests/common.scm (start-session-loop): New procedure•••* tests/common.scm (start-session-loop): New procedure. (start-server-loop, start-server/dist-test): Use it. (make-session-loop): Remove the macro. * tests/client-server.scm ("userauth-none!, success") ("userauth-none!, denied", "userauth-none!, partial") ("userauth-password!, success", "userauth-password!, denied") ("userauth-password!, partial", "userauth-public-key!, success") ("userauth-get-list"): Use 'start-session-loop'. * tests/dist.scm ("with-ssh"): Likewise. Artyom V. Poptsov2016-06-121-28/+28
* tests/client-server.scm, tests/dist.scm: Use 'poll'•••* tests/client-server.scm, tests/dist.scm: Use 'poll' from (tests common). Artyom V. Poptsov2016-02-211-6/+4
* tests/dist.scm ("with-ssh"): New TCArtyom V. Poptsov2015-11-241-0/+72
* tests/dist.scm: Setup loggingArtyom V. Poptsov2015-11-241-0/+5
* tests/dist.scm: Add TCs for 'rrepl-skip-to-prompt'•••* tests/dist.scm ("rrepl-skip-to-prompt, valid input") ("rrepl-skip-to-prompt, invalid input"): New test cases. Artyom V. Poptsov2015-11-241-0/+17
* tests/dist.scm ("assign-eval"): New TCArtyom V. Poptsov2015-10-271-0/+10
* tests/common.scm: Turn into a module•••* tests/common.scm: Turn into a module. * tests/client-server.scm, tests/server-client.scm, tests/dist.scm: Update. Artyom V. Poptsov2015-10-181-2/+2
* tests/dist.scm: Rename "rrepl-get-result" TCs•••* tests/dist.scm ("rrepl-get-result, valid input, result"): Rename to "rrepl-get-result". ("rrepl-get-result, valid input, unspecified"): Rename to "rrepl-get-result, unspecified". ("rrepl-get-result, valid input, error"): Rename to "rrepl-get-result, error". ("rrepl-get-result, valid input, elisp"): Rename to "rrepl-get-result, elisp". ("rrepl-get-result, valid input, multiple values"): Rename to "rrepl-get-result, multiple values". Artyom V. Poptsov2015-09-061-5/+5
* node.scm (rrepl-get-result): Handle multiple values•••* modules/ssh/dist/node.scm (rrepl-get-result): Return a vector of values if an expression was evaluated to multiple values. * doc/api-dist.texi: Update description of 'rrepl-get-result', add examples. * tests/dist.scm ("rrepl-get-result, valid input, multiple values"): New test case. Artyom V. Poptsov2015-09-061-0/+13
* tests/dist.scm ("rrepl-get-result, valid input, error"): Improve•••* tests/dist.scm ("rrepl-get-result, valid input, error"): Check the error message as well. Artyom V. Poptsov2015-09-061-5/+6
* tests/dist.scm ("rrepl-get-result, valid input, elisp"): New TCArtyom V. Poptsov2015-09-061-0/+9
* tests/dist.scm: Add commentsArtyom V. Poptsov2015-09-061-0/+7
* node.scm (rrepl-get-result): Return # of evaluation as a number•••* modules/ssh/dist/node.scm (rrepl-get-result): Return # of evaluation as a number. * tests/dist.scm ("rrepl-get-result, valid input, result"): Update. Artyom V. Poptsov2015-09-061-1/+1
* tests/dist.scm: Add TCs for 'rrepl-get-result'•••* tests/dist.scm ("rrepl-get-result, valid input, result") ("rrepl-get-result, valid input, unspecified") ("rrepl-get-result, valid input, error"): New test cases. Artyom V. Poptsov2015-09-061-1/+30
* tests/dist.scm ("set-job-node"): New test caseArtyom V. Poptsov2015-09-051-0/+14
* tests/dist.scm: Use 'common.scm'•••* tests/dist.scm: Use 'common.scm'. (make-session-for-test): Remove. Artyom V. Poptsov2015-09-051-14/+4
* job.scm (split): Fix a bug•••* ssh/dist/job.scm (split): Split a list of N elements into N parts when COUNT is greater than length of the list. * tests/dist.scm ("split"): Update. Artyom V. Poptsov2015-07-101-1/+2
* tests/dist.scm: New test suite•••* tests/dist.scm: New test suite. * tests/Makefile.am (SCM_TESTS): Add 'dist.scm'. Artyom V. Poptsov2015-06-071-0/+73