Browse Source

Add %check section

Alois Mahdal 6 years ago
parent
commit
4a71f64d5b
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      packaging/template.spec

+ 4
- 0
packaging/template.spec View File

@@ -79,6 +79,10 @@ make %{?_smp_mflags} PREFIX=/usr
79 79
 %install
80 80
 %make_install PREFIX=/usr
81 81
 
82
+%check
83
+make test \
84
+    PATH=%{buildroot}/%{_bindir}:$PATH \
85
+    SHELLFU_DIR=%{buildroot}/%{_datadir}/%{name}
82 86
 
83 87
 %files
84 88
 %config %{_sysconfdir}/bash_completion.d/%{name}.bash