mirror of
https://github.com/chatmail/core.git
synced 2026-05-22 08:16:32 +03:00
test: ignore expensive tests by default
This makes interactively running the tests a much more pleasant experience rather than something one dreads. These tests will still be run on the CI. To run these manually run: cargo test [TESTNAME] -- --ignored
This commit is contained in:
committed by
Friedel Ziegelmayer
parent
11eb86c77f
commit
816fa1df9b
@@ -33,6 +33,7 @@ else
|
|||||||
export CARGO_SUBCMD="test"
|
export CARGO_SUBCMD="test"
|
||||||
export OPT="${OPT} "
|
export OPT="${OPT} "
|
||||||
export OPT_RELEASE="${OPT_RELEASE} "
|
export OPT_RELEASE="${OPT_RELEASE} "
|
||||||
|
export OPT_RELEASE_IGNORED="${OPT_RELEASE} -- --ignored"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Run all the test configurations:
|
# Run all the test configurations:
|
||||||
|
|||||||
@@ -524,6 +524,7 @@ i8pcjGO+IZffvyZJVRWfVooBJmWWbPB1pueo3tx8w3+fcuzpxz+RLFKaPyqXO+dD
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[ignore] // is too expensive
|
||||||
fn test_from_slice_roundtrip() {
|
fn test_from_slice_roundtrip() {
|
||||||
let (public_key, private_key) =
|
let (public_key, private_key) =
|
||||||
crate::pgp::dc_pgp_create_keypair(CString::new("hello").unwrap().as_ptr()).unwrap();
|
crate::pgp::dc_pgp_create_keypair(CString::new("hello").unwrap().as_ptr()).unwrap();
|
||||||
@@ -538,6 +539,7 @@ i8pcjGO+IZffvyZJVRWfVooBJmWWbPB1pueo3tx8w3+fcuzpxz+RLFKaPyqXO+dD
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[ignore] // is too expensive
|
||||||
fn test_ascii_roundtrip() {
|
fn test_ascii_roundtrip() {
|
||||||
let (public_key, private_key) =
|
let (public_key, private_key) =
|
||||||
crate::pgp::dc_pgp_create_keypair(CString::new("hello").unwrap().as_ptr()).unwrap();
|
crate::pgp::dc_pgp_create_keypair(CString::new("hello").unwrap().as_ptr()).unwrap();
|
||||||
|
|||||||
@@ -643,6 +643,7 @@ unsafe fn stress_functions(context: &Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[ignore] // is too expensive
|
||||||
fn test_encryption_decryption() {
|
fn test_encryption_decryption() {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut bad_data: [libc::c_uchar; 4096] = [0; 4096];
|
let mut bad_data: [libc::c_uchar; 4096] = [0; 4096];
|
||||||
|
|||||||
Reference in New Issue
Block a user