2018-07-06 17:34:01 +02:00
|
|
|
#
|
|
|
|
# Wireshark tests
|
|
|
|
#
|
|
|
|
# Copyright (c) 2018 Peter Wu <peter@lekensteyn.nl>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#
|
2019-01-03 23:43:56 +01:00
|
|
|
'''pytest configuration'''
|
2018-07-06 17:34:01 +02:00
|
|
|
|
|
|
|
|
2018-11-15 18:44:59 +01:00
|
|
|
def pytest_addoption(parser):
|
|
|
|
parser.addoption('--disable-capture', action='store_true',
|
|
|
|
help='Disable capture tests'
|
|
|
|
)
|
2023-09-09 18:37:36 -07:00
|
|
|
parser.addoption('--disable-gui', action='store_true',
|
|
|
|
help='Disable GUI tests'
|
|
|
|
)
|
2023-09-24 13:14:20 +01:00
|
|
|
parser.addoption('--build-type', default='RelWithDebInfo',
|
2023-09-23 10:35:36 +01:00
|
|
|
help='CMake build type for multi-config generators.'
|
|
|
|
)
|
|
|
|
parser.addoption('--program-path',
|
|
|
|
help='Path to Wireshark executables.'
|
|
|
|
)
|
2019-01-21 15:05:37 +01:00
|
|
|
parser.addoption('--skip-missing-programs',
|
|
|
|
help='Skip tests that lack programs from this list instead of failing'
|
2023-09-23 10:35:36 +01:00
|
|
|
' them. Use "all" to ignore all missing programs.'
|
|
|
|
)
|
2023-06-04 17:43:24 +01:00
|
|
|
parser.addoption('--enable-release', action='store_true',
|
|
|
|
help='Enable release tests'
|
|
|
|
)
|
2018-11-15 18:44:59 +01:00
|
|
|
|
2018-10-15 16:07:30 +02:00
|
|
|
from fixtures_ws import *
|
2018-11-15 18:44:59 +01:00
|
|
|
|