diff options
author | Andrew Bartlett <abartlet@samba.org> | 2021-11-29 15:36:37 +1300 |
---|---|---|
committer | Joseph Sutton <jsutton@samba.org> | 2022-01-19 20:50:35 +0000 |
commit | 6e8ac61b36ec74581fde8720107bce8971989015 (patch) | |
tree | d83d98ef3285037a3bd5f102879bf9debe554dd9 /python | |
parent | b2c96d927a661d5e830b271043a6a2be94d4c04d (diff) | |
download | samba-6e8ac61b36ec74581fde8720107bce8971989015.tar.gz |
tests: Update latin1 list and ignored file list for new Heimdal import
NOTE: THIS COMMIT WON'T COMPILE/WORK ON ITS OWN!
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/tests/source_chars.py | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/python/samba/tests/source_chars.py b/python/samba/tests/source_chars.py index 093d7318cb0..f53a0a076b7 100644 --- a/python/samba/tests/source_chars.py +++ b/python/samba/tests/source_chars.py @@ -57,19 +57,29 @@ def _find_root(): ROOT = _find_root() -IGNORED_FILES = { +IGNORED_FILES = ( 'examples/validchars/validchr.com', 'examples/tridge/smb.conf', 'source3/selftest/ktest-krb5_ccache-2', 'source3/selftest/ktest-krb5_ccache-3', 'testdata/source-chars-bad.c', -} +) + +IGNORED_RE = ( + r'^source4/heimdal/lib/hcrypto/passwd_dialog', + r'^source4/heimdal/lib/hx509/data/', + r'^source4/heimdal/po', + r'^source4/heimdal/tests/kdc/hdb-mitdb', +) IGNORED_EXTENSIONS = { + 'bmp', 'cer', 'corrupt', 'crl', + 'crt', 'dat', + 'der', 'dump', 'gpg', 'gz', @@ -77,6 +87,7 @@ IGNORED_EXTENSIONS = { 'keytab', 'ldb', 'p12', + 'pdf', 'pem', 'png', 'SAMBABACKUP', @@ -84,6 +95,7 @@ IGNORED_EXTENSIONS = { 'tdb', 'tif', 'reg', + 'req' } @@ -125,8 +137,18 @@ def iter_source_files(): filenames = get_git_files() for name in filenames: + ignore = False if name in IGNORED_FILES: - print(c_DARK_YELLOW(f"ignoring {name}")) + print(c_DARK_YELLOW(f"ignoring (exact) {name}")) + continue + + for ignored in IGNORED_RE: + ignore = (re.match(ignored, name)) + if ignore: + break + + if ignore: + print(c_DARK_YELLOW(f"ignoring (via RE) {name}")) continue if '.' in name: @@ -142,10 +164,8 @@ def is_latin1_file(name): for pattern in ( r'^source4/setup/ad-schema/\w+.ldf$', r'^source4/setup/display-specifiers/D[\w-]+.txt$', - r'^source4/heimdal/HEIMDAL-LICENCE.txt$', - r'^source4/heimdal/lib/asn1/asn1-template.h$', - r'^source4/heimdal/lib/asn1/gen_template.c$', - r'^source4/heimdal/lib/hdb/hdb-keytab.c$', + r'^source4/heimdal/cf/pkg.m4$', + r'^source4/heimdal/doc/standardisation/', ): if re.match(pattern, name): return True |