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 35
35
@echo " Available targets:"
36
36
@echo " install - Install the script to $( LIBEXECDIR) , and systemd files"
37
37
@echo " uninstall - Remove installed files"
38
+ @echo " check - Check for syntax errors in $( SCRIPT_SRC) "
38
39
@echo " package - Build both RPM and DEB packages"
39
40
@echo " rpm - Build RPM package"
40
41
@echo " deb - Build DEB package"
@@ -67,6 +68,10 @@ uninstall:
67
68
rm -rf $(DESTDIR )$(DOCDIR )
68
69
@echo " Uninstall complete"
69
70
71
+ check :
72
+ @echo " Running syntax test for $( SCRIPT_SRC) "
73
+ bash -n $(SCRIPT_SRC )
74
+
70
75
# Package building targets
71
76
package : rpm deb deb-source
72
77
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ override_dh_auto_build:
13
13
# Nothing to build - this is a shell script package
14
14
15
15
override_dh_auto_test :
16
- # Skip tests for now
16
+ $( MAKE ) check
17
17
18
18
override_dh_install :
19
19
dh_install
Original file line number Diff line number Diff line change @@ -51,6 +51,9 @@ make install-systemd DESTDIR=%{buildroot}
51
51
# Remove duplicate LICENSE file from doc directory since %license handles it
52
52
rm -f %{buildroot }%{_docdir }/%{name }/LICENSE
53
53
54
+ %check
55
+ make check
56
+
54
57
%post
55
58
56
59
%systemd_post cvmfs-client-prometheus.socket
You can’t perform that action at this time.
0 commit comments