emacs-elpa-diffs
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]