aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralexv-smirnov <alex@ydb.tech>2023-08-18 13:56:25 +0300
committeralexv-smirnov <alex@ydb.tech>2023-08-18 17:15:56 +0300
commitd040573e52061b1a1841611a24e43ee40fa8dc42 (patch)
treeda466636de73e2ccb6c536b3c210f880d7c30c3d
parent0e4baf282d96896f59ae0e382cda796adc9088fd (diff)
downloadydb-d040573e52061b1a1841611a24e43ee40fa8dc42.tar.gz
Use recipe for github test run
-rw-r--r--ydb/tests/functional/kqp/kqp_indexes/CMakeLists.darwin-x86_64.txt2
-rw-r--r--ydb/tests/functional/kqp/kqp_indexes/CMakeLists.linux-aarch64.txt2
-rw-r--r--ydb/tests/functional/kqp/kqp_indexes/CMakeLists.linux-x86_64.txt2
-rw-r--r--ydb/tests/functional/kqp/kqp_indexes/CMakeLists.windows-x86_64.txt2
-rw-r--r--ydb/tests/functional/kqp/kqp_indexes/epilogue.cmake1
-rw-r--r--ydb/tests/functional/kqp/kqp_indexes/run_testpack31
-rw-r--r--ydb/tests/functional/kqp/kqp_query_session/CMakeLists.darwin-x86_64.txt2
-rw-r--r--ydb/tests/functional/kqp/kqp_query_session/CMakeLists.linux-aarch64.txt2
-rw-r--r--ydb/tests/functional/kqp/kqp_query_session/CMakeLists.linux-x86_64.txt2
-rw-r--r--ydb/tests/functional/kqp/kqp_query_session/CMakeLists.windows-x86_64.txt2
-rw-r--r--ydb/tests/functional/kqp/kqp_query_session/epilogue.cmake1
11 files changed, 49 insertions, 0 deletions
diff --git a/ydb/tests/functional/kqp/kqp_indexes/CMakeLists.darwin-x86_64.txt b/ydb/tests/functional/kqp/kqp_indexes/CMakeLists.darwin-x86_64.txt
index b4f7a85bd0..8767ebd736 100644
--- a/ydb/tests/functional/kqp/kqp_indexes/CMakeLists.darwin-x86_64.txt
+++ b/ydb/tests/functional/kqp/kqp_indexes/CMakeLists.darwin-x86_64.txt
@@ -64,3 +64,5 @@ target_allocator(ydb-tests-functional-kqp-kqp_indexes
system_allocator
)
vcs_info(ydb-tests-functional-kqp-kqp_indexes)
+add_dependencies(ydb-tests-functional-kqp-kqp_indexes ydb_py_protos)
+
diff --git a/ydb/tests/functional/kqp/kqp_indexes/CMakeLists.linux-aarch64.txt b/ydb/tests/functional/kqp/kqp_indexes/CMakeLists.linux-aarch64.txt
index a2c60cd580..34359df0fb 100644
--- a/ydb/tests/functional/kqp/kqp_indexes/CMakeLists.linux-aarch64.txt
+++ b/ydb/tests/functional/kqp/kqp_indexes/CMakeLists.linux-aarch64.txt
@@ -67,3 +67,5 @@ target_allocator(ydb-tests-functional-kqp-kqp_indexes
cpp-malloc-jemalloc
)
vcs_info(ydb-tests-functional-kqp-kqp_indexes)
+add_dependencies(ydb-tests-functional-kqp-kqp_indexes ydb_py_protos)
+
diff --git a/ydb/tests/functional/kqp/kqp_indexes/CMakeLists.linux-x86_64.txt b/ydb/tests/functional/kqp/kqp_indexes/CMakeLists.linux-x86_64.txt
index 73d7bc8954..d5fd5a97a6 100644
--- a/ydb/tests/functional/kqp/kqp_indexes/CMakeLists.linux-x86_64.txt
+++ b/ydb/tests/functional/kqp/kqp_indexes/CMakeLists.linux-x86_64.txt
@@ -69,3 +69,5 @@ target_allocator(ydb-tests-functional-kqp-kqp_indexes
libs-tcmalloc-no_percpu_cache
)
vcs_info(ydb-tests-functional-kqp-kqp_indexes)
+add_dependencies(ydb-tests-functional-kqp-kqp_indexes ydb_py_protos)
+
diff --git a/ydb/tests/functional/kqp/kqp_indexes/CMakeLists.windows-x86_64.txt b/ydb/tests/functional/kqp/kqp_indexes/CMakeLists.windows-x86_64.txt
index 143c4402ab..9143d82474 100644
--- a/ydb/tests/functional/kqp/kqp_indexes/CMakeLists.windows-x86_64.txt
+++ b/ydb/tests/functional/kqp/kqp_indexes/CMakeLists.windows-x86_64.txt
@@ -57,3 +57,5 @@ target_allocator(ydb-tests-functional-kqp-kqp_indexes
system_allocator
)
vcs_info(ydb-tests-functional-kqp-kqp_indexes)
+add_dependencies(ydb-tests-functional-kqp-kqp_indexes ydb_py_protos)
+
diff --git a/ydb/tests/functional/kqp/kqp_indexes/epilogue.cmake b/ydb/tests/functional/kqp/kqp_indexes/epilogue.cmake
new file mode 100644
index 0000000000..57089c5356
--- /dev/null
+++ b/ydb/tests/functional/kqp/kqp_indexes/epilogue.cmake
@@ -0,0 +1 @@
+add_dependencies(ydb-tests-functional-kqp-kqp_indexes ydb_py_protos)
diff --git a/ydb/tests/functional/kqp/kqp_indexes/run_testpack b/ydb/tests/functional/kqp/kqp_indexes/run_testpack
new file mode 100644
index 0000000000..175351123d
--- /dev/null
+++ b/ydb/tests/functional/kqp/kqp_indexes/run_testpack
@@ -0,0 +1,31 @@
+#!/usr/bin/env bash
+set -e
+CTX_DIR=$(mktemp -d)
+echo Working dir: $CTX_DIR
+cd "$CTX_DIR"
+
+export YDB_USE_IN_MEMORY_PDISKS=true
+export YDB_ERASURE=block_4-2
+
+# Start server
+$source_root/ydb/public/tools/ydb_recipe/start.sh $CTX_DIR
+
+# Run test
+set +e
+ARCADIA_BUILD_ROOT="$build_root" \
+YDB_ENDPOINT=$(cat $CTX_DIR/ydb_endpoint.txt) YDB_DATABASE=$(cat $CTX_DIR/ydb_database.txt) \
+$build_root/ydb/tests/functional/kqp/kqp_indexes/ydb-tests-functional-kqp-kqp_indexes $*
+code=$?
+if [ $code -gt 0 ];then
+ echo
+ echo "Test execution failed"
+ echo
+fi
+
+# Stop server (removes working dir!)
+$source_root/ydb/public/tools/ydb_recipe/stop.sh $CTX_DIR
+
+# Return result code from test run
+if [ $code -gt 0 ];then
+ exit $code
+fi
diff --git a/ydb/tests/functional/kqp/kqp_query_session/CMakeLists.darwin-x86_64.txt b/ydb/tests/functional/kqp/kqp_query_session/CMakeLists.darwin-x86_64.txt
index a30ca3f391..6b738edf7e 100644
--- a/ydb/tests/functional/kqp/kqp_query_session/CMakeLists.darwin-x86_64.txt
+++ b/ydb/tests/functional/kqp/kqp_query_session/CMakeLists.darwin-x86_64.txt
@@ -72,3 +72,5 @@ target_allocator(ydb-tests-functional-kqp-kqp_query_session
system_allocator
)
vcs_info(ydb-tests-functional-kqp-kqp_query_session)
+add_dependencies(ydb-tests-functional-kqp-kqp_query_session ydb_py_protos)
+
diff --git a/ydb/tests/functional/kqp/kqp_query_session/CMakeLists.linux-aarch64.txt b/ydb/tests/functional/kqp/kqp_query_session/CMakeLists.linux-aarch64.txt
index 99b3b5eee0..5698f4e5bf 100644
--- a/ydb/tests/functional/kqp/kqp_query_session/CMakeLists.linux-aarch64.txt
+++ b/ydb/tests/functional/kqp/kqp_query_session/CMakeLists.linux-aarch64.txt
@@ -75,3 +75,5 @@ target_allocator(ydb-tests-functional-kqp-kqp_query_session
cpp-malloc-jemalloc
)
vcs_info(ydb-tests-functional-kqp-kqp_query_session)
+add_dependencies(ydb-tests-functional-kqp-kqp_query_session ydb_py_protos)
+
diff --git a/ydb/tests/functional/kqp/kqp_query_session/CMakeLists.linux-x86_64.txt b/ydb/tests/functional/kqp/kqp_query_session/CMakeLists.linux-x86_64.txt
index 3c53fd01ff..07e554c14b 100644
--- a/ydb/tests/functional/kqp/kqp_query_session/CMakeLists.linux-x86_64.txt
+++ b/ydb/tests/functional/kqp/kqp_query_session/CMakeLists.linux-x86_64.txt
@@ -77,3 +77,5 @@ target_allocator(ydb-tests-functional-kqp-kqp_query_session
libs-tcmalloc-no_percpu_cache
)
vcs_info(ydb-tests-functional-kqp-kqp_query_session)
+add_dependencies(ydb-tests-functional-kqp-kqp_query_session ydb_py_protos)
+
diff --git a/ydb/tests/functional/kqp/kqp_query_session/CMakeLists.windows-x86_64.txt b/ydb/tests/functional/kqp/kqp_query_session/CMakeLists.windows-x86_64.txt
index b283fd0485..c99d3c1074 100644
--- a/ydb/tests/functional/kqp/kqp_query_session/CMakeLists.windows-x86_64.txt
+++ b/ydb/tests/functional/kqp/kqp_query_session/CMakeLists.windows-x86_64.txt
@@ -65,3 +65,5 @@ target_allocator(ydb-tests-functional-kqp-kqp_query_session
system_allocator
)
vcs_info(ydb-tests-functional-kqp-kqp_query_session)
+add_dependencies(ydb-tests-functional-kqp-kqp_query_session ydb_py_protos)
+
diff --git a/ydb/tests/functional/kqp/kqp_query_session/epilogue.cmake b/ydb/tests/functional/kqp/kqp_query_session/epilogue.cmake
new file mode 100644
index 0000000000..7cdb02f444
--- /dev/null
+++ b/ydb/tests/functional/kqp/kqp_query_session/epilogue.cmake
@@ -0,0 +1 @@
+add_dependencies(ydb-tests-functional-kqp-kqp_query_session ydb_py_protos)