diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:15 +0300 |
commit | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch) | |
tree | da2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /util/tests/sym_versions | |
parent | 778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff) | |
download | ydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'util/tests/sym_versions')
-rw-r--r-- | util/tests/sym_versions/test_glibc.py | 56 | ||||
-rw-r--r-- | util/tests/sym_versions/ya.make | 36 |
2 files changed, 46 insertions, 46 deletions
diff --git a/util/tests/sym_versions/test_glibc.py b/util/tests/sym_versions/test_glibc.py index c76359c54c..16ba81a4bd 100644 --- a/util/tests/sym_versions/test_glibc.py +++ b/util/tests/sym_versions/test_glibc.py @@ -1,29 +1,29 @@ -import os -import functools - -import yatest.common as yc -import library.python.resource as lpr - - -def construct_path(p): - parts = p.split('/') - - return p + '/' + '-'.join(parts[-3:]) - - -def iter_binaries(): - ok = False - - for l in lpr.find('/test_binaries').split('\n'): - if '# start' in l: - ok = True - else: - if '# end' in l: - ok = False - - if ok: - yield construct_path(l.strip()) - - -for p in iter_binaries(): +import os +import functools + +import yatest.common as yc +import library.python.resource as lpr + + +def construct_path(p): + parts = p.split('/') + + return p + '/' + '-'.join(parts[-3:]) + + +def iter_binaries(): + ok = False + + for l in lpr.find('/test_binaries').split('\n'): + if '# start' in l: + ok = True + else: + if '# end' in l: + ok = False + + if ok: + yield construct_path(l.strip()) + + +for p in iter_binaries(): globals()['test_' + os.path.basename(p).replace('-', '_')] = functools.partial(yc.process.check_glibc_version, p) diff --git a/util/tests/sym_versions/ya.make b/util/tests/sym_versions/ya.make index 3957c60fc9..591b190c72 100644 --- a/util/tests/sym_versions/ya.make +++ b/util/tests/sym_versions/ya.make @@ -1,22 +1,22 @@ PY2TEST() - + OWNER( pg g:util -) +) SUBSCRIBER(g:util-subscribers) - + TEST_SRCS(test_glibc.py) -PEERDIR( - library/python/resource -) - -RESOURCE( - ya.make /test_binaries -) - -DEPENDS( +PEERDIR( + library/python/resource +) + +RESOURCE( + ya.make /test_binaries +) + +DEPENDS( # start binaries util/generic/ut util/charset/ut @@ -33,10 +33,10 @@ DEPENDS( util/thread/ut # end binaries contrib/python/pyelftools/readelf -) - -FORK_SUBTESTS() - -SPLIT_FACTOR(10) +) + +FORK_SUBTESTS() -END() +SPLIT_FACTOR(10) + +END() |