-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (31 loc) · 901 Bytes
/
Copy pathMakefile
File metadata and controls
40 lines (31 loc) · 901 Bytes
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
40
SHELL := /bin/bash
ALL_TESTS := t/0{1..6}*
LIVE_TESTS := t/0{5..6}*
SAFE_LIVE_TESTS := t/05*
UNIT_TESTS := t/0{1..4}*
UNSAFE_LIVE_TESTS := t/06*
help:
@echo USAGE
@echo " make [help] Show this help"
@echo " make alltest Run all, including unsafe tests"
@echo " make config Update config files"
@echo " make dbupgrade Upgrade all datasets"
@echo " make livetest Run safe and unsafe live tests"
@echo " make safetest Run safe live tests"
@echo " make unittest Run unit tests"
@echo " make unsafetest Run unsafe live tests"
alltest:
@SL_LIVETEST=1 prove -r $(ALL_TESTS)
.PHONY: config
config:
@util/update-config.pl
dbupgrade:
@util/upgrade-datasets.pl
livetest:
@SL_LIVETEST=1 prove -r $(LIVE_TESTS)
safetest:
@SL_LIVETEST=1 prove -r $(SAFE_LIVE_TESTS)
unittest:
@prove -r $(UNIT_TESTS)
unsafetest:
@SL_LIVETEST=1 prove -r $(UNSAFE_LIVE_TESTS)