Browse code

Modified %check for SPEC files - 2

Change-Id: I1bd55d46d3b594e1e878f0b84c2ff736ca61d36b
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1393
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Xiaolin Li <xiaolinl@vmware.com>

Chang authored on 2016/09/17 05:55:11
Showing 10 changed files
... ...
@@ -25,6 +25,10 @@ make %{?_smp_mflags}
25 25
 %install
26 26
 make DESTDIR=%{buildroot} install
27 27
 rm -rf %{buildroot}%{_infodir}
28
+
29
+%check
30
+make -k check %{?_smp_mflags}  TESTSUITEFLAGS="1-500"
31
+
28 32
 %files
29 33
 %defattr(-,root,root)
30 34
 %{_bindir}/*
... ...
@@ -47,8 +47,9 @@ This package contains development files for libopts.
47 47
 make %{?_smp_mflags}
48 48
 %install
49 49
 make DESTDIR=%{buildroot} install
50
+
50 51
 %check
51
-make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
52
+make %{?_smp_mflags}  check
52 53
 
53 54
 %post	libopts -p /sbin/ldconfig
54 55
 %postun	libopts -p /sbin/ldconfig
... ...
@@ -21,12 +21,15 @@ sed -i 's:/\\\${:/\\\$\\{:' bin/automake.in
21 21
 	--docdir=%{_defaultdocdir}/%{name}-%{version} \
22 22
 	--disable-silent-rules
23 23
 make %{?_smp_mflags}
24
-%check
25
-sed -i "s:./configure:LEXLIB=/usr/lib/libfl.a &:" t/lex-{clean,depend}-cxx.sh
26
-make -k check %{?_smp_mflags} |& tee %{_specdir}/%{name}-check-log || %{nocheck}
24
+
27 25
 %install
28 26
 make DESTDIR=%{buildroot} install
29 27
 rm -rf %{buildroot}%{_infodir}
28
+
29
+%check
30
+sed -i "s:./configure:LEXLIB=/usr/lib/libfl.a &:" t/lex-{clean,depend}-cxx.sh
31
+make %{?_smp_mflags} check
32
+
30 33
 %files
31 34
 %defattr(-,root,root)
32 35
 %{_bindir}/*
... ...
@@ -229,10 +229,14 @@ cat > %{buildroot}/etc/skel/.bash_logout << "EOF"
229 229
 EOF
230 230
 
231 231
 dircolors -p > %{buildroot}/etc/dircolors
232
-
233 232
 %find_lang %{name}
234 233
 rm -rf %{buildroot}/%{_infodir}
235 234
 
235
+%check
236
+make  NON_ROOT_USERNAME=nobody %{?_smp_mflags} check
237
+
238
+
239
+
236 240
 %post
237 241
 if [ $1 -eq 1 ] ; then
238 242
     if [ ! -f "/root/.bash_logout" ] ; then
... ...
@@ -25,8 +25,9 @@ make %{?_smp_mflags}
25 25
 make DESTDIR=%{buildroot} install
26 26
 install -vdm 755 %{buildroot}/%{_mandir}
27 27
 rm -rf %{buildroot}%{_infodir}
28
+
28 29
 %check
29
-make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
30
+make %{?_smp_mflags}  timetest
30 31
 
31 32
 %post
32 33
 /sbin/ldconfig
... ...
@@ -38,8 +38,6 @@ zone "." in {
38 38
 };
39 39
 EOF
40 40
 echo "d /run/named 0755 named named - -" > %{buildroot}/%{_prefix}/lib/tmpfiles.d/named.conf
41
-%check
42
-make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
43 41
 
44 42
 %pre
45 43
 if ! getent group named >/dev/null; then
... ...
@@ -40,9 +40,12 @@ find %{buildroot} -name '*.la' -delete
40 40
 rm -rf %{buildroot}/%{_infodir}
41 41
 popd
42 42
 %find_lang %{name} --all-name
43
+
43 44
 %check
44 45
 cd ../binutils-build
45
-make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
46
+make %{?_smp_mflags} check
47
+
48
+
46 49
 %post	-p /sbin/ldconfig
47 50
 %postun	-p /sbin/ldconfig
48 51
 %files -f %{name}.lang
... ...
@@ -25,8 +25,10 @@ make %{?_smp_mflags}
25 25
 make DESTDIR=%{buildroot} install
26 26
 rm -rf %{buildroot}%{_infodir}
27 27
 %find_lang %{name} --all-name
28
+
28 29
 %check
29
-make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
30
+make %{?_smp_mflags} check 
31
+
30 32
 %files -f %{name}.lang
31 33
 %defattr(-,root,root)
32 34
 %{_bindir}/*
... ...
@@ -31,8 +31,7 @@ for developing applications that use boost.
31 31
 ./b2 %{?_smp_mflags} stage threading=multi link=shared
32 32
 %install
33 33
 ./b2 install threading=multi link=shared
34
-%check
35
-make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
34
+
36 35
 %post	-p /sbin/ldconfig
37 36
 %postun	-p /sbin/ldconfig
38 37
 %clean
... ...
@@ -41,6 +41,15 @@ make DISABLE_DOCUMENTATION=1 %{?_smp_mflags}
41 41
 #disabled the documentation
42 42
 make DISABLE_DOCUMENTATION=1 mandir=%{_mandir} bindir=%{_sbindir} libdir=%{_libdir} incdir=%{_includedir}/btrfs install DESTDIR=%{buildroot}
43 43
 
44
+%check
45
+export PATH=$PATH:/usr/src/photon/BUILD/%{name}-v%{version}
46
+pushd tests
47
+./misc-tests.sh
48
+./fuzz-tests.sh
49
+./convert-tests.sh
50
+./clean-tests.sh
51
+popd 
52
+
44 53
 %clean
45 54
 rm -rf %{buildroot}
46 55