File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 3535 @echo " Available targets:"
3636 @echo " install - Install the script to $( LIBEXECDIR) , and systemd files"
3737 @echo " uninstall - Remove installed files"
38+ @echo " check - Check for syntax errors in $( SCRIPT_SRC) "
3839 @echo " package - Build both RPM and DEB packages"
3940 @echo " rpm - Build RPM package"
4041 @echo " deb - Build DEB package"
@@ -67,6 +68,10 @@ uninstall:
6768 rm -rf $(DESTDIR )$(DOCDIR )
6869 @echo " Uninstall complete"
6970
71+ check :
72+ @echo " Running syntax test for $( SCRIPT_SRC) "
73+ bash -n $(SCRIPT_SRC )
74+
7075# Package building targets
7176package : rpm deb deb-source
7277
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ override_dh_auto_build:
1313 # Nothing to build - this is a shell script package
1414
1515override_dh_auto_test :
16- # Skip tests for now
16+ $( MAKE ) check
1717
1818override_dh_install :
1919 dh_install
Original file line number Diff line number Diff line change @@ -51,6 +51,9 @@ make install-systemd DESTDIR=%{buildroot}
5151# Remove duplicate LICENSE file from doc directory since %license handles it
5252rm -f %{buildroot }%{_docdir }/%{name }/LICENSE
5353
54+ %check
55+ make check
56+
5457%post
55585659%systemd_post cvmfs-client-prometheus.socket
You can’t perform that action at this time.
0 commit comments