(should (equal (buffer-string) "foo\n")))
(delete-process server)))
+(defconst network-stream-tests--datadir
+ (expand-file-name "test/data/net" source-directory))
+
(defun make-tls-server (port)
(start-process "gnutls" (generate-new-buffer "*tls*")
"gnutls-serv" "--http"
- "--x509keyfile" "data/net/key.pem"
- "--x509certfile" "data/net/cert.pem"
+ "--x509keyfile"
+ (concat network-stream-tests--datadir "/key.pem")
+ "--x509certfile"
+ (concat network-stream-tests--datadir "/cert.pem")
"--port" (format "%s" port)))
(ert-deftest connect-to-tls-ipv4-wait ()