Skip to content

Commit 2cf4b1e

Browse files
committed
add linuxquic implementation
Add linuxquic-interop docker image in implementations_quic.json, and skip it if the uapi header file /usr/include/linux/quic.h (kernel module) doesn't exist in implementations.py. Signed-off-by: Xin Long <lucien.xin@gmail.com>
1 parent 97319f8 commit 2cf4b1e

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

implementations.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import json
33
from enum import Enum
44
from typing import Dict
5+
import os
56

67

78
class Role(Enum):
@@ -23,6 +24,8 @@ def get_implementations(filename: str) -> Dict[str, Dict[str, str | Role]]:
2324
with open(filename, "r") as f:
2425
data = json.load(f)
2526
for name, val in data.items():
27+
if name == "linuxquic" and not os.path.exists("/usr/include/linux/quic.h"):
28+
continue
2629
implementations[name] = {"image": val["image"], "url": val["url"]}
2730
role = val["role"]
2831
if role == "server":

implementations_quic.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,10 @@
8383
"image": "us-central1-docker.pkg.dev/golang-interop-testing/quic/go-x-net:latest",
8484
"url": "https://pkg.go.dev/golang.org/x/net/internal/quic",
8585
"role": "both"
86+
},
87+
"linuxquic": {
88+
"image": "quay.io/lxin/linuxquic-interop:latest",
89+
"url": "https://github.com/lxin/quic",
90+
"role": "both"
8691
}
8792
}

0 commit comments

Comments
 (0)