提交 0e5a01b4 编写于 作者: T theprocess

hwcert => hwcompatible,oech =>OECH,update two pictures

上级 b97ac0ed
......@@ -10,11 +10,11 @@
# Create: 2020-04-01
NAME := oec-hardware
VERSION_PY := hwcert/version.py
VERSION_PY := hwcompatible/version.py
.PHONY: all clean install
SUBDIRS := hwcert tests server scripts
SUBDIRS := hwcompatible tests server scripts
all: $(VERSION_PY)
for i in $(SUBDIRS); do $(MAKE) -C $$i DESTDIR=$(DESTDIR); done
......
......@@ -47,7 +47,7 @@ OS 厂商为了扩大自己产品的兼容性范围,常常寻求与硬件厂
```
.
├── hwcert 框架主功能
├── hwcompatible 框架主功能
│ ├── compatibility.py 框架核心功能
│ ├── client.py 上传测试结果到服务端
│ ├── command.py bash命令执行封装
......
docs/result-qemu.png

25.2 KB | W: | H:

docs/result-qemu.png

10.5 KB | W: | H:

docs/result-qemu.png
docs/result-qemu.png
docs/result-qemu.png
docs/result-qemu.png
  • 2-up
  • Swipe
  • Onion skin
docs/results.png

13.9 KB | W: | H:

docs/results.png

5.2 KB | W: | H:

docs/results.png
docs/results.png
docs/results.png
docs/results.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -28,10 +28,10 @@ HWCERT_CLASS_LIB := /usr/share/oech/lib
all: ;
install:
rm -rf $(DESTDIR)$(HWCERT_CLASS_LIB)/hwcert
mkdir -p $(DESTDIR)$(HWCERT_CLASS_LIB)/hwcert
cp -r ./*.py $(DESTDIR)$(HWCERT_CLASS_LIB)/hwcert/
rm -rf $(DESTDIR)$(HWCERT_CLASS_LIB)/hwcompatible
mkdir -p $(DESTDIR)$(HWCERT_CLASS_LIB)/hwcompatible
cp -r ./*.py $(DESTDIR)$(HWCERT_CLASS_LIB)/hwcompatible/
clean:
rm -rf $(DESTDIR)$(HWCERT_CLASS_LIB)/hwcert
rm -rf $(DESTDIR)$(HWCERT_CLASS_LIB)/hwcompatible
......@@ -53,7 +53,7 @@ DESTDIR=$RPM_BUILD_ROOT make install
%defattr(-,root,root)
/usr/bin/oech
/usr/share/oech/kernelrelease.json
/usr/share/oech/lib/hwcert
/usr/share/oech/lib/hwcompatible
/usr/share/oech/lib/tests
/usr/lib/systemd/system/oech.service
%dir /var/oech
......
......@@ -20,8 +20,8 @@ import argparse
sys.path.append("/usr/share/oech/lib/")
os.putenv("PYTHONPATH", "/usr/share/oech/lib/")
from hwcert.compatibility import EulerCertification
import hwcert.version
from hwcompatible.compatibility import EulerCertification
import hwcompatible.version
class CertLock:
......@@ -72,7 +72,7 @@ if __name__ == '__main__':
lock.release()
sys.exit(1)
elif args.version:
print("version: %s" % hwcert.version.version)
print("version: %s" % hwcompatible.version.version)
else:
if not cert.run():
lock.release()
......
{% extends "bootstrap/base.html" %}
{% include "flash.html" %}
{% block title %}oech{% endblock %}
{% block title %}OECH{% endblock %}
{% block head %}
{{ super() }}
......@@ -19,7 +19,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">oech</a>
<a class="navbar-brand" href="/">OECH</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
......
{% extends "base.html" %}
{% block title %}oech{% endblock %}
{% block title %}OECH{% endblock %}
{% block page_content %}
<div class="page-header">
......
{% extends "base.html" %}
{% block title %}oech{% endblock %}
{% block title %}OECH{% endblock %}
{% block page_content %}
<div class="page-header">
......
{% extends "base.html" %}
{% block title %}oech - {{ error }}{% endblock %}
{% block title %}OECH - {{ error }}{% endblock %}
{% block page_content %}
<div class="page-header">
......
{% extends "base.html" %}
{% block title %}oech{% endblock %}
{% block title %}OECH{% endblock %}
{% block page_content %}
<div class="page-header">
......
{% extends "base.html" %}
{% block title %}oech`{% endblock %}
{% block title %}OECH{% endblock %}
{% block page_content %}
<div class="page-header">
......
{% extends "base.html" %}
{% block title %}oech{% endblock %}
{% block title %}OECH{% endblock %}
{% block page_content %}
<div class="page-header">
......
{% extends "base.html" %}
{% block title %}oech{% endblock %}
{% block title %}OECH{% endblock %}
{% block page_content %}
<div class="page-header">
......
{% extends "base.html" %}
{% block title %}oech{% endblock %}
{% block title %}OECH{% endblock %}
{% block page_content %}
<div class="page-header">
......
{% extends "base.html" %}
{% block title %}oech{% endblock %}
{% block title %}OECH{% endblock %}
{% block page_content %}
<div class="page-header">
......
......@@ -12,8 +12,8 @@
# See the Mulan PSL v2 for more details.
# Create: 2020-04-01
from hwcert.test import Test
from hwcert.command import Command
from hwcompatible.test import Test
from hwcompatible.command import Command
class AcpiTest(Test):
......
......@@ -18,9 +18,9 @@ import time
import shutil
import argparse
from hwcert.test import Test
from hwcert.commandUI import CommandUI
from hwcert.command import Command, CertCommandError
from hwcompatible.test import Test
from hwcompatible.commandUI import CommandUI
from hwcompatible.command import Command, CertCommandError
class CDRomTest(Test):
......
......@@ -14,8 +14,8 @@
import os
from hwcert.test import Test
from hwcert.command import Command
from hwcompatible.test import Test
from hwcompatible.command import Command
clock_dir = os.path.dirname(os.path.realpath(__file__))
......
......@@ -15,9 +15,9 @@
from random import randint
from time import sleep
from hwcert.env import CertEnv
from hwcert.test import Test
from hwcert.command import Command
from hwcompatible.env import CertEnv
from hwcompatible.test import Test
from hwcompatible.command import Command
class CPU:
......
......@@ -18,10 +18,10 @@ import time
import shutil
import string
from hwcert.test import Test
from hwcert.command import Command, CertCommandError
from hwcert.commandUI import CommandUI
from hwcert.device import CertDevice, Device
from hwcompatible.test import Test
from hwcompatible.command import Command, CertCommandError
from hwcompatible.commandUI import CommandUI
from hwcompatible.device import CertDevice, Device
class DiskTest(Test):
......
......@@ -12,8 +12,8 @@
# See the Mulan PSL v2 for more details.
# Create: 2020-04-01
from hwcert.test import Test
from hwcert.command import Command
from hwcompatible.test import Test
from hwcompatible.command import Command
class IpmiTest(Test):
......
......@@ -16,10 +16,10 @@ import os
import sys
import time
import re
from hwcert.test import Test
from hwcert.commandUI import CommandUI
from hwcert.document import ConfigFile
from hwcert.command import Command, CertCommandError
from hwcompatible.test import Test
from hwcompatible.commandUI import CommandUI
from hwcompatible.document import ConfigFile
from hwcompatible.command import Command, CertCommandError
class KdumpTest(Test):
......
......@@ -17,8 +17,8 @@ import sys
import time
import re
import string
from hwcert.test import Test
from hwcert.command import Command, CertCommandError
from hwcompatible.test import Test
from hwcompatible.command import Command, CertCommandError
class MemoryTest(Test):
......
......@@ -15,10 +15,10 @@
import os
import argparse
from hwcert.test import Test
from hwcert.command import Command
from hwcert.env import CertEnv
from hwcert.document import CertDocument
from hwcompatible.test import Test
from hwcompatible.command import Command
from hwcompatible.env import CertEnv
from hwcompatible.document import CertDocument
from rdma import RDMATest
......@@ -69,7 +69,7 @@ if __name__ == '__main__':
t = EthernetTest()
t.server_ip = '199.1.1.2'
from hwcert.device import Device
from hwcompatible.device import Device
properties = {
'DEVPATH': '/devices/pci0000:80/0000:80:01.0/0000:81:00.0/net/enp129s0f0',
'INTERFACE': 'enp129s0f0'
......
......@@ -15,8 +15,8 @@
import os
import argparse
from hwcert.test import Test
from hwcert.command import Command
from hwcompatible.test import Test
from hwcompatible.command import Command
from rdma import RDMATest
......@@ -53,7 +53,7 @@ if __name__ == '__main__':
t.server_ip = '199.1.37.20'
t.speed = 10000 # Mb/s
from hwcert.device import Device
from hwcompatible.device import Device
properties = {
'DEVPATH': '/devices/pci0000:d7/0000:d7:02.0/0000:d8:00.0/net/ib0',
'INTERFACE': 'ib0'
......
......@@ -25,10 +25,10 @@ except ImportError:
from urllib import urlencode
from urllib2 import urlopen, Request, HTTPError
from hwcert.test import Test
from hwcert.command import Command
from hwcert.document import CertDocument
from hwcert.env import CertEnv
from hwcompatible.test import Test
from hwcompatible.command import Command
from hwcompatible.document import CertDocument
from hwcompatible.env import CertEnv
class NetworkTest(Test):
......@@ -377,7 +377,7 @@ if __name__ == '__main__':
t = NetworkTest()
t.server_ip = '9.82.37.2'
from hwcert.device import Device
from hwcompatible.device import Device
properties = {
'DEVPATH': '/devices/pci0000:17/0000:17:00.0/0000:18:00.0/0000:19:03.0/0000:1a:00.2/net/eth_main',
'INTERFACE': 'eth_main'
......
......@@ -16,10 +16,10 @@ import os
import re
import argparse
from hwcert.test import Test
from hwcert.command import Command
from hwcert.document import CertDocument
from hwcert.env import CertEnv
from hwcompatible.test import Test
from hwcompatible.command import Command
from hwcompatible.document import CertDocument
from hwcompatible.env import CertEnv
from network import NetworkTest
......@@ -217,7 +217,7 @@ if __name__ == '__main__':
t.server_ip = '199.1.37.20'
t.speed = 10000 # Mb/s
from hwcert.device import Device
from hwcompatible.device import Device
properties = {
'DEVPATH': '/devices/pci0000:d7/0000:d7:02.0/0000:d8:00.0/net/ib0',
'INTERFACE': 'ib0'
......
......@@ -15,9 +15,9 @@
import os
import sys
import argparse
from hwcert.test import Test
from hwcert.command import Command
from hwcert.device import CertDevice, Device
from hwcompatible.test import Test
from hwcompatible.command import Command
from hwcompatible.device import CertDevice, Device
class NvmeTest(Test):
......
......@@ -13,8 +13,8 @@
# Create: 2020-04-01
import re
from hwcert.test import Test
from hwcert.command import Command, CertCommandError
from hwcompatible.test import Test
from hwcompatible.command import Command, CertCommandError
class PerfTest(Test):
......@@ -22,9 +22,9 @@ class PerfTest(Test):
def __init__(self):
Test.__init__(self)
self.requirements = ["perf"]
self.perfRecord = "perf record -a -e cycles -o hwcert-perf.data sleep 5"
self.perfEvlist = "perf evlist -i hwcert-perf.data"
self.perfReport = "perf report -i hwcert-perf.data --stdio"
self.perfRecord = "perf record -a -e cycles -o hwcompatible-perf.data sleep 5"
self.perfEvlist = "perf evlist -i hwcompatible-perf.data"
self.perfReport = "perf report -i hwcompatible-perf.data --stdio"
def exec_perf(self):
# record
......
......@@ -18,11 +18,11 @@ import re
import shutil
import argparse
from hwcert.test import Test
from hwcert.command import Command, CertCommandError
from hwcert.sysinfo import SysInfo
from hwcert.env import CertEnv
from hwcert.document import Document
from hwcompatible.test import Test
from hwcompatible.command import Command, CertCommandError
from hwcompatible.sysinfo import SysInfo
from hwcompatible.env import CertEnv
from hwcompatible.document import Document
class SystemTest(Test):
......
......@@ -14,9 +14,9 @@
import argparse
from hwcert.test import Test
from hwcert.command import Command, CertCommandError
from hwcert.device import CertDevice, Device
from hwcompatible.test import Test
from hwcompatible.command import Command, CertCommandError
from hwcompatible.device import CertDevice, Device
class TapeTest(Test):
......
......@@ -16,10 +16,10 @@ import os
import sys
import time
from hwcert.test import Test
from hwcert.commandUI import CommandUI
from hwcert.command import Command, CertCommandError
from hwcert.device import CertDevice, Device
from hwcompatible.test import Test
from hwcompatible.commandUI import CommandUI
from hwcompatible.command import Command, CertCommandError
from hwcompatible.device import CertDevice, Device
class UsbTest(Test):
......
......@@ -17,9 +17,9 @@ import sys
import time
import re
from hwcert.test import Test
from hwcert.commandUI import CommandUI
from hwcert.command import Command, CertCommandError
from hwcompatible.test import Test
from hwcompatible.commandUI import CommandUI
from hwcompatible.command import Command, CertCommandError
class WatchDogTest(Test):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册