Skip to content

Commit c46f2bb

Browse files
committed
Merge pull request #36 from fangohr/tidy-up-makefile
Tidy up makefile
2 parents fcd9b8b + 37a6bd0 commit c46f2bb

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

Makefile

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,42 @@ clean:
1717
# Tests #
1818
#########
1919

20-
create-dirs:
21-
mkdir -p test-reports/junit
20+
# Quick tests, also not using OOMMF tests
21+
test:
22+
cd tests && py.test -v -m "not slow and not run_oommf"
2223

23-
test: create-dirs
24+
test2:
25+
# like test, but run also outside the 'tests' directory.
26+
# Doesn't work on Hans laptop.
27+
py.test -v -m "not slow and not run_oommf"
28+
29+
test-all: create-dirs
2430
py.test -v --junitxml=$(PROJECT_DIR)/test-reports/junit/test-pytest.xml
2531

2632
test-without-run-oommf: create-dirs
27-
py.test -v --junitxml=$(PROJECT_DIR)/test-reports/junit/test-pytest.xml -m "not run_oommf" --cov=fidimag --cov-report=html
33+
py.test -v -m "not run_oommf" --cov=fidimag --cov-report=html --junitxml=$(PROJECT_DIR)/test-reports/junit/test-pytest.xml
2834

2935
test-basic:
3036
cd tests && py.test -v
3137

3238
# Convenience name for commonly used quick running of tests
3339
tq:
34-
make test-quick
35-
# Quick tests, also not using OOMMF tests
40+
$(error This target 'tq' has been removed, please update the code calling this)
41+
3642
test-quick:
37-
cd tests && py.test -v -m "not slow and not run_oommf"
43+
$(error This target 'test-quick' has been removed, please update the code calling this)
3844

3945

4046
test-ipynb: create-dirs
4147
cd doc/ipynb && py.test . -v --ipynb --sanitize-with sanitize_file --junitxml=$(PROJECT_DIR)/test-reports/junit/test-ipynb-pytest.xml
4248

49+
test-oommf:
50+
py.test -v -m "oommf"
51+
52+
create-dirs:
53+
mkdir -p test-reports/junit
54+
55+
4356
#################
4457
# Documentation #
4558
#################

0 commit comments

Comments
 (0)