forked from mfontanini/libtins
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
87 lines (69 loc) · 1.63 KB
/
tox.ini
File metadata and controls
87 lines (69 loc) · 1.63 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[tox]
envlist = tools,run,test,clean
skip_missing_interpreters = true
skipsdist = true
[testenv]
skip_install = true
install_command = pip install {opts} {packages}
#basepython= python3.9
[testenv:tools]
setenv =
CFLAGS = -march=native -O2 -g -DNDEBUG
CXXFLAGS = {env:CFLAGS:-march=native -O2 -g -DNDEBUG}
LDFLAGS = {env:CFLAGS:-march=native -O2 -g -DNDEBUG} -Wl,-O1 -Wl,--as-needed
PREFIX = {env:PREFIX:{envdir}}
passenv =
CC
CXX
LD
AR
NM
RANLIB
PYTHON
DISPLAY
XAUTHORITY
HOME
USERNAME
USER
CI
XDG_*
GITHUB*
PIP_DOWNLOAD_CACHE
allowlist_externals =
bash
deps =
pip>=22.1
cmake
ninja
commands =
cmake -G {posargs:"Unix Makefiles"} -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX={env:PREFIX} -DLIBTINS_ENABLE_CXX11=ON -DLIBTINS_ENABLE_ACK_TRACKER=OFF -DLIBTINS_ENABLE_WPA2=OFF -DLIBTINS_ENABLE_DOT11=OFF -DLIBTINS_BUILD_TESTS=OFF
cmake --build build -j 4 --target install
bash -c 'ls -lh $PREFIX/*'
[testenv:run]
envdir = {toxworkdir}/tools
deps =
{[testenv:tools]deps}
passenv =
{[testenv:tools]passenv}
commands =
python --version
[testenv:test]
envdir = {toxworkdir}/tools
deps =
{[testenv:tools]deps}
setenv =
{[testenv:tools]setenv}
passenv =
{[testenv:tools]passenv}
commands =
cmake -G {posargs:"Unix Makefiles"} -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j4 --target tests
ctest -V --test-dir build/
[testenv:clean]
skip_install = true
allowlist_externals =
{[testenv:tools]allowlist_externals}
deps =
pip>=21.1
commands =
bash -c 'rm -rf build/'