[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash 7d7a457 402/426: Allow run-tests.sh to skip tests
From: |
Phillip Lord |
Subject: |
[elpa] externals/dash 7d7a457 402/426: Allow run-tests.sh to skip tests |
Date: |
Tue, 04 Aug 2015 19:39:13 +0000 |
branch: externals/dash
commit 7d7a457c488eaeb2559c92107f63cfbe05a4029f
Author: William West <address@hidden>
Commit: William West <address@hidden>
Allow run-tests.sh to skip tests
This change allows tests to be skipped for development purposes by
setting the environment variable `ERT_SELECTOR' to a valid ERT test
selector, e.g.:
ERT_SELECTOR='(not "-fixfn")' ./run-tests.sh
Refer to the docstrings for `ert-run-tests-batch-and-exit' and
`ert-select-tests' for details on how to compose test selectors.
---
run-tests.sh | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/run-tests.sh b/run-tests.sh
index edaffe3..3a0a024 100755
--- a/run-tests.sh
+++ b/run-tests.sh
@@ -6,13 +6,23 @@ if [ -z "$EMACS" ] ; then
EMACS="emacs"
fi
+# Run all tests by default.
+# To only run certain tests, set $ERT_SELECTOR as required.
+# For example, to skip the test "-fixfn", run the following command:
+#
+# ERT_SELECTOR='(not "-fixfn")' ./run-tests.sh
+#
+if [ -z "$ERT_SELECTOR" ] ; then
+ ERT_SELECTOR="nil"
+fi
+
$EMACS -batch \
$([[ $EMACS == "emacs23" ]] && echo -l dev/ert.el) \
-l dash.el \
-l dash-functional.el \
-l dev/examples-to-tests.el \
-l dev/examples.el \
- -f ert-run-tests-batch-and-exit
+ --eval "(ert-run-tests-batch-and-exit (quote ${ERT_SELECTOR}))"
if [[ $EMACS != "emacs23" ]]; then
$EMACS -Q --batch \
- [elpa] externals/dash c61113b 420/426: [-let] Update outdated comment, (continued)
- [elpa] externals/dash c61113b 420/426: [-let] Update outdated comment, Phillip Lord, 2015/08/04
- [elpa] externals/dash c7b4cff 370/426: Update readme.md, Phillip Lord, 2015/08/04
- [elpa] externals/dash 38cd4d2 284/426: Fix fontification when there are dashes, Phillip Lord, 2015/08/04
- [elpa] externals/dash abff641 290/426: Merge pull request #76 from Fuco1/unfold, Phillip Lord, 2015/08/04
- [elpa] externals/dash f780322 305/426: Add `-flatten-n`, Phillip Lord, 2015/08/04
- [elpa] externals/dash c952a54 300/426: Merge pull request #90 from tmalsburg/last-item-doc, Phillip Lord, 2015/08/04
- [elpa] externals/dash faeb61a 379/426: Merge pull request #105 from fbergroth/debug-forms, Phillip Lord, 2015/08/04
- [elpa] externals/dash 90056bd 401/426: Merge pull request #121 from holomorph/master, Phillip Lord, 2015/08/04
- [elpa] externals/dash 733274f 398/426: Merge pull request #120 from holomorph/info-manual, Phillip Lord, 2015/08/04
- [elpa] externals/dash c09c0f6 372/426: Merge branch 'more-destructuring' (#103) of https://github.com/fbergroth/dash.el, Phillip Lord, 2015/08/04
- [elpa] externals/dash 7d7a457 402/426: Allow run-tests.sh to skip tests,
Phillip Lord <=
- [elpa] externals/dash db784f8 403/426: Merge pull request #124 from occidens/skiptests, Phillip Lord, 2015/08/04
- [elpa] externals/dash 3b63476 412/426: Move anaphoric function intro up into Functions section, Phillip Lord, 2015/08/04
- [elpa] externals/dash 7bd6b3b 400/426: Add dir entry to texinfo template, Phillip Lord, 2015/08/04
- [elpa] externals/dash 81b808d 409/426: Ignore dash.elc, Phillip Lord, 2015/08/04
- [elpa] externals/dash 3992e3c 406/426: Make `-fixfn' more robust at handling floats, Phillip Lord, 2015/08/04
- [elpa] externals/dash 4bd6273 397/426: Invoke makeinfo on the generated .texi, Phillip Lord, 2015/08/04
- [elpa] externals/dash 7d62b1a 393/426: Make test suite independent of dash, Phillip Lord, 2015/08/04
- [elpa] externals/dash 92ed7ff 391/426: Use vendored ert only on emacs23, Phillip Lord, 2015/08/04
- [elpa] externals/dash 07f0358 392/426: Add test case operator !!> for expected errors, Phillip Lord, 2015/08/04
- [elpa] externals/dash 0ef7384 395/426: Merge pull request #114 from fbergroth/update-test-case, Phillip Lord, 2015/08/04