pgbackrest.git / summary / log / commit / refs
commit 28359eea83206f6eeddd3fbc91a52cd42399e529
Author: David Steele <david@pgmasters.net>
Date: Thu May 02 20:33:23 2019 +0000
Update code count rules missed in 027c2638.
test/code-count/file-type.yaml | 14 +++++++++++++-
test/lib/pgBackRestTest/Common/CodeCountTest.pm | 7 ++++---
2 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/test/code-count/file-type.yaml b/test/code-count/file-type.yaml
index 0361133a4..2740d151e 100644
--- a/test/code-count/file-type.yaml
+++ b/test/code-count/file-type.yaml
@@ -487,10 +487,14 @@ libc/xs/storage/storage.xs:
class: core
type: xs
-src/Makefile:
+src/Makefile.in:
class: build
type: make
+src/build.auto.h.in:
+ class: core
+ type: c/h
+
src/command/archive/common.c:
class: core
type: c
@@ -1075,6 +1079,14 @@ src/config/protocol.h:
class: core
type: c/h
+src/configure:
+ class: build
+ type: make
+
+src/configure.ac:
+ class: build
+ type: make
+
src/info/info.c:
class: core
type: c
diff --git a/test/lib/pgBackRestTest/Common/CodeCountTest.pm b/test/lib/pgBackRestTest/Common/CodeCountTest.pm
index 61a35535e..e49499bc4 100644
--- a/test/lib/pgBackRestTest/Common/CodeCountTest.pm
+++ b/test/lib/pgBackRestTest/Common/CodeCountTest.pm
@@ -79,7 +79,8 @@ sub codeCountScan
{
$strClass = 'doc/core';
}
- elsif ($strFile =~ '^build/' || $strFile =~ '^libc/build/' || $strFile eq 'libc/Makefile.PL' || $strFile eq 'src/Makefile')
+ elsif ($strFile =~ '^build/' || $strFile =~ '^libc/build/' || $strFile eq 'libc/Makefile.PL' ||
+ $strFile eq 'src/Makefile.in' || $strFile eq 'src/configure' || $strFile eq 'src/configure.ac')
{
$strClass = 'build';
}
@@ -109,7 +110,7 @@ sub codeCountScan
$strType = 'xs';
$strForceLang = 'XS';
}
- elsif ($strFile =~ '\.h$' || $strFile =~ '\.xsh$')
+ elsif ($strFile =~ '\.h$' || $strFile =~ '\.h\.in$' || $strFile =~ '\.xsh$')
{
$strType = 'c/h';
$strForceLang = 'C/C++ Header';
@@ -129,7 +130,7 @@ sub codeCountScan
$strType = 'yaml';
$strForceLang = 'YAML';
}
- elsif ($strFile =~ 'Makefile$')
+ elsif ($strFile =~ 'Makefile\.in$' || $strFile =~ '^src\/configure')
{
$strType = 'make';
$strForceLang = 'make';
[parent: 0c816f948147]