Browse Source

Add %check section

Alois Mahdal 6 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,6 +30,11 @@ make %{?_smp_mflags} PREFIX=/usr
30 30
 %install
31 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 38
 %files
34 39
 %doc %{_docdir}/%{name}/README.md
35 40
 %{_datadir}/shellfu/include-bash/saturnin.sh