Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest]
profile: [dev, release]
backend: [mmap_backend, buffer_pool_backend]
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -79,13 +80,14 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Run unit tests
run: |
make unit-tests cargo_flags='--verbose --profile=${{ matrix.profile }}'
make unit-tests cargo_flags='--verbose --profile=${{ matrix.profile }} --no-default-features --features ${{ matrix.backend }}'

integration-tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
profile: [dev, release]
backend: [mmap_backend, buffer_pool_backend]
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -97,7 +99,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Run integration tests
run:
make integration-tests cargo_flags=--profile=${{ matrix.profile }} test_flags=--nocapture
make integration-tests cargo_flags='--profile=${{ matrix.profile }} --no-default-features --features ${{ matrix.backend }}' test_flags=--nocapture

check-cli-lockfile:
runs-on: ubuntu-latest
Expand Down
8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ parking_lot = { version = "0.12.4", features = ["send_guard"] }
fxhash = "0.2.1"
static_assertions = "1.1.0"
rayon = "1.10.0"
evict = "0.3.1"
dashmap = "6.1.0"
libc = "0.2.174"

[features]
default = ["mmap_backend"]
buffer_pool_backend = []
mmap_backend = []

[dev-dependencies]
criterion = "0.6.0"
Expand Down
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ unit-tests:
integration-tests: tests/fixtures
@cargo test --test '*' $(cargo_flags) -- $(test_flags)

.PHONY: all-tests
all-tests:
@echo "Running tests with mmap backend"
@cargo test --no-default-features --features mmap_backend $(cargo_flags) -- $(test_flags)
echo "Running tests with buffer pool backend"
@cargo test --no-default-features --features buffer_pool_backend $(cargo_flags) -- $(test_flags)

tests/fixtures: tests/fixtures_stable.tar.gz
@tar -xzf $< -C $(@D)
@rm -rf tests/fixtures_stable.tar.gz
Expand Down
Loading