File: conftest.py

package info (click to toggle)
wireshark 4.6.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 351,436 kB
  • sloc: ansic: 3,103,613; cpp: 129,736; xml: 100,978; python: 56,510; perl: 24,575; sh: 5,874; lex: 4,383; pascal: 4,304; makefile: 164; ruby: 113; objc: 91; tcl: 35
file content (35 lines) | stat: -rw-r--r-- 1,075 bytes parent folder | download
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
#
# Wireshark tests
#
# Copyright (c) 2018 Peter Wu <peter@lekensteyn.nl>
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
'''pytest configuration'''


def pytest_addoption(parser):
    parser.addoption('--disable-capture', action='store_true',
        help='Disable capture tests'
    )
    parser.addoption('--disable-gui', action='store_true',
        help='Disable GUI tests'
    )
    parser.addoption('--build-type', default='RelWithDebInfo',
        help='CMake build type for multi-config generators.'
    )
    parser.addoption('--program-path',
        help='Path to Wireshark executables.'
    )
    parser.addoption('--skip-missing-programs',
        help='Skip tests that lack programs from this list instead of failing'
             ' them. Use "all" to ignore all missing programs.',
        # We might want to build this automatically, e.g. by grepping CMakeCache.txt
        default='stratoshark,strato,falcodump,sshdig'
    )
    parser.addoption('--enable-release', action='store_true',
        help='Enable release tests'
    )

from fixtures_ws import *