-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoec-hardware.spec
145 lines (120 loc) · 4.56 KB
/
oec-hardware.spec
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
%define version 1.1.7
%define release 0
%define debug_package %{nil}
%global _build_id_links none
%undefine __brp_mangle_shebangs
%define vendor %{?_vendor:%{_vendor}}%{!?_vendor:openEuler}
%define vendor_lowercase %{?_vendor:%(echo %{_vendor} | tr '[:upper:]' '[:lower:]')}%{!?_vendor:openeuler}
Name: oec-hardware
Summary: openEuler Hardware Compatibility Test Suite
Version: %{version}
Release: %{release}
Group: Development/Tools
License: Mulan PSL v2
URL: https://gitee.com/openeuler/oec-hardware
Source0: %{name}-%{version}.tar.bz2
Buildroot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: gcc
Requires: kernel-devel, kernel-headers, dmidecode, tar
Requires: kernel >= 4
Requires: python3, python3-pyyaml, python3-concurrent-log-handler, net-tools
Provides: libswsds.so()(64bit)
# server subpackage
%package server
Summary: openEuler Hardware Compatibility Test Server
Group: Development/Tools
Requires: python3, python3-devel, python3-flask, python3-uWSGI, python3-werkzeug
Requires: nginx, tar, qperf, psmisc, dpdk, dpdk-tools, dpdk-devel, net-tools, perftest
%description
openEuler Hardware Compatibility Test Suite
%description server
openEuler Hardware Compatibility Test Server
%prep
%setup -q -c
%build
%ifarch x86_64 aarch64
strip tests/compatible/keycard/libswsds_%{_arch}.so
%endif
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
DESTDIR=$RPM_BUILD_ROOT VERSION_RELEASE=%{version} make
%install
DESTDIR=$RPM_BUILD_ROOT make install
# Custom vendor
sed -i 's#grep openeulerversion /etc/openEuler-latest#grep %{vendor_lowercase}version /etc/%{vendor}-latest#g' %{buildroot}/usr/share/oech/lib/hwcompatible/cert_info.py
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
%pre
%post
%files
%defattr(-,root,root)
/usr/bin/oech
/usr/share/oech/kernelrelease.json
/usr/share/oech/lib/hwcompatible
/usr/share/oech/lib/config
/usr/share/oech/lib/tests
/usr/lib/systemd/system/oech.service
/usr/share/oech/lib/oech_logrotate.sh
%dir /var/oech
%dir /usr/share/oech/lib
%dir /usr/share/oech
%files server
%defattr(-,root,root)
/usr/bin/oech-server
/usr/share/oech/lib/server
/usr/share/oech/lib/config
/usr/lib/systemd/system/oech-server.service
%postun
rm -rf /var/lock/oech.lock
%changelog
* Tue Dec 30 2024 wangshuai <[email protected]> - 1.1.7-0
- Optimized the logic for locating the cuda-samples directory
- add kernel support for openEuler 24.03 LTS SP1
- Kdump test suite bugfix
- Update the pci.ids file
- Remove unused variable in cdrom test suite
- Update test_guide doc
- Unify the location for downloading kernel source RPMs
- Optimize kabiwhitelist and system test
- Fix the bug that dpdk test terminates when accessing numa node hugepages directory
- Fix bug that the raid test cannot identify PM8222-SHBA
- Add new test suite srpm and intel
- Add virtual branch of test suite
- Add support for Kylin and UOS
- Bugfix
* Tue Sept 24 2024 wangshuai <[email protected]> - 1.1.6-0
1. Add support for Kylin V10 and UOS 20
2. Add virtual branch of test suite
3. Add new test suite of srpm and intel
4. Bugfix
* Mon Oct 23 2023 liuyanze <[email protected]> - 1.1.5-0
1. Add support for openEuler 20.03 LTS SP4, openEuler 22.03 LTS SP2, openEuler 22.03 LTS SP3
2. Add modifications to Kylinsec with oec-hardware
3. Add support for Loongson and SW architectures
4. Bugfix
* Tue Feb 28 2023 cuixucui <[email protected]> - 1.1.4-0
1. Add board information in the test report
2. Add spdk test case
3. Add dpdk test case
4. Bugfix
* Mon Oct 24 2022 meitingli <[email protected]> - 1.1.3-0
1. Add support for openEuler 22.03LTS SP1
2. Add AMD GPU testcase
3. Add automatic configuration network card IP
4. Add generate compatibility information
* Mon Aug 29 2022 meitingli <[email protected]> - 1.1.2-0
1. Upgrade command module
2. Add VGPU testsuite
3. Bugfix
* Wed Jul 27 2022 cuixucui <[email protected]> - 1.1.1-0
-1. Reconstruct the log module and rectify the log printing
-2. Add kabi testcase
-3. Add driver, driver version, chip and module display to the console
-4. Add configuration file for testsuite to improve automation rate
-5. Add oech and oech-server version display
-6. Add driver information display in hardware test logs
* Mon May 30 2022 meitingli <[email protected]> - 1.1.0-0
- 1. Add support os version: openEuler 22.03LTS
- 2. Add FC/RAID/keycard/GPU/infiniband testcases
- 3. Bugfix
* Fri Jul 26 2019 Lu Tianxiong <[email protected]> - 1.0.0-h1
- Initial spec