Skip to content

Commit

Permalink
Switch most tests to use the sql storage
Browse files Browse the repository at this point in the history
Signed-off-by: Simo Sorce <[email protected]>
  • Loading branch information
simo5 committed Mar 21, 2024
1 parent 94f443b commit 61a9b25
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ fn test_login_sql() {

#[test]
fn test_get_attr() {
let mut testdata = TestData::new("test_get_attr.json");
let mut testdata = TestData::new("test_get_attr.sql");
testdata.setup_db(None);

let mut args = testdata.make_init_args();
Expand Down Expand Up @@ -431,7 +431,7 @@ fn test_get_attr() {

#[test]
fn test_set_attr() {
let mut testdata = TestData::new("test_set_attr.json");
let mut testdata = TestData::new("test_set_attr.sql");
testdata.setup_db(None);

let mut args = testdata.make_init_args();
Expand Down Expand Up @@ -519,7 +519,7 @@ fn test_set_attr() {

#[test]
fn test_copy_objects() {
let mut testdata = TestData::new("test_copy_objects.json");
let mut testdata = TestData::new("test_copy_objects.sql");
testdata.setup_db(None);

let mut args = testdata.make_init_args();
Expand Down Expand Up @@ -635,7 +635,7 @@ fn test_copy_objects() {

#[test]
fn test_create_objects() {
let mut testdata = TestData::new("test_create_objects.json");
let mut testdata = TestData::new("test_create_objects.sql");
testdata.setup_db(None);

let mut args = testdata.make_init_args();
Expand Down Expand Up @@ -897,7 +897,7 @@ fn test_create_objects() {

#[test]
fn test_create_ec_objects() {
let mut testdata = TestData::new("test_create_ec_objects.json");
let mut testdata = TestData::new("test_create_ec_objects.sql");
testdata.setup_db(None);

let mut args = testdata.make_init_args();
Expand Down Expand Up @@ -1009,7 +1009,7 @@ fn test_create_ec_objects() {

#[test]
fn test_init_token() {
let mut testdata = TestData::new("test_init_token.json");
let mut testdata = TestData::new("test_init_token.sql");

let mut args = testdata.make_init_args();
let args_ptr = &mut args as *mut CK_C_INITIALIZE_ARGS;
Expand Down Expand Up @@ -1191,7 +1191,7 @@ fn test_init_token() {

#[test]
fn test_get_mechs() {
let mut testdata = TestData::new("test_get_mechs.json");
let mut testdata = TestData::new("test_get_mechs.sql");
testdata.setup_db(None);

let mut args = testdata.make_init_args();
Expand Down Expand Up @@ -1286,7 +1286,7 @@ fn get_test_data(

#[test]
fn test_aes_operations() {
let mut testdata = TestData::new("test_aes_operations.json");
let mut testdata = TestData::new("test_aes_operations.sql");
testdata.setup_db(Some("testdata/test_aes_operations.json"));

let mut args = testdata.make_init_args();
Expand Down Expand Up @@ -2114,7 +2114,7 @@ fn test_aes_operations() {

#[test]
fn test_rsa_operations() {
let mut testdata = TestData::new("test_rsa_operations.json");
let mut testdata = TestData::new("test_rsa_operations.sql");
testdata.setup_db(Some("testdata/test_rsa_operations.json"));

let mut args = testdata.make_init_args();
Expand Down Expand Up @@ -2432,7 +2432,7 @@ fn test_rsa_operations() {

#[test]
fn test_session_objects() {
let mut testdata = TestData::new("test_session_objects.json");
let mut testdata = TestData::new("test_session_objects.sql");
testdata.setup_db(None);

let mut args = testdata.make_init_args();
Expand Down Expand Up @@ -2590,7 +2590,7 @@ fn test_session_objects() {

#[test]
fn test_ecc_operations() {
let mut testdata = TestData::new("test_ecc_operations.json");
let mut testdata = TestData::new("test_ecc_operations.sql");
testdata.setup_db(Some("testdata/test_ecc_operations.json"));

let mut args = testdata.make_init_args();
Expand Down Expand Up @@ -2791,7 +2791,7 @@ fn test_ecc_operations() {

#[test]
fn test_hashes_digest() {
let mut testdata = TestData::new("test_hashes.json");
let mut testdata = TestData::new("test_hashes.sql");
testdata.setup_db(Some("testdata/test_hashes.json"));

let mut args = testdata.make_init_args();
Expand Down Expand Up @@ -3349,7 +3349,7 @@ fn encrypt(
#[test]
fn test_signatures() {
/* Test Vectors from python cryptography's pkcs1v15sign-vectors.txt */
let mut testdata = TestData::new("test_sign_verify.json");
let mut testdata = TestData::new("test_sign_verify.sql");
testdata.setup_db(Some("testdata/test_sign_verify.json"));

let mut args = testdata.make_init_args();
Expand Down Expand Up @@ -3652,7 +3652,7 @@ fn test_signatures() {

#[test]
fn test_key() {
let mut testdata = TestData::new("test_key.json");
let mut testdata = TestData::new("test_key.sql");
testdata.setup_db(None);

let mut args = testdata.make_init_args();
Expand Down

0 comments on commit 61a9b25

Please sign in to comment.