[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash 7d7a457 402/439: Allow run-tests.sh to skip tests
From: |
Phillip Lord |
Subject: |
[elpa] externals/dash 7d7a457 402/439: Allow run-tests.sh to skip tests |
Date: |
Tue, 04 Aug 2015 20:31:14 +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 5219ac0 422/439: [-let] Eliminate useless re-binding of symbols when sources are immutable, (continued)
- [elpa] externals/dash 5219ac0 422/439: [-let] Eliminate useless re-binding of symbols when sources are immutable, Phillip Lord, 2015/08/04
- [elpa] externals/dash 0ef7384 395/439: Merge pull request #114 from fbergroth/update-test-case, Phillip Lord, 2015/08/04
- [elpa] externals/dash 349931e 399/439: Add @holomorph to list of contributors, Phillip Lord, 2015/08/04
- [elpa] externals/dash 1d4881f 413/439: Update README, Phillip Lord, 2015/08/04
- [elpa] externals/dash 36b7f49 419/439: [-let] Reuse the ignore-place predicate, Phillip Lord, 2015/08/04
- [elpa] externals/dash b308794 416/439: [Fix #73] Add a mention of -filter to -keep docstring, Phillip Lord, 2015/08/04
- [elpa] externals/dash 51a07b1 408/439: Merge pull request #127 from occidens/fixfn, Phillip Lord, 2015/08/04
- [elpa] externals/dash 8530742 410/439: Add @wasamasa and @occidens to list of contributors, Phillip Lord, 2015/08/04
- [elpa] externals/dash db784f8 403/439: Merge pull request #124 from occidens/skiptests, Phillip Lord, 2015/08/04
- [elpa] externals/dash 9ebd172 421/439: [-let] Generate differently named symbols for temporary sources (makes, Phillip Lord, 2015/08/04
- [elpa] externals/dash 7d7a457 402/439: Allow run-tests.sh to skip tests,
Phillip Lord <=
- [elpa] externals/dash 3a3f528 396/439: Add info manual, Phillip Lord, 2015/08/04
- [elpa] externals/dash 4bd6273 397/439: Invoke makeinfo on the generated .texi, Phillip Lord, 2015/08/04
- [elpa] externals/dash cf7ca23 415/439: [Fix #97] Add -remove-item, Phillip Lord, 2015/08/04
- [elpa] externals/dash 90056bd 401/439: Merge pull request #121 from holomorph/master, Phillip Lord, 2015/08/04
- [elpa] externals/dash 3992e3c 406/439: Make `-fixfn' more robust at handling floats, Phillip Lord, 2015/08/04
- [elpa] externals/dash 1fde888 407/439: Merge pull request #125 from wasamasa/feature-some, Phillip Lord, 2015/08/04
- [elpa] externals/dash 2cc124b 423/439: [-let] Generate better code when skipping conses, Phillip Lord, 2015/08/04
- [elpa] externals/dash c61fc34 417/439: Add -remove-first/last, -map-first/last, -replace-first/last, Phillip Lord, 2015/08/04
- [elpa] externals/dash 40896b8 418/439: Fix the -let debug declaration, Phillip Lord, 2015/08/04