From 9cf43c171c81eb14037bf595f23642091ed1aa19 Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 13 Apr 2012 00:13:49 +0200 Subject: test rifle when running "make test" --- Makefile | 2 +- ranger/ext/rifle.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c5818ee9..20cf6f25 100644 --- a/Makefile +++ b/Makefile @@ -60,7 +60,7 @@ doc: cleandoc test: @for FILE in $(shell grep -IHm 1 doctest -r ranger | cut -d: -f1); do \ echo "Testing $$FILE..."; \ - PYTHONPATH=".:"$$PYTHONPATH ${PYTHON} $$FILE; \ + RANGER_DOCTEST=1 PYTHONPATH=".:"$$PYTHONPATH ${PYTHON} $$FILE; \ done man: diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py index 59351095..c0658c17 100755 --- a/ranger/ext/rifle.py +++ b/ranger/ext/rifle.py @@ -339,4 +339,8 @@ def main(): if __name__ == '__main__': - main() + if 'RANGER_DOCTEST' in os.environ: + import doctest + doctest.testmod() + else: + main() -- cgit 1.4.1-2-gfad0 managerakspecs <akspecs@tilde.institute>
summary refs log tree commit diff stats
path: root/INSTALL
blob: ee9e62854ec1c17525f6ff17016c6d8944ae45e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39