[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bash-completion f523a290a6 169/313: Make the integration t
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bash-completion f523a290a6 169/313: Make the integration tests run on Emacs 24.1. |
Date: |
Sat, 3 Dec 2022 10:59:27 -0500 (EST) |
branch: elpa/bash-completion
commit f523a290a6fc38959f1f0b83ad7d6f2dad3a0033
Author: Stephane Zermatten <szermatt@gmx.net>
Commit: Stephane Zermatten <szermatt@gmx.net>
Make the integration tests run on Emacs 24.1.
---
test/bash-completion-integration-test.el | 52 +++++++++++++++++---------------
1 file changed, 27 insertions(+), 25 deletions(-)
diff --git a/test/bash-completion-integration-test.el
b/test/bash-completion-integration-test.el
index 55198dea58..921dbffe60 100644
--- a/test/bash-completion-integration-test.el
+++ b/test/bash-completion-integration-test.el
@@ -47,6 +47,9 @@
"--rcfile" (expand-file-name "bashrc" test-env-dir)))
(kill-buffer-query-functions '())
(default-directory test-env-dir))
+ ;; Give Emacs time to process any input or process state
+ ;; change from bash-completion-reset.
+ (while (accept-process-output nil 0.1))
(unwind-protect
(progn ,@body)
(progn
@@ -58,8 +61,7 @@
(defmacro bash-completion_test-with-shell (complete-me)
`(bash-completion_test-harness
- (let ((explicit-shell-file-name bash-completion-prog)
- shell-buffer)
+ (let ((shell-buffer))
(unwind-protect
(progn
(setq shell-buffer (shell (generate-new-buffer-name
@@ -103,35 +105,35 @@ for testing completion."
(dired-delete-file test-env-dir 'always))))
(ert-deftest bash-completion-integration-test ()
- (skip-unless (file-executable-p bash-completion-prog))
- (bash-completion_test-harness
- (should-not (bash-completion-is-running))
- (should (buffer-live-p (bash-completion-buffer)))
- (should (bash-completion-is-running))
- (should-not (null (member
- "help "
- (let ((bash-completion-nospace nil))
- (bash-completion-comm "hel" 4 '("hel") 0 nil "hel")))))
- (bash-completion-reset)
- (should-not (bash-completion-is-running))))
+ (if (file-executable-p bash-completion-prog)
+ (bash-completion_test-harness
+ (should-not (bash-completion-is-running))
+ (should (buffer-live-p (bash-completion-buffer)))
+ (should (bash-completion-is-running))
+ (should-not (null (member
+ "help "
+ (let ((bash-completion-nospace nil))
+ (bash-completion-comm "hel" 4 '("hel") 0 nil
"hel")))))
+ (bash-completion-reset)
+ (should-not (bash-completion-is-running)))))
(ert-deftest bash-completion-integration-setenv-test ()
- (skip-unless (file-executable-p bash-completion-prog))
- (bash-completion_test-harness
- (bash-completion-send "echo $EMACS_BASH_COMPLETE")
- (with-current-buffer (bash-completion-buffer)
- (should (equal "t\n" (buffer-string))))))
+ (if (file-executable-p bash-completion-prog)
+ (bash-completion_test-harness
+ (bash-completion-send "echo $EMACS_BASH_COMPLETE")
+ (with-current-buffer (bash-completion-buffer)
+ (should (equal "t\n" (buffer-string)))))))
(ert-deftest bash-completion-integration-one-completion-test ()
- (skip-unless (file-executable-p bash-completion-prog))
- (should (equal "somefunction "
- (bash-completion_test-with-shell "somef"))))
+ (if (file-executable-p bash-completion-prog)
+ (should (equal "somefunction "
+ (bash-completion_test-with-shell "somef")))))
(ert-deftest bash-completion-integration-wordbreak-completion-test ()
- (skip-unless (file-executable-p bash-completion-prog))
- (should (equal "export SOMEPATH=some/directory:some/other/"
- (bash-completion_test-with-shell
- "export SOMEPATH=some/directory:some/oth"))))
+ (if (file-executable-p bash-completion-prog)
+ (should (equal "export SOMEPATH=some/directory:some/other/"
+ (bash-completion_test-with-shell
+ "export SOMEPATH=some/directory:some/oth")))))
;;; bash-completion-integration-test.el ends here
- [nongnu] elpa/bash-completion 6413d662ba 116/313: Rewrote the tests using ert instead of regress., (continued)
- [nongnu] elpa/bash-completion 6413d662ba 116/313: Rewrote the tests using ert instead of regress., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion d65f7e018d 118/313: Skip integration tests if /bin/bash is not executable., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion ec557d8949 123/313: shell-command.el is unnecessary, and has probably been so for years..., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 318e32979f 135/313: Display completion progress message only if completion takes too long., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 2378b04eeb 140/313: More easily call bash-completion-dynamic-complete-nocomint, faking bash, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 43348d0be1 143/313: Bugfixes: remove references to nonexistent variables, such as, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 583d1dde61 151/313: Remove usage of seq-position with a custom implementation., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 664452aca2 157/313: Merge pull request #22 from kfogel/21-fix-completion-re-21149fdc, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion ad8d72c626 162/313: README nit pick ; ), ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion c494a89070 168/313: Run tests under Emacs 24.1: alias letf to cl-letf., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion f523a290a6 169/313: Make the integration tests run on Emacs 24.1.,
ELPA Syncer <=
- [nongnu] elpa/bash-completion bbff4fa527 172/313: Merge branch 'master' of github.com:szermatt/emacs-bash-completion, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion b307dc24c3 005/313: keep cword, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion a79137cc86 004/313: escaped quotes, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 581864111e 039/313: integration test harness, process buffer cleanup, hidden buffer, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 3e1481741c 031/313: remove messages, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 0d360a45cd 017/313: fixed test case, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion c28492a749 036/313: wordbreak before and after, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 8b02aafc67 046/313: separators, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 2390d5cdf3 061/313: more commends and documentation; still need a commentary section, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion c0f7c20a6b 094/313: added license and missing test dependency, ELPA Syncer, 2022/12/03