core_tester index fuzz tests with flag

This commit is contained in:
Pere Diaz Bou
2025-06-17 15:28:32 +02:00
parent 26eb63b09f
commit de1f29dadf
3 changed files with 10 additions and 0 deletions

View File

@@ -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:

View File

@@ -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"

View File

@@ -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() {