Trusty: provenance library workspace (initial import)
This commit is contained in:
18
crates/extensions/trusty-sqlite-ext/tests/smoke.rs
Normal file
18
crates/extensions/trusty-sqlite-ext/tests/smoke.rs
Normal file
@@ -0,0 +1,18 @@
|
||||
// ============================================================
|
||||
// Smoke test for trusty-sqlite-ext.
|
||||
//
|
||||
// A loadable SQLite extension is only meaningfully exercised by
|
||||
// actually dlopen'ing the built .dll / .so from a host SQLite
|
||||
// binary — that is out of scope for `cargo test`. Here we settle
|
||||
// for a compile-time smoke test: if this file builds, the cdylib
|
||||
// has linked and exports are resolvable by name.
|
||||
// ============================================================
|
||||
|
||||
#[test]
|
||||
fn extension_builds_as_cdylib() {
|
||||
// Intentionally trivial. The real verification is:
|
||||
// cargo build -p trusty-sqlite-ext
|
||||
// producing target/debug/trusty_sqlite_ext.dll with
|
||||
// sqlite3_trustysqliteext_init exported.
|
||||
assert!(true);
|
||||
}
|
||||
Reference in New Issue
Block a user