File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,13 @@ you can clone from one of the following locations:
13
13
* Git mirror repository:
14
14
[ github.com/bos/text-test-data] ( https://github.com/bos/text-test-data )
15
15
16
- You should clone that repository into the ` tests ` subdirectory (your
17
- clone must be named ` text-test-data ` locally), then run `make -C
18
- tests/text-test-data` to uncompress the test files. Many tests and
19
- benchmarks will fail if the test files are missing.
16
+ You can clone either repository into the ` tests ` subdirectory using
17
+
18
+ cd tests/
19
+ make text-test-data # to clone from mercurial, OR
20
+ make VCS=git text-test-data # to clone from git
21
+
22
+ Many tests and benchmarks will fail if the test files are missing.
20
23
21
24
Functional tests
22
25
----------------
Original file line number Diff line number Diff line change
1
+ VCS = hg
1
2
count = 1000
2
3
3
4
all : coverage literal-rule-test
@@ -12,7 +13,11 @@ build: text-test-data
12
13
cabal build
13
14
14
15
text-test-data :
16
+ ifeq ($(VCS ) ,git)
17
+ git clone https://github.com/bos/text-test-data.git
18
+ else
15
19
hg clone https://bitbucket.org/bos/text-test-data
20
+ endif
16
21
$(MAKE) -C text-test-data
17
22
18
23
coverage/text-tests.tix :
@@ -37,4 +42,4 @@ coverage/hpc_index.html: coverage/coverage.tix
37
42
clean :
38
43
rm -rf dist coverage .hpc
39
44
40
- .PHONY : build coverage all literal-rule-test
45
+ .PHONY : all build clean coverage literal-rule-test
You can’t perform that action at this time.
0 commit comments