Browse code

XML-XPath, pgbouncer, pth, python-pip, python-sqlalchemy, valgrind, vault, and zsh is now configured for makecheck

Change-Id: I175c1197544b7806eae8c364374df7de963f2e0e
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1595
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Danut Moraru <dmoraru@vmware.com>

Chang authored on 2016/10/28 10:05:08
Showing 8 changed files
... ...
@@ -20,7 +20,10 @@ perl Makefile.PL --prefix=%{_prefix}
20 20
 make %{?_smp_mflags}
21 21
 %install
22 22
 make DESTDIR=%{buildroot} install
23
-make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
23
+
24
+%check
25
+make %{?_smp_mflags} -k test
26
+
24 27
 %files
25 28
 %defattr(-,root,root)
26 29
 %{_bindir}/xpath
... ...
@@ -47,6 +47,11 @@ Restart=always
47 47
 WantedBy=multi-user.target
48 48
 EOF
49 49
 
50
+%check
51
+pushd test
52
+make all
53
+popd
54
+
50 55
 %pre
51 56
 if ! getent group %{name} >/dev/null; then
52 57
     /sbin/groupadd -r %{name}
... ...
@@ -39,6 +39,9 @@ make
39 39
 make DESTDIR=%{buildroot} install
40 40
 find %{buildroot}%{_libdir} -name '*.la' -delete
41 41
 
42
+%check
43
+make %{?_smp_mflags} -k check
44
+
42 45
 %post -p /sbin/ldconfig
43 46
 
44 47
 %postun -p /sbin/ldconfig
... ...
@@ -29,6 +29,10 @@ python setup.py build
29 29
 %install
30 30
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
31 31
 
32
+%check
33
+easy_install freezegun
34
+%{__python} setup.py test
35
+
32 36
 %files
33 37
 %defattr(-,root,root)
34 38
 %{python_sitelib}/*
... ...
@@ -28,6 +28,13 @@ SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives app
28 28
 %build
29 29
 python setup.py build
30 30
 
31
+%check
32
+easy_install apipkg
33
+easy_install py
34
+easy_install mock
35
+export PYTHONPATH=$PYTHONPATH:%{_builddir}/SQLAlchemy-%{version}/.eggs/pytest-3.0.3-py2.7.egg
36
+%{__python} setup.py test
37
+
31 38
 %install
32 39
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
33 40
 
... ...
@@ -29,6 +29,9 @@ make
29 29
 %install
30 30
 make DESTDIR=%{buildroot} install
31 31
 
32
+%check
33
+make %{?_smp_mflags} -k check
34
+
32 35
 %files
33 36
 %defattr(-,root,root)
34 37
 %{_bindir}/*
... ...
@@ -36,9 +36,6 @@ cp %{SOURCE1} %{buildroot}/usr/lib/systemd/system
36 36
 cp %{SOURCE2} %{buildroot}%{_sysconfdir}/vault.d/
37 37
 install -vdm755 %{buildroot}/var/lib/vault
38 38
 
39
-%check
40
-make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
41
-
42 39
 %post	-p /sbin/ldconfig
43 40
 setcap cap_ipc_lock=+ep /usr/bin/%{name}
44 41
 %systemd_post vault.service
... ...
@@ -77,7 +77,7 @@ make all html
77 77
 
78 78
 %check
79 79
 # Run the testsuite
80
-make check
80
+make %{?_smp_mflags} -k check
81 81
 
82 82
 %install
83 83
 rm -rf $RPM_BUILD_ROOT