File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 9999 run : ./server/scripts/install-packs.sh
100100
101101 # # Extract test databases used in the integration tests.
102- # # Defaults to integration scope (javascript/examples only ).
102+ # # Defaults to integration scope (javascript/examples + all tools databases ).
103103 # # Query unit tests auto-extract their own databases via `codeql test run`.
104104 - name : MCP Integration Tests - Extract test databases
105105 shell : bash
Original file line number Diff line number Diff line change @@ -118,7 +118,8 @@ extract_test_databases() {
118118# # Extract test databases based on scope and language filters.
119119# #
120120# # Default (no flags): only databases needed by client integration tests
121- # # (currently just server/ql/javascript/examples).
121+ # # (javascript/examples + tools databases for languages with integration
122+ # # test fixtures).
122123# # --scope all: all languages × examples + tools.
123124# # --language: filter to a single language (implies --scope all).
124125
@@ -145,7 +146,16 @@ elif [ "${SCOPE}" = "all" ]; then
145146 done
146147else
147148 echo " Extracting test databases for integration tests only..."
149+ # Extract javascript/examples for default codeql_query_run parameters
148150 extract_test_databases " server/ql/javascript/examples"
151+ # Extract tools databases for all languages — the Go integration tests
152+ # include codeql_query_run test cases that reference tools/test databases
153+ # for cpp, javascript, python, and rust.
154+ for lang in " ${VALID_LANGUAGES[@]} " ; do
155+ if [ -d " server/ql/${lang} /tools" ]; then
156+ extract_test_databases " server/ql/${lang} /tools"
157+ fi
158+ done
149159fi
150160
151161echo " INFO: Test database extraction complete!"
You can’t perform that action at this time.
0 commit comments