Browse Source

Add %check section

Alois Mahdal 7 years ago
parent
commit
660bd78828
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      packaging/template.spec

+ 5
- 0
packaging/template.spec View File

30
 %install
30
 %install
31
 %make_install PREFIX=/usr
31
 %make_install PREFIX=/usr
32
 
32
 
33
+%check
34
+make test \
35
+    "PATH=%{buildroot}%{_bindir}:$PATH" \
36
+    "SHELLFU_DIR=%{buildroot}%{_datadir}/%{name}"
37
+
33
 %files
38
 %files
34
 %doc %{_docdir}/%{name}/README.md
39
 %doc %{_docdir}/%{name}/README.md
35
 %{_datadir}/shellfu/include-bash/saturnin.sh
40
 %{_datadir}/shellfu/include-bash/saturnin.sh