forked from firedrakeproject/firedrake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (52 loc) · 1.7 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
all: modules
modules:
@echo " Building extension modules"
@python setup.py build_ext --inplace > build.log 2>&1 || cat build.log
lint:
@echo " Linting firedrake codebase"
@flake8 firedrake
@echo " Linting firedrake test suite"
@flake8 tests
@echo " Linting firedrake scripts"
@flake8 scripts
clean:
@echo " Cleaning extension modules"
@python setup.py clean > /dev/null 2>&1
@echo " RM firedrake/dmplex.so"
-@rm -f firedrake/dmplex.so > /dev/null 2>&1
@echo " RM firedrake/dmplex.c"
-@rm -f firedrake/dmplex.c > /dev/null 2>&1
@echo " RM firedrake/hdf5interface.so"
-@rm -f firedrake/hdf5interface.so > /dev/null 2>&1
@echo " RM firedrake/hdf5interface.c"
-@rm -f firedrake/hdf5interface.c > /dev/null 2>&1
@echo " RM firedrake/spatialindex.so"
-@rm -f firedrake/spatialindex.so > /dev/null 2>&1
@echo " RM firedrake/spatialindex.cpp"
-@rm -f firedrake/spatialindex.cpp > /dev/null 2>&1
@echo " RM firedrake/mg/impl.so"
-@rm -f firedrake/mg/impl.so > /dev/null 2>&1
@echo " RM firedrake/mg/impl.c"
-@rm -f firedrake/mg/impl.c > /dev/null 2>&1
THREADS=1
ifeq ($(THREADS), 1)
PYTEST_ARGS=
else
PYTEST_ARGS=-n $(THREADS)
endif
test_regression: modules
@echo " Running non-extruded regression tests"
@py.test tests/regression $(PYTEST_ARGS)
test_extrusion: modules
@echo " Running extruded regression tests"
@py.test tests/extrusion $(PYTEST_ARGS)
test_demos: modules
@echo " Running test of demos"
@py.test tests/demos $(PYTEST_ARGS)
test: modules
@echo " Running all regression tests"
@py.test tests $(PYTEST_ARGS)
alltest: modules lint test
shorttest: modules lint
@echo " Running short regression tests"
@py.test --short tests $(PYTEST_ARGS)