@@ -6,43 +6,52 @@ EXTENSIONS_DIR = ${PROJECT_DIR}/fidimag/extensions
66# ####################
77
88
9- build : extensions-directory
10- python setup.py build_ext --build-lib ${EXTENSIONS_DIR}
11- touch ${EXTENSIONS_DIR} /__init__.py
12- rm -rf ${PROJECT_DIR} /build
13-
14- extensions-directory :
15- mkdir -p ${EXTENSIONS_DIR}
9+ build :
10+ python setup.py build_ext --inplace
1611
1712clean :
18- rm -rf ${EXTENSIONS_DIR}
13+ rm -rf ${EXTENSIONS_DIR} /*
14+ touch ${EXTENSIONS_DIR} /__init__.py
1915
2016# ########
2117# Tests #
2218# ########
2319
24- create-dirs :
25- 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"
23+
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"
2628
27- test : create-dirs
29+ test-all : create-dirs
2830 py.test -v --junitxml=$(PROJECT_DIR ) /test-reports/junit/test-pytest.xml
2931
3032test-without-run-oommf : create-dirs
31- py.test -v -- junitxml=$(PROJECT_DIR ) /test-reports/junit/test-pytest.xml -m " not run_oommf "
33+ py.test -v -m " not run_oommf " --cov=fidimag --cov-report=html -- junitxml=$(PROJECT_DIR ) /test-reports/junit/test-pytest.xml
3234
3335test-basic :
3436 cd tests && py.test -v
3537
3638# Convenience name for commonly used quick running of tests
3739tq :
38- make test-quick
39- # Quick tests, also not using OOMMF tests
40+ $( error This target 'tq' has been removed, please update the code calling this)
41+
4042test-quick :
41- 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)
4244
4345
4446test-ipynb : create-dirs
45- cd doc/ipynb && py.test . -v --ipynb --sanitize-with sanitize_file --junitxml=$(PROJECT_DIR ) /test-reports/junit/test-ipynb-pytest.xml
47+ cd doc/ipynb && py.test . -v --nbval --sanitize-with sanitize_file --junitxml=$(PROJECT_DIR ) /test-reports/junit/test-ipynb-pytest.xml
48+
49+ test-oommf :
50+ py.test -v -m " oommf"
51+
52+ create-dirs :
53+ mkdir -p test-reports/junit
54+
4655
4756# ################
4857# Documentation #
0 commit comments