-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
85 lines (61 loc) · 1.64 KB
/
Makefile
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
DATA_DIR := tests/data
FMI_DIR := $(DATA_DIR)
CH_EXTENSION := di_ch_bincode
HL_EXTENSION := di_hl_bincode
GRAPH := $(FMI_DIR)/USA-road-d.NY.gr
# GRAPH := $(FMI_DIR)/aegaeis-ref-visibility.fmi
CH := $(GRAPH).$(CH_EXTENSION)
HL := $(GRAPH).$(HL_EXTENSION)
TESTS_RANDOM := $(GRAPH)_tests_random.json
TESTS_RANK := $(GRAPH)_tests_rank.json
PATHS := $(GRAPH).paths.json
NUM_TESTS := 10000
dirs:
mkdir $(FMI_DIR)
validate_time_dijkstra:
cargo r -r --bin validate_and_time --\
-p $(GRAPH)\
-g $(GRAPH)\
-t $(TESTS_RANDOM)
validate_time_ch:
cargo r -r --bin validate_and_time --\
--pathfinder $(CH)\
--graph $(GRAPH)\
--test-cases $(TESTS_RANDOM)
validate_time_hl:
cargo r -r --bin validate_and_time --\
-pathfinder $(HL)\
-graph $(GRAPH)\
-test_cases $(TESTS_RANDOM)
test:
cargo run --bin test --release --\
--graph-path $(GRAPH)\
--random_test_cases $(TESTS_RANDOM)
create_tests:
cargo run --bin create_tests --release --\
--graph $(GRAPH)\
--random-test-cases $(TESTS_RANDOM)\
--rank-test-cases $(TESTS_RANK)\
--number-of-tests $(NUM_TESTS)
create_paths:
cargo run --bin create_paths --release --\
--pathfinder $(GRAPH)\
--paths $(PATHS)
create_ch:
cargo run --bin create_ch --release --\
--graph $(GRAPH)\
--contracted-graph $(CH)
create_top_down_hl:
cargo run --bin create_top_down_hl --release --\
--graph $(GRAPH)\
--paths $(PATHS)\
--hub-graph $(HL)
create_top_down_ch:
cargo run --bin create_top_down_ch --release --\
--graph $(GRAPH)\
--paths $(PATHS)\
--contracted-graph $(CH)
create_hl_from_ch:
cargo run --bin create_hl_from_ch --release --\
--contracted-graph $(CH)\
--hub-graph $(HL)