Skip to content

Running the tests on S3

joe maley edited this page Oct 8, 2020 · 7 revisions

Minio (local)

Within the TileDB directory, create a build directory and move to it.
$ mkdir build && cd build

Build with S3 enabled:
$ ../bootstrap --enable-verbose --enable-s3 && make -j4

If this is your first time running minio, you will need to install it. For OS X, you must have homebrew and Docker installed.
$ source ../scripts/install-minio.sh

Start the Minio server. It is important that this is run from the TileDB/build directory because the following script contains relative paths. For OS X, Docker must be running.
$ source ../scripts/run-minio.sh

Run the unit tests:
make check

Alternatively, you may wish to just run the [s3] tests to quickly verify connection with minio.
make -C tiledb tiledb_unit && ./tiledb/test/tiledb_unit "[s3]"

AWS S3

  1. cd TileDB/build
  2. ../bootstrap --enable-verbose --enable-s3 && make -j4
  3. cmake -DTILEDB_TESTS_AWS_S3_CONFIG=ON .. && make -j4
  4. make -j4 check

The only difference here is the cmake step.

Note: If any tests fail, the created buckets may not be removed. Remember to remove them manually after test failures.