aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoruzhas <uzhas@ydb.tech>2022-08-04 21:01:46 +0300
committeruzhas <uzhas@ydb.tech>2022-08-04 21:01:46 +0300
commit4227aa8a54523d7592ff3898124003115e0b998b (patch)
treed7eac437376e697a739ca0d5e5fc70df3603f37b
parent80d3ddafcb902ea26c7588431dcb62923ac86c2e (diff)
downloadydb-4227aa8a54523d7592ff3898124003115e0b998b.tar.gz
open up recurse to pg_wrapper in OSS
-rw-r--r--CMakeLists.darwin.txt3
-rw-r--r--CMakeLists.linux.txt3
-rw-r--r--ydb/library/yql/parser/pg_wrapper/ut/CMakeLists.darwin.txt51
-rw-r--r--ydb/library/yql/parser/pg_wrapper/ut/CMakeLists.linux.txt57
-rw-r--r--ydb/library/yql/parser/pg_wrapper/ut/CMakeLists.txt13
5 files changed, 125 insertions, 2 deletions
diff --git a/CMakeLists.darwin.txt b/CMakeLists.darwin.txt
index c6635466853..c160c45c51b 100644
--- a/CMakeLists.darwin.txt
+++ b/CMakeLists.darwin.txt
@@ -1358,8 +1358,9 @@ add_subdirectory(ydb/core/yq/libs/test_connection/ut)
add_subdirectory(ydb/library/yql/dq/actors/compute/ut)
add_subdirectory(ydb/library/yql/dq/runtime/ut)
add_subdirectory(ydb/library/yql/dq/state/ut)
-add_subdirectory(ydb/library/yql/parser/pg_catalog/ut)
add_subdirectory(ydb/library/yql/parser/lexer_common/ut)
+add_subdirectory(ydb/library/yql/parser/pg_catalog/ut)
+add_subdirectory(ydb/library/yql/parser/pg_wrapper/ut)
add_subdirectory(ydb/library/yql/providers/common/schema)
add_subdirectory(ydb/library/yql/providers/common/schema/skiff)
add_subdirectory(ydb/library/yql/providers/common/ut_helpers)
diff --git a/CMakeLists.linux.txt b/CMakeLists.linux.txt
index e23b7f65d1a..cf6df6b997e 100644
--- a/CMakeLists.linux.txt
+++ b/CMakeLists.linux.txt
@@ -1382,8 +1382,9 @@ add_subdirectory(ydb/core/yq/libs/test_connection/ut)
add_subdirectory(ydb/library/yql/dq/actors/compute/ut)
add_subdirectory(ydb/library/yql/dq/runtime/ut)
add_subdirectory(ydb/library/yql/dq/state/ut)
-add_subdirectory(ydb/library/yql/parser/pg_catalog/ut)
add_subdirectory(ydb/library/yql/parser/lexer_common/ut)
+add_subdirectory(ydb/library/yql/parser/pg_catalog/ut)
+add_subdirectory(ydb/library/yql/parser/pg_wrapper/ut)
add_subdirectory(ydb/library/yql/providers/common/schema)
add_subdirectory(ydb/library/yql/providers/common/schema/skiff)
add_subdirectory(ydb/library/yql/providers/common/ut_helpers)
diff --git a/ydb/library/yql/parser/pg_wrapper/ut/CMakeLists.darwin.txt b/ydb/library/yql/parser/pg_wrapper/ut/CMakeLists.darwin.txt
new file mode 100644
index 00000000000..7fee43377c3
--- /dev/null
+++ b/ydb/library/yql/parser/pg_wrapper/ut/CMakeLists.darwin.txt
@@ -0,0 +1,51 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+
+add_executable(ydb-library-yql-parser-pg_wrapper-ut)
+target_compile_options(ydb-library-yql-parser-pg_wrapper-ut PRIVATE
+ -DUSE_CURRENT_UDF_ABI_VERSION
+)
+target_include_directories(ydb-library-yql-parser-pg_wrapper-ut PRIVATE
+ ${CMAKE_SOURCE_DIR}/ydb/library/yql/parser/pg_wrapper
+)
+target_link_libraries(ydb-library-yql-parser-pg_wrapper-ut PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+ library-cpp-cpuid_check
+ cpp-testing-unittest_main
+ yql-parser-pg_wrapper
+ yql-minikql-computation
+ yql-public-udf
+ udf-service-exception_policy
+ yql-minikql-comp_nodes
+ yql-parser-pg_catalog
+)
+target_link_options(ydb-library-yql-parser-pg_wrapper-ut PRIVATE
+ -Wl,-no_deduplicate
+ -Wl,-sdk_version,10.15
+ -fPIC
+ -fPIC
+)
+target_sources(ydb-library-yql-parser-pg_wrapper-ut PRIVATE
+ ${CMAKE_SOURCE_DIR}/ydb/library/yql/parser/pg_wrapper/ut/parser_ut.cpp
+ ${CMAKE_SOURCE_DIR}/ydb/library/yql/parser/pg_wrapper/ut/sort_ut.cpp
+ ${CMAKE_SOURCE_DIR}/ydb/library/yql/minikql/comp_nodes/ut/mkql_test_factory.cpp
+)
+add_test(
+ NAME
+ ydb-library-yql-parser-pg_wrapper-ut
+ COMMAND
+ ydb-library-yql-parser-pg_wrapper-ut
+ --print-before-suite
+ --print-before-test
+ --fork-tests
+ --print-times
+ --show-fails
+)
+vcs_info(ydb-library-yql-parser-pg_wrapper-ut)
diff --git a/ydb/library/yql/parser/pg_wrapper/ut/CMakeLists.linux.txt b/ydb/library/yql/parser/pg_wrapper/ut/CMakeLists.linux.txt
new file mode 100644
index 00000000000..6ca14f9ab42
--- /dev/null
+++ b/ydb/library/yql/parser/pg_wrapper/ut/CMakeLists.linux.txt
@@ -0,0 +1,57 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+
+add_executable(ydb-library-yql-parser-pg_wrapper-ut)
+target_compile_options(ydb-library-yql-parser-pg_wrapper-ut PRIVATE
+ -DUSE_CURRENT_UDF_ABI_VERSION
+)
+target_include_directories(ydb-library-yql-parser-pg_wrapper-ut PRIVATE
+ ${CMAKE_SOURCE_DIR}/ydb/library/yql/parser/pg_wrapper
+)
+target_link_libraries(ydb-library-yql-parser-pg_wrapper-ut PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+ cpp-malloc-tcmalloc
+ libs-tcmalloc-no_percpu_cache
+ library-cpp-cpuid_check
+ cpp-testing-unittest_main
+ yql-parser-pg_wrapper
+ yql-minikql-computation
+ yql-public-udf
+ udf-service-exception_policy
+ yql-minikql-comp_nodes
+ yql-parser-pg_catalog
+)
+target_link_options(ydb-library-yql-parser-pg_wrapper-ut PRIVATE
+ -ldl
+ -lrt
+ -Wl,--no-as-needed
+ -fPIC
+ -fPIC
+ -lpthread
+ -lrt
+ -ldl
+)
+target_sources(ydb-library-yql-parser-pg_wrapper-ut PRIVATE
+ ${CMAKE_SOURCE_DIR}/ydb/library/yql/parser/pg_wrapper/ut/parser_ut.cpp
+ ${CMAKE_SOURCE_DIR}/ydb/library/yql/parser/pg_wrapper/ut/sort_ut.cpp
+ ${CMAKE_SOURCE_DIR}/ydb/library/yql/minikql/comp_nodes/ut/mkql_test_factory.cpp
+)
+add_test(
+ NAME
+ ydb-library-yql-parser-pg_wrapper-ut
+ COMMAND
+ ydb-library-yql-parser-pg_wrapper-ut
+ --print-before-suite
+ --print-before-test
+ --fork-tests
+ --print-times
+ --show-fails
+)
+vcs_info(ydb-library-yql-parser-pg_wrapper-ut)
diff --git a/ydb/library/yql/parser/pg_wrapper/ut/CMakeLists.txt b/ydb/library/yql/parser/pg_wrapper/ut/CMakeLists.txt
new file mode 100644
index 00000000000..fc7b1ee73ce
--- /dev/null
+++ b/ydb/library/yql/parser/pg_wrapper/ut/CMakeLists.txt
@@ -0,0 +1,13 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+if (APPLE)
+ include(CMakeLists.darwin.txt)
+elseif (UNIX AND NOT APPLE)
+ include(CMakeLists.linux.txt)
+endif()