]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
checksrc: run checksrc in tests when 'make checksrc' in root
authorDaniel Stenberg <daniel@haxx.se>
Sun, 3 Apr 2016 14:20:43 +0000 (16:20 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 3 Apr 2016 20:38:36 +0000 (22:38 +0200)
Makefile.am
tests/Makefile.am
tests/libtest/Makefile.am
tests/unit/Makefile.am

index a5dc8d3c263c67e854345e9922e301984a237c99..6a61869063cb1238f140ba58966369d370cb244c 100644 (file)
@@ -282,6 +282,7 @@ ca-firefox: lib/firefox-db2pem.sh
 checksrc:
        cd lib && $(MAKE) checksrc
        cd src && $(MAKE) checksrc
+       cd tests && $(MAKE) checksrc
 
 .PHONY: vc-ide
 
index 476d6fcd98900e85b282bafd2ec6436ea9d6caf1..3723f216460edbb2f9cd3307e263267d8d77cb95 100644 (file)
@@ -92,3 +92,7 @@ torture-test: perlcheck all
        ps2pdf $$foo.ps $@; \
        rm $$foo.ps; \
        echo "converted $< to $@")
+
+checksrc:
+       cd libtest && $(MAKE) checksrc
+       cd unit && $(MAKE) checksrc
index 87ee56ede83bb02e7b32a1228056456765d12270..e396af4dab726740044cc0d3fccee010139d7a2a 100644 (file)
@@ -5,7 +5,7 @@
 #                            | (__| |_| |  _ <| |___
 #                             \___|\___/|_| \_\_____|
 #
-# Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 1998 - 2013, 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
 #
 # This software is licensed as described in the file COPYING, which
 # you should have received as part of this distribution. The terms
@@ -115,3 +115,6 @@ libhostname_la_SOURCES = sethostname.c sethostname.h
 
 libhostname_la_LIBADD =
 libhostname_la_DEPENDENCIES =
+
+checksrc:
+       @@PERL@ $(top_srcdir)/lib/checksrc.pl $(top_srcdir)/tests/libtest/*.c
index 33af1ec0e3399404ec4f79c84540b07ed63a602d..f44d623be1dedfcc376a533f091bdf982ddb611f 100644 (file)
@@ -5,7 +5,7 @@
 #                            | (__| |_| |  _ <| |___
 #                             \___|\___/|_| \_\_____|
 #
-# Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
 #
 # This software is licensed as described in the file COPYING, which
 # you should have received as part of this distribution. The terms
@@ -71,6 +71,9 @@ AM_CPPFLAGS += -DCURL_STATICLIB -DUNITTESTS
 # Makefile.inc provides neat definitions
 include Makefile.inc
 
+checksrc:
+       @@PERL@ $(top_srcdir)/lib/checksrc.pl $(top_srcdir)/tests/unit/*.c
+
 if BUILD_UNITTESTS
 noinst_PROGRAMS = $(UNITPROGS)
 else