mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2026-03-30 17:11:29 +00:00
18 lines
382 B
Python
18 lines
382 B
Python
from dataclasses import dataclass
|
|
from pathlib import Path
|
|
|
|
|
|
@dataclass
|
|
class BpfTestCase:
|
|
path: Path
|
|
rel_path: str
|
|
is_expected_fail: bool = False
|
|
xfail_reason: str = ""
|
|
xfail_level: str = "ir" # "ir" or "llc"
|
|
needs_vmlinux: bool = False
|
|
skip_reason: str = ""
|
|
|
|
@property
|
|
def test_id(self) -> str:
|
|
return self.rel_path.replace("/", "::")
|