[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master e9f0772 218/399: ivy-test.el (counsel-find-file-with-dolla
From: |
Oleh Krehel |
Subject: |
[elpa] master e9f0772 218/399: ivy-test.el (counsel-find-file-with-dollars): Adjust |
Date: |
Sat, 20 Jul 2019 14:57:26 -0400 (EDT) |
branch: master
commit e9f0772e0084b4a2feb2957dd5d9ced7a12c9fb0
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
ivy-test.el (counsel-find-file-with-dollars): Adjust
---
Makefile | 5 +----
ivy-test.el | 29 ++++++++++++++++++-----------
2 files changed, 19 insertions(+), 15 deletions(-)
diff --git a/Makefile b/Makefile
index 968b8a4..c6f3eca 100644
--- a/Makefile
+++ b/Makefile
@@ -6,10 +6,7 @@ RM ?= rm -f
all: test
-tests:
- git clone -b test --single-branch https://github.com/abo-abo/swiper/
tests
-
-test: tests
+test:
$(emacs) -batch $(LOAD) -l ivy-test.el -f ert-run-tests-batch-and-exit
checkdoc:
diff --git a/ivy-test.el b/ivy-test.el
index 8f86b89..46a72dd 100644
--- a/ivy-test.el
+++ b/ivy-test.el
@@ -1120,33 +1120,40 @@ a buffer visiting a file."
"C-p C-m")
""))))
+(defun counsel--setup-test-files ()
+ (unless (file-exists-p "tests/")
+ (shell-command
+ "git clone -b test --single-branch https://github.com/abo-abo/swiper/
tests"))
+ (let ((default-directory (expand-file-name "tests/"))
+ (version "b1a2bbf"))
+ (shell-command
+ (format "git checkout %s || git fetch && git checkout %s" version
version))))
+
(ert-deftest counsel-find-file-with-dollars ()
- ;; This should be `skip-unless' instead,
- ;; but it was only added in Emacs 24.4.
- :expected-result (if (file-exists-p "test") :passed :failed)
+ (counsel--setup-test-files)
(should (string=
(file-relative-name
(ivy-with '(counsel-find-file) "fo C-m"
- :dir "test/find-file/files-with-dollar/"))
- "test/find-file/files-with-dollar/foo$")))
+ :dir "tests/find-file/files-with-dollar/"))
+ "tests/find-file/files-with-dollar/foo$")))
(ert-deftest counsel-find-file-with-dotfiles ()
;; This should be `skip-unless' instead,
;; but it was only added in Emacs 24.4.
- :expected-result (if (and (file-exists-p "test")
- (= emacs-major-version 26))
+ :expected-result (if (= emacs-major-version 26)
:passed
:failed)
+ (counsel--setup-test-files)
(should (string=
(file-relative-name
(ivy-with '(counsel-find-file) "f C-m"
- :dir "test/find-file/dotfiles/"))
- "test/find-file/dotfiles/foo/"))
+ :dir "tests/find-file/dotfiles/"))
+ "tests/find-file/dotfiles/foo/"))
(should (string=
(file-relative-name
(ivy-with '(counsel-find-file) "foob C-m"
- :dir "test/find-file/dotfiles/"))
- "test/find-file/dotfiles/.foobar1")))
+ :dir "tests/find-file/dotfiles/"))
+ "tests/find-file/dotfiles/.foobar1")))
(provide 'ivy-test)
- [elpa] master 6768214 221/399: ivy.el (ivy--insert-symbol-boundaries): Extract, (continued)
- [elpa] master 6768214 221/399: ivy.el (ivy--insert-symbol-boundaries): Extract, Oleh Krehel, 2019/07/20
- [elpa] master 2e4f2fb 213/399: Fix grep-occur when using multi-pass re-builders, Oleh Krehel, 2019/07/20
- [elpa] master a9e81f8 220/399: ivy.el: Don't offer virtual buffers for plain switch-to-buffer, Oleh Krehel, 2019/07/20
- [elpa] master 5eea0af 229/399: ivy.el (ivy--minibuffer-index-bounds): Simplify logic, Oleh Krehel, 2019/07/20
- [elpa] master c1ff0d6 228/399: ivy.el: Fix compiler warning, Oleh Krehel, 2019/07/20
- [elpa] master 6ec1126 225/399: ivy.el (ivy-help): Set org-hide-emphasis-markers, Oleh Krehel, 2019/07/20
- [elpa] master cc56ec0 231/399: swiper.el (swiper-isearch-format-function): Add, Oleh Krehel, 2019/07/20
- [elpa] master 6fd1620 235/399: swiper.el (swiper--recenter-p): Extract, Oleh Krehel, 2019/07/20
- [elpa] master 1d08b29 233/399: swiper.el (swiper-isearch): Ensure font lock, Oleh Krehel, 2019/07/20
- [elpa] master b49f17f 224/399: counsel.el (counsel-ag-function): Add dynamic case folding, Oleh Krehel, 2019/07/20
- [elpa] master e9f0772 218/399: ivy-test.el (counsel-find-file-with-dollars): Adjust,
Oleh Krehel <=
- [elpa] master eee9716 236/399: Add open in dired action to counsel-file-jump, Oleh Krehel, 2019/07/20
- [elpa] master fb64ea3 237/399: swiper.el (swiper-mc): Works for swiper-isearch, Oleh Krehel, 2019/07/20
- [elpa] master 39a9e94 232/399: swiper.el (swiper-isearch-current-match): Add, Oleh Krehel, 2019/07/20
- [elpa] master b7574fe 234/399: swiper.el: Extra condition to recenter in terminal, Oleh Krehel, 2019/07/20
- [elpa] master 10755b2 239/399: swiper.el (swiper-isearch-toggle): Add, Oleh Krehel, 2019/07/20
- [elpa] master 38f8e45 242/399: swiper.el (swiper-isearch-toggle): Fix candidate jump in toggle, Oleh Krehel, 2019/07/20
- [elpa] master d9d6064 241/399: ivy.el (ivy-completion-in-region-action): Obey :exit-function, Oleh Krehel, 2019/07/20
- [elpa] master 6075a73 243/399: swiper.el (swiper--add-overlays): Reuse swiper--add-overlay, Oleh Krehel, 2019/07/20
- [elpa] master 687aae2 246/399: swiper.el (swiper-query-replace): Check for empty input, Oleh Krehel, 2019/07/20
- [elpa] master 8df253a 249/399: swiper.el (swiper--isearch-same-line-p): Add, Oleh Krehel, 2019/07/20