mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-04 07:55:18 +00:00
[#3267] add EXCLUDE_LIST in find headers script
This commit is contained in:
@@ -12,6 +12,11 @@ import re
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
|
EXCLUDE_LIST = [
|
||||||
|
'src/lib/dns/name_internal.h',
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
makefile_ams = sorted(pathlib.Path('./src/lib').glob('**/Makefile.am'))
|
makefile_ams = sorted(pathlib.Path('./src/lib').glob('**/Makefile.am'))
|
||||||
headers = sorted(pathlib.Path('./src/lib').glob('**/*.h'))
|
headers = sorted(pathlib.Path('./src/lib').glob('**/*.h'))
|
||||||
@@ -59,13 +64,16 @@ def main():
|
|||||||
|
|
||||||
first = True
|
first = True
|
||||||
for header in headers:
|
for header in headers:
|
||||||
if not any(i in header.parts for i in ['tests', 'testutils', 'unittests']):
|
if str(header) in EXCLUDE_LIST:
|
||||||
if first:
|
continue
|
||||||
print('The following headers are not in the _HEADERS section of '
|
if any(i in header.parts for i in ['tests', 'testutils', 'unittests']):
|
||||||
'their respective Makefile.am file:')
|
continue
|
||||||
first = False
|
if first:
|
||||||
print(f'- {header}')
|
print('The following headers are not in the _HEADERS section of '
|
||||||
failure = True
|
'their respective Makefile.am file:')
|
||||||
|
first = False
|
||||||
|
print(f'- {header}')
|
||||||
|
failure = True
|
||||||
|
|
||||||
if failure:
|
if failure:
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
Reference in New Issue
Block a user