Skip to content

Commit

Permalink
Merge pull request #27 from Apteryks/master
Browse files Browse the repository at this point in the history
tests: Fix test suite for Guile 3.0.5.
  • Loading branch information
artyom-poptsov committed Feb 5, 2021
2 parents 9590376 + f7942cd commit 9b7d846
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 11 deletions.
4 changes: 3 additions & 1 deletion tests/client-server.scm
Expand Up @@ -743,8 +743,10 @@

;;;

(define exit-status (test-runner-fail-count (test-runner-current)))

(test-end "client-server")

(exit (= (test-runner-fail-count (test-runner-current)) 0))
(exit (= 0 exit-status))

;;; client-server.scm ends here.
4 changes: 3 additions & 1 deletion tests/dist.scm
Expand Up @@ -269,8 +269,10 @@ $4 = #<session #<undefined>@#<undefined>:22 (disconnected) 453fff>"
;;;


(define exit-status (test-runner-fail-count (test-runner-current)))

(test-end "dist")

(exit (= (test-runner-fail-count (test-runner-current)) 0))
(exit (= 0 exit-status))

;;; dist.scm ends here.
3 changes: 2 additions & 1 deletion tests/key.scm
Expand Up @@ -170,9 +170,10 @@
(eq? (get-key-type key) 'ecdsa-p256)))))))

;;;
(define exit-status (test-runner-fail-count (test-runner-current)))

(test-end "key")

(exit (= (test-runner-fail-count (test-runner-current)) 0))
(exit (= 0 exit-status))

;;; key.scm ends here.
5 changes: 4 additions & 1 deletion tests/log.scm
Expand Up @@ -64,8 +64,11 @@
(get-log-verbosity))


(define exit-status (test-runner-fail-count (test-runner-current)))

(test-end "log")

(exit (= (test-runner-fail-count (test-runner-current)) 0))
(exit (= 0 exit-status))


;;; log.scm ends here
4 changes: 3 additions & 1 deletion tests/popen.scm
Expand Up @@ -129,8 +129,10 @@
(format-log/scm 'nolog "open-remote-output-pipe" "channel: ~A" channel)
(output-only? channel)))))))

(define exit-status (test-runner-fail-count (test-runner-current)))

(test-end "popen")

(exit (= (test-runner-fail-count (test-runner-current)) 0))
(exit (= 0 exit-status))

;;; popen.scm ends here.
4 changes: 3 additions & 1 deletion tests/server-client.scm
Expand Up @@ -148,8 +148,10 @@
(equal? x session))))))


(define exit-status (test-runner-fail-count (test-runner-current)))

(test-end "server-client")

(exit (= (test-runner-fail-count (test-runner-current)) 0))
(exit (= 0 exit-status))

;;; server-client.scm ends here.
4 changes: 3 additions & 1 deletion tests/server.scm
Expand Up @@ -157,9 +157,11 @@
(server-listen server)
#t))

(define exit-status (test-runner-fail-count (test-runner-current)))

(test-end "server")

(exit (= (test-runner-fail-count (test-runner-current)) 0))
(exit (= 0 exit-status))

;;; server.scm ends here.

4 changes: 3 additions & 1 deletion tests/session.scm
Expand Up @@ -210,8 +210,10 @@
(let ((session (%make-session)))
(not (connected? session))))

(define exit-status (test-runner-fail-count (test-runner-current)))

(test-end "session")

(exit (= (test-runner-fail-count (test-runner-current)) 0))
(exit (= 0 exit-status))

;;; session.scm ends here.
3 changes: 2 additions & 1 deletion tests/shell.scm
Expand Up @@ -113,9 +113,10 @@


;;;
(define exit-status (test-runner-fail-count (test-runner-current)))

(test-end "shell")

(exit (= (test-runner-fail-count (test-runner-current)) 0))
(exit (= 0 exit-status))

;;; shell.scm ends here.
4 changes: 3 additions & 1 deletion tests/sssh-ssshd.scm
Expand Up @@ -118,8 +118,10 @@
result)))


(define exit-status (test-runner-fail-count (test-runner-current)))

(test-end "sssh-ssshd")

(exit (= (test-runner-fail-count (test-runner-current)) 0))
(exit (= 0 exit-status))

;;; sssh-ssshd.scm ends here.
4 changes: 3 additions & 1 deletion tests/tunnel.scm
Expand Up @@ -191,8 +191,10 @@
(= pnum portnum)))
(eq? (channel-cancel-forward session "localhost" portnum) 'ok))))))))

(define exit-status (test-runner-fail-count (test-runner-current)))

(test-end "tunnel")

(exit (= (test-runner-fail-count (test-runner-current)) 0))
(exit (= 0 exit-status))

;;; tunnel.scm ends here.

0 comments on commit 9b7d846

Please sign in to comment.