@@ -18,6 +18,7 @@ fn try_main() -> Result<()> {
1818 Some ( "build-wasm" ) => build_wasm ( & arg) ?,
1919 Some ( "sim-tests" ) => sim_tests ( & arg) ?,
2020 Some ( "test" ) => run_tests ( & arg) ?,
21+ Some ( "test-encryption" ) => run_tests_encryption ( & arg) ?,
2122 Some ( "publish" ) => publish ( & arg) ?,
2223 _ => print_help ( ) ,
2324 }
@@ -32,6 +33,7 @@ build builds all languages
3233build-wasm builds the wasm components in wasm32-unknown-unknown
3334build-bundled builds sqlite3 and updates the bundeled code for ffi
3435test runs the entire libsql test suite using nextest
36+ test-encryption runs encryption tests for embedded replicas
3537sim-tests <test name> runs the libsql-server simulation test suite
3638publish-cratesio publish libsql client crates to crates.io
3739"
@@ -81,6 +83,26 @@ fn run_tests(arg: &str) -> Result<()> {
8183 Ok ( ( ) )
8284}
8385
86+ fn run_tests_encryption ( arg : & str ) -> Result < ( ) > {
87+ println ! ( "installing nextest" ) ;
88+ run_cargo ( & [ "install" , "--force" , "cargo-nextest" ] ) ?;
89+ println ! ( "running nextest run" ) ;
90+ run_cargo ( & [
91+ "nextest" ,
92+ "run" ,
93+ "-F" ,
94+ "test-encryption" ,
95+ "-p" ,
96+ "libsql-server" ,
97+ "--test" ,
98+ "tests" ,
99+ "embedded_replica" ,
100+ arg,
101+ ] ) ?;
102+
103+ Ok ( ( ) )
104+ }
105+
84106fn sim_tests ( arg : & str ) -> Result < ( ) > {
85107 run_cargo ( & [ "test" , "--test" , "tests" , arg] ) ?;
86108
0 commit comments