forked from python-graphblas/python-graphblas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconftest.py
42 lines (42 loc) · 1.2 KB
/
conftest.py
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
def pytest_addoption(parser):
parser.addoption(
"--backend",
action="store",
default=None,
help="name of a graphblas backend",
)
parser.addoption("--runslow", default=None, action="store_true", help="run slow tests")
parser.addoption(
"--blocking",
dest="blocking",
default=None,
action="store_true",
help="run in blocking mode",
)
parser.addoption(
"--nonblocking",
"--no-blocking",
"--noblocking",
"--non-blocking",
dest="blocking",
action="store_false",
help="run in non-blocking mode",
)
parser.addoption(
"--record",
dest="record",
default=None,
action="store_true",
help="Record GraphBLAS C calls and save to 'record.txt'",
)
parser.addoption(
"--mapnumpy", action="store_true", default=None, help="map numpy ops to GraphBLAS ops"
)
parser.addoption(
"--nomapnumpy",
"--no-mapnumpy",
dest="mapnumpy",
action="store_false",
help="don't map numpy ops to GraphBLAS ops",
)
parser.addoption("--randomly", action="store_true", help="run random test config")