[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bash-completion 3210a44081 224/313: Makefile allows specif
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bash-completion 3210a44081 224/313: Makefile allows specifying the path to bash. |
Date: |
Sat, 3 Dec 2022 10:59:33 -0500 (EST) |
branch: elpa/bash-completion
commit 3210a4408191e47d3dba63f604a7d5a3367fa1e0
Author: Stephane Zermatten <szermatt@gmx.net>
Commit: Stephane Zermatten <szermatt@gmx.net>
Makefile allows specifying the path to bash.
With this change, setting the env variable BASH before running make
allows pointing the tests to a specific version of bash.
---
.gitignore | 2 +-
Makefile | 4 +++-
test/bash-completion-integration-test.el | 39 ++++++++++++++++----------------
3 files changed, 23 insertions(+), 22 deletions(-)
diff --git a/.gitignore b/.gitignore
index 7a0f02ff0c..90fdcfb681 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,3 @@
*.elc
.cask
-
+test/.set-bash-prog.el
diff --git a/Makefile b/Makefile
index a7838802bf..1d414beaf9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
CASK ?= cask
EMACS ?= emacs
+BASH ?= bash
all: test
@@ -10,7 +11,8 @@ test: clean-elc
${MAKE} clean-elc
unit:
- ${CASK} exec ert-runner
+ @echo '(setq bash-completion-prog "${BASH}")' >test/.set-bash-prog.el
+ ${CASK} exec ert-runner -l test/.set-bash-prog.el
compile:
${CASK} build
diff --git a/test/bash-completion-integration-test.el
b/test/bash-completion-integration-test.el
index ae3751d415..cfd338d862 100644
--- a/test/bash-completion-integration-test.el
+++ b/test/bash-completion-integration-test.el
@@ -34,26 +34,25 @@
(require 'ert)
(defmacro bash-completion_test-harness (bashrc &rest body)
- `(if (file-executable-p bash-completion-prog)
- (let ((test-env-dir (bash-completion_test-setup-env ,bashrc)))
- (let ((bash-completion-processes nil)
- (bash-completion-nospace nil)
- (bash-completion-start-files nil)
- (bash-completion-args
- (list "--noediting"
- "--noprofile"
- "--rcfile" (expand-file-name "bashrc" test-env-dir)))
- (kill-buffer-query-functions '())
- (minibuffer-message-timeout 0)
- (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
- (bash-completion_test-teardown-env test-env-dir)
- (bash-completion-reset-all)))))))
+ `(let ((test-env-dir (bash-completion_test-setup-env ,bashrc)))
+ (let ((bash-completion-processes nil)
+ (bash-completion-nospace nil)
+ (bash-completion-start-files nil)
+ (bash-completion-args
+ (list "--noediting"
+ "--noprofile"
+ "--rcfile" (expand-file-name "bashrc" test-env-dir)))
+ (kill-buffer-query-functions '())
+ (minibuffer-message-timeout 0)
+ (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
+ (bash-completion_test-teardown-env test-env-dir)
+ (bash-completion-reset-all))))))
(defmacro bash-completion_test-with-shell-harness (bashrc &rest body)
`(bash-completion_test-harness
- [nongnu] elpa/bash-completion fefe5ae88e 191/313: Introduce bash-completion-remote-prog., (continued)
- [nongnu] elpa/bash-completion fefe5ae88e 191/313: Introduce bash-completion-remote-prog., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion d99ad71050 199/313: Add a new option to disable the use of separate processes to perform completion, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion ce59fb017a 202/313: Fallback to the use of a separate process if an error occurs, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 24f78df106 203/313: Improve output handling, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion cc9a3dcab4 204/313: Stop cluttering the Bash history, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 0a6fa499ad 207/313: Fix one parameter name of bash-completion--wait-for-prompt, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 3bd30eea3f 208/313: Use the correct function to send string to completion process, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion fd2f8e277e 211/313: Improve prompt detection, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion ac3bd404e8 220/313: Fix typos (#40), ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion f31bb46ff4 222/313: Making sure that line editing is turned off (#42), ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 3210a44081 224/313: Makefile allows specifying the path to bash.,
ELPA Syncer <=
- [nongnu] elpa/bash-completion 2178030cdf 225/313: Allow running unit and integration tests separately., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion c564aff656 229/313: Add workflow for testing on MacOS with BASH 3., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion ba8be293a4 226/313: Added test workflow to run tests on multiple versions of Emacs., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 0a757bd5f4 238/313: Test calling completion from non-comint and non-bash shell buffers., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion c99083233f 241/313: Fix shell-type detection logic for remote processes., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 4a1d89f01e 246/313: Support -o vi and emacs even in single-process mode., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion aec357fbf1 249/313: Test default completion with both value of use-separate-process., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 38c82e5d59 252/313: Conserve quotes even when expanding case-insensitively., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 6a66eeda45 253/313: Add test-case to cover tilde and tilde expansion., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion b9e519e2ad 263/313: Fix typo, ELPA Syncer, 2022/12/03