Enhance testing.

This commit is contained in:
Gwyn Ciesla 2019-04-01 13:54:08 -05:00
parent 373005e21f
commit 8ee4a5329c

View File

@ -1,6 +1,6 @@
Name: libxdg-basedir
Version: 1.2.0
Release: 19%{?dist}
Release: 20%{?dist}
Summary: Implementation of the XDG Base Directory Specifications
License: MIT
@ -62,9 +62,14 @@ make install DESTDIR="$RPM_BUILD_ROOT"
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%check
make check USE_VALGRIND=1
env -i make check USE_VALGRIND=1
# Check that we get NULL for all things rooted in ENV{HOME} when running
# with HOME unset
env -i ./tests/testdump | grep null > grep.NULL
env -i ./tests/testdump | grep HOME | grep -v DIRS > grep.HOME
diff -u grep.NULL grep.HOME
%ldconfig_scriptlets
@ -81,6 +86,9 @@ make check USE_VALGRIND=1
%doc doc/html/
%changelog
* Mon Apr 01 2019 Gwyn Ciesla <gwync@protonmail.com> - 1.2.0-20
- Enhance testing.
* Mon Apr 01 2019 Gwyn Ciesla <gwync@protonmail.com> - 1.2.0-19
- Patch correction.