Skip to content

Commit 08f4ed2

Browse files
author
OpenShift Bot
committed
Merge pull request #7962 from sdodson/test-package
Merged by openshift-bot
2 parents 7c06d2c + 0b869f3 commit 08f4ed2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

origin.spec

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ Obsoletes: openshift-master < %{package_refector_version}
8787
%description master
8888
%{summary}
8989

90+
%package tests
91+
Summary: %{product_name} Test Suite
92+
Requires: %{name} = %{version}-%{release}
93+
94+
%description tests
95+
%{summary}
96+
9097
%package node
9198
Summary: %{product_name} Node
9299
Requires: %{name} = %{version}-%{release}
@@ -193,6 +200,7 @@ for cmd in oc openshift dockerregistry recycle
193200
do
194201
go install -ldflags "%{ldflags}" %{import_path}/cmd/${cmd}
195202
done
203+
go test -c -o _build/bin/extended.test -ldflags "%{ldflags}" %{import_path}/test/extended
196204

197205
%if 0%{?make_redistributable}
198206
# Build clients for other platforms
@@ -215,6 +223,8 @@ do
215223
echo "+++ INSTALLING ${bin}"
216224
install -p -m 755 _build/bin/${bin} %{buildroot}%{_bindir}/${bin}
217225
done
226+
install -d %{buildroot}%{_libexecdir}/%{name}
227+
install -p -m 755 _build/bin/extended.test %{buildroot}%{_libexecdir}/%{name}/
218228

219229
%if 0%{?make_redistributable}
220230
# Install client executable for windows and mac
@@ -332,6 +342,10 @@ if [ -d "%{_sharedstatedir}/openshift" ]; then
332342
fi
333343
fi
334344

345+
%files tests
346+
%{_libexecdir}/%{name}
347+
%{_libexecdir}/%{name}/extended.test
348+
335349

336350
%files master
337351
%{_unitdir}/%{name}-master.service

0 commit comments

Comments
 (0)