summaryrefslogtreecommitdiff
path: root/tests (follow)
Commit message (Expand)AuthorAgeFilesLines
...
* tests/popen.scm: Update copyright datesArtyom V. Poptsov2016-07-041-1/+1
* tests/common.scm (call-with-connected-session): New procedure•••* tests/client-server.scm (call-with-connected-session): Move to 'common.scm'. * tests/common.scm (call-with-connected-session): New procedure. * tests/popen.scm: Use it. Update tests. (call-with-connected-session/popen): New procedure. Use it in the tests. Artyom V. Poptsov2016-07-033-42/+48
* tests/client-server.scm ("userauth-public-key!, success"): CleanupArtyom V. Poptsov2016-07-031-2/+2
* tests/client-server.scm (call-with-connected-session): New proc•••* tests/client-server.scm (call-with-connected-session): New procedure. Use it everywhere in tests. ("connect!, disconnect!", "get-protocol-version") ("authenticate-server, not-known", "authenticate-server, ok") ("get-public-key-hash", "userauth-none!, denied") ("userauth-none!, partial") ("userauth-password!, password: non-string object") ("userauth-password!, success", "userauth-password!, denied") ("userauth-password!, partial") ("userauth-public-key!, private-key: non-key object") ("userauth-public-key!, private-key: public key") ("userauth-public-key!, success", "userauth-get-list"): Update. Remove extra delays. Artyom V. Poptsov2016-07-031-101/+68
* tests/session.scm ("blocking-flush!"): Improve•••* tests/session.scm ("blocking-flush!"): Use 'test-equal-with-log', simplify a bit. Artyom V. Poptsov2016-07-031-4/+3
* tests/log.scm: Use 'test-equal' where it's possibleArtyom V. Poptsov2016-07-031-10/+15
* tests/dist.scm ("split"): Split into two testsArtyom V. Poptsov2016-07-031-3/+9
* tests/common.scm (test-equal-with-log): New macro•••* tests/common.scm (test-equal-with-log): New macro. * tests/client-server.scm: Use it. Artyom V. Poptsov2016-07-032-24/+39
* tests/common.scm (test-error-with-log): Bugfix•••* tests/common.scm (test-error-with-log): Bugfix: Call 'test-error-with-log/handler' properly, with the test name as the 1st parameter. Artyom V. Poptsov2016-07-031-1/+1
* tests/Makefile.am: Compile 'common.scm'Artyom V. Poptsov2016-07-031-2/+32
* 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-032-13/+28
* tests/client-server.scm: Add a new TC•••* tests/client-server.scm ("userauth-public-key!, private-key: public key"): New test case. Artyom V. Poptsov2016-06-151-0/+20
* tests/client-server.scm: Add a new TC•••* tests/client-server.scm ("userauth-public-key!, private-key: non-key object"): Add a new test case. Artyom V. Poptsov2016-06-151-0/+20
* tests/client-server.scm: Add new TCs•••* tests/client-server.scm ("userauth-password!, session: non-session object") ("userauth-password!, session: non-connected session") ("userauth-password!, password: non-string object"): Add new TCs. Artyom V. Poptsov2016-06-131-0/+36
* tests/client-server.scm: Improve sectioning a bitArtyom V. Poptsov2016-06-131-0/+7
* tests/client-server.scm: Add a new TC•••* tests/client-server.scm ("userauth-public-key!, non-connected session"): Add new test case. Artyom V. Poptsov2016-06-131-0/+12
* tests/client-server.scm: Add a new TC•••* tests/client-server.scm ("userauth-public-key!, wrong parameter"): New test case. Artyom V. Poptsov2016-06-131-0/+5
* tests/client-server.scm: Add a new TC•••* tests/client-server.scm ("userauth-get-list, non-connected"): New test case. Artyom V. Poptsov2016-06-131-0/+3
* tests/client-server.scm: Add a new TC•••* tests/client-server.scm ("userauth-get-list, wrong parameter"): New test case. Artyom V. Poptsov2016-06-131-0/+6
* tests/client-server.scm: Add a new TC•••* tests/client-server.scm ("userauth-none!, wrong parameter"): New test case. Artyom V. Poptsov2016-06-131-0/+5
* tests/client-server.scm: Add a new TC•••* tests/client-server.scm ("userauth-none!, not connected"): New TC. Artyom V. Poptsov2016-06-131-0/+5
* 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): Bugfix•••* tests/common.scm (test-error-with-log): Bugfix: Handle 2nd syntax rule properly. Artyom V. Poptsov2016-06-121-4/+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-122-8/+18
* 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-123-63/+72
* tests/client-server.scm (make-session/channel-test): Improve•••* tests/client-server.scm (make-session/channel-test): Try to connect several times before giving up. Improve logging. Artyom V. Poptsov2016-05-031-6/+24
* tests/common.scm (run-client-test): Add extra loggingArtyom V. Poptsov2016-05-031-0/+7
* tests/common.scm (format-log/scm): ExportArtyom V. Poptsov2016-05-031-0/+1
* tests/common.scm (make-server-for-test): Protect with a mutex•••* tests/common.scm (make-server-for-test): Protect the whole part of getting a free port and calling 'server-listen' with a mutex so different processes trying to make a server won't interfere with each other. * tests/client-server.scm: Remove extra 'server-listen' calls. Artyom V. Poptsov2016-05-032-13/+19
* tests/client-server.scm (start-server/channel-test): Use 'start-server-loop'•••* tests/common.scm (start-server-loop): Export. * tests/client-server.scm (start-server/channel-test): Use it. Artyom V. Poptsov2016-05-022-23/+22
* tests/common.scm (start-server/exec): Simplify a bitArtyom V. Poptsov2016-05-021-4/+3
* tests/common.scm (multifork): Collect statues of processes•••* tests/common.scm (multifork): Collect statuses of child processes after terminating them. Artyom V. Poptsov2016-05-021-1/+2
* tests/common.scm (start-server-loop): New procedure•••* tests/common.scm (start-server-loop): New procedure. (start-server/dt-test, start-server/exec): Use it. Artyom V. Poptsov2016-05-021-36/+38
* tests/common.scm (start-server/dt-test): Simplify a bitArtyom V. Poptsov2016-05-021-2/+0
* tests/tunnel.scm ("call-with-ssh-forward"): Free allocated resources•••The test suite failes due to an overlap between "port forwarding, direct" and "call-with-ssh-forward". Presumably a process that spawned by "port forwarding, direct" keeps running and messes things up in the later tests. The solution seems to be that all the resources allocated by the "port forwarding, direct" should be freed as soon as they don't needed. * tests/tunnel.scm ("call-with-ssh-forward"): Free allocated resources at the end of the test. Artyom V. Poptsov2016-05-021-1/+4
* tests/common.scm (make-server-for-test): Pick an unused port•••* tests/common.scm (make-server-for-test): Use pick an unused port. Artyom V. Poptsov2016-05-021-1/+1
* tests/common.scm (get-unused-port): Protect with a mutex•••* tests/common.scm (get-unused-port): Protect the critical section with a mutex. Artyom V. Poptsov2016-05-021-1/+4
* Merge branch 'master' into wip-libssh-0-7Artyom V. Poptsov2016-02-241-0/+2
|\
| * tests/Makefile.am (CLEANFILES): Add 'server-{errors,libssh}.log'Artyom V. Poptsov2016-02-241-0/+2
* | Merge branch 'master' into wip-libssh-0-7Artyom V. Poptsov2016-02-232-29/+49
|\|
| * tests/common.scm (run-client-test/separate-process): Use 'poll'Artyom V. Poptsov2016-02-231-5/+5
| * tests/common.scm (start-server/dt-test): Use 'poll'Artyom V. Poptsov2016-02-231-4/+1
| * tests/common.scm (multifork): Use 'cut'Artyom V. Poptsov2016-02-231-2/+3
| * tests/popen.scm ("open-remote-pipe, OPEN_BOTH"): New TCArtyom V. Poptsov2016-02-231-0/+10
| * tests/popen.scm (response=?, input-only?, output-only?): New procedures•••* tests/popen.scm (response=?, input-only?, output-only?): New procedures. Use them in test cases. Artyom V. Poptsov2016-02-231-23/+22
| * tests/popen.scm ("open-remote-pipe, OPEN_PTY_READ"): New TC•••* tests/popen.scm ("open-remote-pipe, OPEN_PTY_READ"): New test case. ("open-remote-pipe"): Rename to "open-remote-pipe, OPEN_READ". Artyom V. Poptsov2016-02-221-1/+14
* | Merge branch 'master' into wip-libssh-0-7Artyom V. Poptsov2016-02-221-44/+26
|\|
| * tests/client-server.scm (simple-server-proc): New procedure•••* tests/client-server.scm (simple-server-proc): New procedure. ("connect!, disconnect!", "get-protocol-version") ("authenticate-server, not-known", "authenticate-server, ok") ("get-public-key-hash"): Use it. Artyom V. Poptsov2016-02-221-20/+16
| * tests/client-server.scm: Remove calls to 'primitive-exit'•••* tests/client-server.scm: Don't call to 'primitive-exit' at the end of a server process. Artyom V. Poptsov2016-02-221-29/+15