File tree 1 file changed +14
-0
lines changed 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,13 @@ Obsoletes: openshift-master < %{package_refector_version}
87
87
%description master
88
88
%{summary }
89
89
90
+ %package tests
91
+ Summary: %{product_name } Test Suite
92
+ Requires: %{name } = %{version }-%{release }
93
+
94
+ %description tests
95
+ %{summary }
96
+
90
97
%package node
91
98
Summary: %{product_name } Node
92
99
Requires: %{name } = %{version }-%{release }
@@ -193,6 +200,7 @@ for cmd in oc openshift dockerregistry recycle
193
200
do
194
201
go install -ldflags "%{ldflags }" %{import_path }/cmd/${cmd}
195
202
done
203
+ go test -c -o _build/bin/extended.test -ldflags "%{ldflags }" %{import_path }/test/extended
196
204
197
205
%if 0%{?make_redistributable }
198
206
# Build clients for other platforms
215
223
echo "+++ INSTALLING ${bin}"
216
224
install -p -m 755 _build/bin/${bin} %{buildroot }%{_bindir }/${bin}
217
225
done
226
+ install -d %{buildroot }%{_libexecdir }/%{name }
227
+ install -p -m 755 _build/bin/extended.test %{buildroot }%{_libexecdir }/%{name }/
218
228
219
229
%if 0%{?make_redistributable }
220
230
# Install client executable for windows and mac
@@ -332,6 +342,10 @@ if [ -d "%{_sharedstatedir}/openshift" ]; then
332
342
fi
333
343
fi
334
344
345
+ %files tests
346
+ %{_libexecdir }/%{name }
347
+ %{_libexecdir }/%{name }/extended.test
348
+
335
349
336
350
%files master
337
351
%{_unitdir }/%{name }-master.service
You can’t perform that action at this time.
0 commit comments