aboutsummaryrefslogtreecommitdiffstats
path: root/devtools/ya/handlers/make
diff options
context:
space:
mode:
authorvitalyisaev <vitalyisaev@ydb.tech>2023-11-30 13:26:22 +0300
committervitalyisaev <vitalyisaev@ydb.tech>2023-11-30 15:44:45 +0300
commit0a98fece5a9b54f16afeb3a94b3eb3105e9c3962 (patch)
tree291d72dbd7e9865399f668c84d11ed86fb190bbf /devtools/ya/handlers/make
parentcb2c8d75065e5b3c47094067cb4aa407d4813298 (diff)
downloadydb-0a98fece5a9b54f16afeb3a94b3eb3105e9c3962.tar.gz
YQ Connector:Use docker-compose in integrational tests
Diffstat (limited to 'devtools/ya/handlers/make')
-rw-r--r--devtools/ya/handlers/make/__init__.py32
-rw-r--r--devtools/ya/handlers/make/ya.make26
2 files changed, 58 insertions, 0 deletions
diff --git a/devtools/ya/handlers/make/__init__.py b/devtools/ya/handlers/make/__init__.py
new file mode 100644
index 0000000000..e9d774f562
--- /dev/null
+++ b/devtools/ya/handlers/make/__init__.py
@@ -0,0 +1,32 @@
+from __future__ import absolute_import
+from build.build_handler import do_ya_make
+from build.build_opts import ya_make_options
+
+import core.yarg
+
+import app
+
+
+class MakeYaHandler(core.yarg.OptsHandler):
+ description = 'Build and run tests\nTo see more help use [[imp]]-hh[[rst]]/[[imp]]-hhh[[rst]]'
+
+ def __init__(self):
+ core.yarg.OptsHandler.__init__(
+ self,
+ action=app.execute(action=do_ya_make),
+ examples=[
+ core.yarg.UsageExample('{prefix} -r', 'Build current directory in release mode', good_looking=100),
+ core.yarg.UsageExample(
+ '{prefix} -t -j16 library', 'Build and test library with 16 threads', good_looking=99
+ ),
+ core.yarg.UsageExample(
+ '{prefix} --checkout -j0', 'Checkout absent directories without build', good_looking=98
+ ),
+ ],
+ description=self.description,
+ opts=ya_make_options(
+ free_build_targets=True,
+ strip_idle_build_results=True,
+ ),
+ visible=True,
+ )
diff --git a/devtools/ya/handlers/make/ya.make b/devtools/ya/handlers/make/ya.make
new file mode 100644
index 0000000000..275750e1f7
--- /dev/null
+++ b/devtools/ya/handlers/make/ya.make
@@ -0,0 +1,26 @@
+PY23_LIBRARY()
+
+STYLE_PYTHON()
+
+PY_SRCS(
+ NAMESPACE handlers.make
+ __init__.py
+)
+
+PEERDIR(
+ devtools/ya/app
+ devtools/ya/build
+ devtools/ya/build/build_opts
+ devtools/ya/core/yarg
+)
+
+END()
+
+RECURSE(
+ tests
+)
+
+RECURSE_FOR_TESTS(
+ bin
+ tests
+)