[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bash-completion 7822d84812 223/313: Added Cask with ert-ru
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bash-completion 7822d84812 223/313: Added Cask with ert-runner to compile and run test. |
Date: |
Sat, 3 Dec 2022 10:59:32 -0500 (EST) |
branch: elpa/bash-completion
commit 7822d84812b303fe3462d0b6cf7df0eec2513746
Author: Stephane Zermatten <szermatt@gmx.net>
Commit: Stephane Zermatten <szermatt@gmx.net>
Added Cask with ert-runner to compile and run test.
Cask now replaces run_tests.sh. A Makefile makes it easier to call
cask.
---
.gitignore | 2 ++
Cask | 9 +++++++++
Makefile | 21 +++++++++++++++++++++
bash-completion.el | 5 +++++
run_tests.sh | 28 ----------------------------
5 files changed, 37 insertions(+), 28 deletions(-)
diff --git a/.gitignore b/.gitignore
index c531d9867f..7a0f02ff0c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,3 @@
*.elc
+.cask
+
diff --git a/Cask b/Cask
new file mode 100644
index 0000000000..739e198d5b
--- /dev/null
+++ b/Cask
@@ -0,0 +1,9 @@
+(source gnu)
+(source melpa)
+
+(package-file "bash-completion.el")
+
+(files "bash-completion.el")
+
+(development
+ (depends-on "ert-runner"))
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000000..a7838802bf
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+CASK ?= cask
+EMACS ?= emacs
+
+all: test
+
+test: clean-elc
+ ${MAKE} unit
+ ${MAKE} compile
+ ${MAKE} unit
+ ${MAKE} clean-elc
+
+unit:
+ ${CASK} exec ert-runner
+
+compile:
+ ${CASK} build
+
+clean-elc:
+ ${CASK} clean-elc
+
+.PHONY: all test unit
diff --git a/bash-completion.el b/bash-completion.el
index f86470053e..92b34c3267 100644
--- a/bash-completion.el
+++ b/bash-completion.el
@@ -3,6 +3,11 @@
;; Copyright (C) 2009 Stephane Zermatten
;; Author: Stephane Zermatten <szermatt@gmx.net>
+;; Maintainer: Stephane Zermatten <szermatt@gmail.com>
+;; Version: 2.1.1
+;; Keywords: shell bash bash-completion
+;; URL: http://github.com/szermatt/emacs-bash-completion
+;; Package-Requires: ((emacs "24.1"))
;; This program is free software: you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
diff --git a/run_tests.sh b/run_tests.sh
deleted file mode 100755
index e0b7b6905a..0000000000
--- a/run_tests.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-#
-# Compiles and runs test using the emacs binary specified by
-# ${EMACSCMD}, which defaults to emacs, and the bash binary specified
-# by ${BASHCMD}, which defaults to bash.
-#
-rootdir="$(dirname "$0")"
-testdir="${rootdir}/test"
-emacscmd="${EMACSCMD:-emacs}"
-bashcmd="${BASHCMD:-$(which bash)}"
-echo "Testing against ${emacscmd} and ${bashcmd}:"
-"${emacscmd}" \
- -Q \
- -batch \
- -eval "(setq byte-compile-error-on-warn t)" \
- -L "${rootdir}" \
- -f batch-byte-compile \
- "${rootdir}/bash-completion.el" \
- || exit 1
-exec "${emacscmd}" \
- -Q \
- -batch \
- -eval "(setq bash-completion-prog \"${bashcmd}\")" \
- -L "${rootdir}" \
- -L "${testdir}" \
- -l "${testdir}/bash-completion-test.el" \
- -l "${testdir}/bash-completion-integration-test.el" \
- -f ert-run-tests-batch-and-exit
- [nongnu] elpa/bash-completion fd7e0e6fbe 078/313: added documentation, (continued)
- [nongnu] elpa/bash-completion fd7e0e6fbe 078/313: added documentation, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion dd34b278bf 069/313: stopping at point; the easy way, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 8756e80737 184/313: Replace 'options' in the completion struct with 'nospace'., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 2c4cb6edd2 186/313: Replace bash-completion-integration-test with a higher-level test for, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 0aed19067b 188/313: When using Bash 4, split words as Bash 4 does., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 4581a7823f 189/313: Bash 4: set COMP_TYPE and COMP_KEY to TAB, to let completion functions, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 802eb4e5a8 194/313: Set EMACS_BASH_COMPLETE even on remote (tramp) completion., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion fbdc78b877 198/313: Support compopt when using Bash 4., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion f1bd3d528f 201/313: Improve some docstrings, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion fa49dbb382 209/313: Improve status code retrieval, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 7822d84812 223/313: Added Cask with ert-runner to compile and run test.,
ELPA Syncer <=
- [nongnu] elpa/bash-completion 31a01859b2 227/313: Do not run tests under Emacs 24.1., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 21471cc542 228/313: Report result of running the test workflow on README.md., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 98a2a21be7 234/313: Provide a way of refreshing the completion table., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 4fcddf83c9 242/313: Make /etc/bash_completion scripts work with escaped spaces., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 2dbc7e61f6 248/313: Extend bash-completion-refresh to refresh everything, test it., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 04393bca0f 250/313: Apply filename post-processing even when prefix doesn't match., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 2a937b3763 255/313: Don't let Emacs post-filter completions built by bash., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion e95867c993 256/313: completion-table-with-cache captures and restore buffer and variables., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 747920fdbf 265/313: Avoid having to set BASH_COMPLETION., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion f15176ee59 267/313: Fix to properly evaluate PROMPT_COMMAND after restoring it., ELPA Syncer, 2022/12/03