Function: tramp-run-test

tramp-run-test is a byte-compiled function defined in tramp-sh.el.gz.

Signature

(tramp-run-test SWITCH FILENAME)

Documentation

Run test on the remote system, given a SWITCH and a FILENAME.

Returns the exit code of the test program.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-sh.el.gz
(defun tramp-run-test (switch filename)
  "Run `test' on the remote system, given a SWITCH and a FILENAME.
Returns the exit code of the `test' program."
  (with-parsed-tramp-file-name filename nil
    (tramp-send-command-and-check
     v
     (format
      "%s %s %s"
      (tramp-get-test-command v)
      switch
      (tramp-shell-quote-argument localname)))))