@@ -18,6 +18,7 @@ fn try_main() -> Result<()> {
18
18
Some ( "build-wasm" ) => build_wasm ( & arg) ?,
19
19
Some ( "sim-tests" ) => sim_tests ( & arg) ?,
20
20
Some ( "test" ) => run_tests ( & arg) ?,
21
+ Some ( "test-encryption" ) => run_tests_encryption ( & arg) ?,
21
22
Some ( "publish" ) => publish ( & arg) ?,
22
23
_ => print_help ( ) ,
23
24
}
@@ -32,6 +33,7 @@ build builds all languages
32
33
build-wasm builds the wasm components in wasm32-unknown-unknown
33
34
build-bundled builds sqlite3 and updates the bundeled code for ffi
34
35
test runs the entire libsql test suite using nextest
36
+ test-encryption runs encryption tests for embedded replicas
35
37
sim-tests <test name> runs the libsql-server simulation test suite
36
38
publish-cratesio publish libsql client crates to crates.io
37
39
"
@@ -81,6 +83,26 @@ fn run_tests(arg: &str) -> Result<()> {
81
83
Ok ( ( ) )
82
84
}
83
85
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
+
84
106
fn sim_tests ( arg : & str ) -> Result < ( ) > {
85
107
run_cargo ( & [ "test" , "--test" , "tests" , arg] ) ?;
86
108
0 commit comments