1 Star 0 Fork 1

Harry / iso14229

forked from bilaizi / iso14229 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
test_examples.py 615 Bytes
一键复制 编辑 原始数据 按行查看 历史
Nick James Kirkby 提交于 2023-07-20 00:35 . 0.6.0
#!/usr/bin/env python
import subprocess
import sys
transports = [
"TP=ISOTP_SOCKET",
"TP=ISOTP_C",
]
clients = [
"./client",
"./examples/client.py",
]
def make_examples(tp: str):
subprocess.check_call(["make", "clean"])
for thing in ["server", "client"]:
subprocess.check_call(" ".join([tp, "make", thing]), shell=True)
for tp in transports:
make_examples(tp)
server_proc = subprocess.Popen(["./server"], stdout=sys.stdout)
assert None == server_proc.returncode
for client in clients:
subprocess.check_call([client], shell=True)
server_proc.kill()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/www_ht/iso14229.git
git@gitee.com:www_ht/iso14229.git
www_ht
iso14229
iso14229
main

搜索帮助

344bd9b3 5694891 D2dac590 5694891