mirror of
https://github.com/lancedb/lancedb.git
synced 2025-12-22 21:09:58 +00:00
Add a new test feature which allows for running the lancedb tests against a remote server. Convert over a few tests in src/connection.rs as a proof of concept. To make local development easier, the remote tests can be run locally from a Makefile. This file can also be used to run the feature tests, with a single invocation of 'make'. (The feature tests require bringing up a docker compose environment.)
19 lines
380 B
Bash
Executable File
19 lines
380 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
#
|
|
# A script for running the given command together with a docker compose environment.
|
|
#
|
|
|
|
# Bring down the docker setup once the command is done running.
|
|
tear_down() {
|
|
docker compose -p fixture down
|
|
}
|
|
trap tear_down EXIT
|
|
|
|
set +xe
|
|
|
|
# Clean up any existing docker setup and bring up a new one.
|
|
docker compose -p fixture up --detach --wait || exit 1
|
|
|
|
"${@}"
|