Repository navigation
Expand file tree
/
Copy pathinet.opp
More file actions
79 lines (79 loc) · 4.73 KB
/
Copy pathinet.opp
File metadata and controls
79 lines (79 loc) · 4.73 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
SimulationProject(
name="inet",
root_folder=".",
omnetpp_project="omnetpp",
bin_folder="bin",
library_folder="src",
executables=["INET"],
dynamic_libraries=["INET"],
static_libraries=["INET"],
ned_folders=["src", "examples", "showcases", "tutorials", "tests/networks", "tests/validation"],
ini_file_folders=["examples", "showcases", "tutorials", "tests/fingerprint", "tests/validation"],
image_folders=["images"],
include_folders=["src", "src/inet/transportlayer/tcp_lwip/lwip/include", "src/inet/transportlayer/tcp_lwip/lwip/include/ipv4", "src/inet/transportlayer/tcp_lwip/lwip/include/ipv6"],
cpp_folders=["src"],
dll_symbol="INET",
msg_folders=["src"],
# INET's description for opp_repl. It lives in the INET repository, so that a change of INET's
# test setup lands with the INET change; opp_repl bundles an older copy as a fallback for INET
# versions without this file. An opp_repl command finds this file without an option in the
# INET root and in each folder below it; elsewhere, load it with --load $INET_ROOT.
#
# Per-kind test configuration. Only INET-specific aspects are declared here;
# opp_repl's generic defaults (run everything, mode=debug, smoke/sanitizer
# cpu_time_limit=1s) are not repeated. INET configs have many runs, so the
# single-run kinds pin run_number=0. The statistical and chart tests run in
# release mode, as INET's CI does. Baseline repos are checked out by opp_ci into
# `folder` (relative to the inet root) before those kinds run. A baseline has two
# folders: `folder` (clone location) and `read_folder` (where the test reads
# baselines, default = `folder`). They coincide for statistical; chart clones into
# `media` but reads `doc/media` (the per-showcase doc/media symlinks point back
# into media/).
test_parameters={
"smoke": {"defaults": {"run_number": 0}},
"sanitizer": {"defaults": {"run_number": 0}},
"statistical": {"defaults": {"run_number": 0, "mode": "release"},
"baseline": {"repository": "inet-framework/statistics", "folder": "statistics"}},
"speed": {"defaults": {"run_number": 0}, "store": "tests/speed/store.json"},
"fingerprint": {"store": "tests/fingerprint/store.json", "defaults": {"stored_only": True, "select_fingerprint": "shortest",
"ingredients_list": ["tplx", "~tNl", "~tND"], "cpu_time_limit": "600s"}},
"chart": {"defaults": {"filter": "showcases", "mode": "release"},
"baseline": {"repository": "inet-framework/media", "folder": "media", "read_folder": "doc/media"}},
"validation": {"runner": "inet.test.validation:run_validation_tests"},
"unit": {"defaults": {"test_folder": "tests/unit", "mode": "debug"}},
"module": {"defaults": {"test_folder": "tests/module", "mode": "debug"}},
"packet": {"defaults": {"test_folder": "tests/packet", "executable": "packet_test", "config": "UnitTest", "mode": "debug"}},
"queueing": {"defaults": {"test_folder": "tests/queueing", "mode": "debug"}},
# every direct subfolder of tests/protocol is a suite: its tests run from the suite
# folder, at any depth below it, and link the shared tests/protocol/lib
"protocol": {"defaults": {"test_folder": "tests/protocol", "mode": "debug", "suite_folders": True,
"lib_folder": "tests/protocol/lib", "lib_name": "protocoltest"}},
# coverage reports leave out the generated message files and the third-party code: the lwIP
# stack (not INET's tcp_lwip glue) and src/3rdparty; each folder below src/inet is one area
"coverage": {"report": {"exclude": ["_m\\.(cc|h)$", "/lwip/", "/3rdparty/"], "areas": "src/inet/*"}},
},
external_include_folders=["/usr/include/x86_64-linux-gnu"],
feature_libraries={
"VoipStream": {"pkg_config": ["libavcodec", "libavformat", "libavutil", "libswresample"], "defines": ["HAVE_FFMPEG", "HAVE_FFMPEG_SWRESAMPLE"]},
"Z3GateSchedulingConfigurator": {"pkg_config": ["z3"]},
"VisualizationOsg": {"makefile_inc_libs": "OSG_LIBS"},
"OpenMP": {"makefile_inc_flags": "OPENMP_FLAGS"},
},
opp_defines_file="src/inet/opp_defines.h",
extra_cflags=["-Wno-overloaded-virtual"],
github_owner="inet-framework",
github_repository="inet",
github_workflows=[
"chart-tests.yml",
"coverage-tests.yml",
"feature-tests.yml",
"fingerprint-tests.yml",
"module-tests.yml",
"packet-tests.yml",
"protocol-tests.yml",
"queueing-tests.yml",
"statistical-tests.yml",
"unit-tests.yml",
"validation-tests.yml",
],
)