Mercurial > core / lisp/lib/vc/tests.lisp
changeset 698: |
96958d3eb5b0 |
parent: |
328e1ff73938
|
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Fri, 04 Oct 2024 22:04:59 -0400 |
permissions: |
-rw-r--r-- |
description: |
fixes |
2 (:use :cl :std :rt :vc/proto :vc/git :vc/hg :vc)) 8 (defmacro with-temp-repo (kind &body body) 9 `(let ((repo ,(make-repo "."))) 10 (setf (vc-path repo) (merge-pathnames (format nil "~A" (gensym "repo")) "/tmp/")) 12 (:hg (sb-mop::change-class repo 'hg-repo)) 13 (:git (sb-mop::change-class repo 'git-repo)) 16 (let ((*default-pathname-defaults* (vc-path repo))) 21 (is (streamp (sb-ext:process-output (run-git-command "status" nil :stream)))))) 25 (is (streamp (sb-ext:process-output (run-hg-command "status" nil :stream)))))) 28 (with-temp-repo (*default-vc-kind*) (is repo))) 31 (deftest vc-mirror-update (:skip t) 32 "This test replicates a nushell script we've used for a very long time - 'use 33 vc.nu; vc mirrors update;'"