Skip to content

Commit

Permalink
chore(driver-adapters): refactor query-engine test executor, in prepa…
Browse files Browse the repository at this point in the history
…ration for schema-engine-wasm playground
  • Loading branch information
jkomyno committed Dec 29, 2024
1 parent cc0167b commit f8daf75
Show file tree
Hide file tree
Showing 19 changed files with 679 additions and 650 deletions.
2 changes: 1 addition & 1 deletion query-engine/connector-test-kit-rs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ To run tests through a driver adapters, you should also configure the following
Example:

```shell
export EXTERNAL_TEST_EXECUTOR="$WORKSPACE_ROOT/query-engine/driver-adapters/executor/script/testd.sh"
export EXTERNAL_TEST_EXECUTOR="$WORKSPACE_ROOT/query-engine/driver-adapters/executor/script/testd-qe.sh"
export DRIVER_ADAPTER=neon
export ENGINE=wasm
export DRIVER_ADAPTER_CONFIG ='{ "proxyUrl": "127.0.0.1:5488/v1" }'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ impl TestConfig {
}

pub fn external_test_executor_path(&self) -> Option<String> {
const DEFAULT_TEST_EXECUTOR: &str = "query-engine/driver-adapters/executor/script/testd.sh";
const DEFAULT_TEST_EXECUTOR: &str = "query-engine/driver-adapters/executor/script/testd-qe.sh";
self.with_driver_adapter()
.and_then(|_| {
Self::workspace_root().or_else(|| {
Expand Down
4 changes: 2 additions & 2 deletions query-engine/driver-adapters/executor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"description": "",
"private": true,
"scripts": {
"build": "tsup ./src/testd.ts ./src/bench.ts --format esm --dts",
"test": "node --import tsx ./src/testd.ts",
"build": "tsup ./src/testd-qe.ts ./src/bench.ts --format esm --dts",
"test:qe": "node --import tsx ./src/testd-qe.ts",
"clean:d1": "rm -rf ../../connector-test-kit-rs/query-engine-tests/.wrangler"
},
"tsup": {
Expand Down
2 changes: 2 additions & 0 deletions query-engine/driver-adapters/executor/script/testd-qe.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
node "$(dirname "${BASH_SOURCE[0]}")/../dist/testd-qe.mjs"
2 changes: 0 additions & 2 deletions query-engine/driver-adapters/executor/script/testd.sh

This file was deleted.

Loading

0 comments on commit f8daf75

Please sign in to comment.