1
1
IMPLEMENTATIONS =$(wildcard implementations/* )
2
2
3
-
4
3
ifeq ($(TEST ) ,)
5
4
# If TEST is not set, by default build everything, generate
6
5
# data for all implementations, and then run all pytests.
@@ -10,53 +9,23 @@ test: data
10
9
pytest -v -k W
11
10
12
11
else
13
- # Otherwise, focus on a single implementation.
12
+ # Otherwise, focus on a single implementation, only generating
13
+ # its data and using the "-k W-" keyword to limit which pytests
14
+ # get run
14
15
15
16
.PHONY : test
16
- test : $(TEST )
17
- pytest -v -k $(TEST )
17
+ test : implementations/ $(TEST )
18
+ pytest -v -k W- $(TEST )
18
19
19
20
endif
20
21
21
22
data/reference_image.png :
22
23
python generate_reference_image.py
23
24
25
+ .PHONY : $(IMPLEMENTATIONS )
26
+ implementations/% : data/reference_image.png
27
+ bash $^ /driver.sh
28
+
24
29
.PHONY : report
25
30
report : data
26
31
python test/test_read_all.py
27
-
28
- #
29
- # Implementations
30
- #
31
-
32
- .PHONY : implementations/jzarr
33
- implementations/jzarr : data/reference_image.png
34
- bash implementations/jzarr/driver.sh
35
-
36
- .PHONY : implementations/n5java
37
- implementations/n5java : data/reference_image.png
38
- bash implementations/n5-java/generate_data.sh
39
-
40
- .PHONY : implementations/pyn5
41
- implementations/pyn5 : data/reference_image.png
42
- python implementations/generate_pyn5.py
43
-
44
- .PHONY : implementations/z5py
45
- implementations/z5py : data/reference_image.png
46
- python implementations/generate_z5py.py
47
-
48
- .PHONY : implementations/zarr-python
49
- implementations/zarr-python : data/reference_image.png
50
- python implementations/generate_zarr.py
51
-
52
- .PHONY : implementations/zarrita
53
- implementations/zarrita : data/reference_image.png
54
- python implementations/generate_zarrita.py
55
-
56
- .PHONY : implementations/js
57
- implementations/js : data/reference_image.png
58
- bash implementations/js/generate_data.sh
59
-
60
- .PHONY : implementations/xtensor_zarr
61
- implementations/xtensor_zarr : data/reference_image.png
62
- bash implementations/xtensor_zarr/generate_data.sh
0 commit comments