File: //usr/lib/python3/dist-packages/samba/tests/__pycache__/usage.cpython-310.pyc
o
eF�c�3 � @ sz d dl Z d dlZd dlZd dlmZmZ d dlmZ d dlZd dl Z de j
v r-e j
d Zne j�
e j�e j�e�d��Zg d�Zh d�Zh d�Zh d �Zd
d� Ze� Zedddefdd
�Zdd� Zdd� Zi Zdd� Ze�d�jZi Zdd� Z e�d�jZ!i Z"dd� Z#G dd� de�Z$G dd� de�Z%G dd� de�Z&G d d!� d!e&�Z'G d"d#� d#e&�Z(e$�)� e%�)� e'�)� e(�)� dS )$� N)�TestCase�check_help_consistency)� TestSuite�
SRCDIR_ABSz../../..)� bootstrap�testdata�ctdb�
dfs_server�pidl�auth� packaging�python�include�nsswitch�libcli�coverityzrelease-scripts� testprogs�bin�source3zdocs-xml�
buildtools�file_server� dynconfig�source4�tests�libds�selftest�lib�script�traffic� testsuite�libgpo�wintest�librpc>/ �bin/gen_output.py�selftest/tests.py�buildtools/bin/waf�script/autobuild.py�script/bisect-test.py�script/show_test_time�bin/samba_downgrade_db�selftest/filter-subunit�selftest/format-subunit�source3/selftest/tests.py�source4/selftest/tests.py�lib/ldb/tests/python/api.py�python/samba/subunit/run.py�lib/ldb/tests/python/index.py�ctdb/utils/etcd/ctdb_etcd_lock�bin/python/samba/subunit/run.py� python/samba/tests/smb-notify.py� source4/scripting/bin/subunitrun�"python/samba/tests/krb5/kcrypto.py�#python/samba/tests/krb5/test_rpc.py�#python/samba/tests/krb5/test_smb.py�#source4/scripting/bin/gen_output.py�$python/samba/tests/krb5/kdc_tests.py�$python/samba/tests/krb5/s4u_tests.py�$python/samba/tests/krb5/spn_tests.py�$python/samba/tests/krb5/test_ldap.py�%python/samba/tests/krb5/fast_tests.py�%python/samba/tests/krb5/rodc_tests.py�%python/samba/tests/krb5/salt_tests.py�&python/samba/tests/krb5/alias_tests.py�&python/samba/tests/krb5/etype_tests.py�&python/samba/tests/krb5/test_ccache.py�'python/samba/tests/krb5/as_req_tests.py�'python/samba/tests/krb5/simple_tests.py�'python/samba/tests/krb5/xrealm_tests.py�(python/samba/tests/krb5/kdc_base_test.py�(python/samba/tests/krb5/kdc_tgs_tests.py�(python/samba/tests/krb5/kpasswd_tests.py�(source4/scripting/bin/samba_downgrade_db�)python/samba/tests/dcerpc/raw_protocol.py�)python/samba/tests/krb5/test_idmap_nss.py�,python/samba/tests/krb5/rfc4120_constants.py�.python/samba/tests/krb5/compatability_tests.py�.python/samba/tests/krb5/test_min_domain_uid.py�4python/samba/tests/krb5/as_canonicalization_tests.py�@python/samba/tests/krb5/ms_kile_client_principal_lookup_tests.py�selftest/tap2subunit> �wintest/test-s3.py�wintest/test-s4-howto.pyrQ > �bin/ab�python/examples�source3/script/tests�bin/python/samba/tests�source4/dsdb/tests/python�bin/python/samba/tests/krb5�bin/python/samba/tests/dcerpcc C s\ t � } tjddtddgtjd�}|jdkr+|j�d�D ]}| �t j
�t|�d��� q| j
S ) zUGenerate a function that quickly answers the question:
'is this a git file?'
�gitz-Czls-filesz-z)�stdoutr � �utf-8)�set�
subprocess�run�BASEDIR�PIPE�
returncoder\ �split�add�os�path�join�decode�__contains__)�git_file_cache�p�fn� ro �3/usr/lib/python3/dist-packages/samba/tests/usage.py�_init_git_file_finder� s ��
rq c
C s` |s�t �d�j}|D ]�}tj�| |�}tj|dd�D ]�\}} }
|
D ]�}|�d�r)q!|�d�r/q!tj�||�}zt�|�}
W n t yF Y q!w |
j
tj@ sNq!|dksWt|�sWq!|d ur`||�s`q!|d ur�zt
|d�}W n ty� } ztd||f � W Y d }~q!d }~ww |�d �}|�� ||�s�q!|d
|�}||v r�|d
7 }||v s�|||<