aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-04-03 16:20:43 +0200
committerDaniel Stenberg <daniel@haxx.se>2016-04-03 22:38:36 +0200
commitd3252e000c96f31456667c3033c13d83e2628d29 (patch)
tree07b8025dbb119659da2d0d08e07134d511776ed0
parent19fafa1f5ada1398557632975a04173014813b97 (diff)
checksrc: run checksrc in tests when 'make checksrc' in root
-rw-r--r--Makefile.am1
-rw-r--r--tests/Makefile.am4
-rw-r--r--tests/libtest/Makefile.am5
-rw-r--r--tests/unit/Makefile.am5
4 files changed, 13 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index a5dc8d3c2..6a6186906 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 476d6fcd9..3723f2164 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -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
diff --git a/tests/libtest/Makefile.am b/tests/libtest/Makefile.am
index 87ee56ede..e396af4da 100644
--- a/tests/libtest/Makefile.am
+++ b/tests/libtest/Makefile.am
@@ -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
diff --git a/tests/unit/Makefile.am b/tests/unit/Makefile.am
index 33af1ec0e..f44d623be 100644
--- a/tests/unit/Makefile.am
+++ b/tests/unit/Makefile.am
@@ -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