From de1f29dadf2663fa12b34f69c347efd74db77720 Mon Sep 17 00:00:00 2001 From: Pere Diaz Bou Date: Tue, 17 Jun 2025 15:28:32 +0200 Subject: [PATCH] core_tester index fuzz tests with flag --- .github/workflows/rust.yml | 5 +++++ tests/Cargo.toml | 3 +++ tests/integration/fuzz/mod.rs | 2 ++ 3 files changed, 10 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 19ea342c4..5dd5745df 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -41,6 +41,11 @@ jobs: RUST_LOG: ${{ runner.debug && 'limbo_core::storage=trace' || '' }} run: cargo test --verbose timeout-minutes: 20 + - name: Tests with indexes + env: + RUST_LOG: ${{ runner.debug && 'limbo_core::storage=trace' || '' }} + run: cargo test --verbose -p core_tester --features index_experimental -- --ignored index_scan + timeout-minutes: 20 clippy: diff --git a/tests/Cargo.toml b/tests/Cargo.toml index 8e103cb56..75215fd2a 100644 --- a/tests/Cargo.toml +++ b/tests/Cargo.toml @@ -14,6 +14,9 @@ path = "lib.rs" name = "integration_tests" path = "integration/mod.rs" +[features] +index_experimental = ["limbo_core/index_experimental"] + [dependencies] anyhow.workspace = true env_logger = "0.10.1" diff --git a/tests/integration/fuzz/mod.rs b/tests/integration/fuzz/mod.rs index 55b8c3a25..9af0360d8 100644 --- a/tests/integration/fuzz/mod.rs +++ b/tests/integration/fuzz/mod.rs @@ -165,6 +165,7 @@ mod tests { } #[test] + #[ignore = "only used with feature index_experimental"] pub fn index_scan_fuzz() { let db = TempDatabase::new_with_rusqlite("CREATE TABLE t(x PRIMARY KEY)"); let sqlite_conn = rusqlite::Connection::open(db.path.clone()).unwrap(); @@ -212,6 +213,7 @@ mod tests { } #[test] + #[ignore = "only used with feature index_experimental"] /// A test for verifying that index seek+scan works correctly for compound keys /// on indexes with various column orderings. pub fn index_scan_compound_key_fuzz() {