mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-02-28 14:33:37 -08:00
chore: Smoketests for rosenpass-gen-ipc-msg-types
This commit is contained in:
@@ -26,6 +26,10 @@ required-features = ["experiment_api", "internal_testing"]
|
|||||||
name = "api-integration-tests-api-setup"
|
name = "api-integration-tests-api-setup"
|
||||||
required-features = ["experiment_api", "internal_testing"]
|
required-features = ["experiment_api", "internal_testing"]
|
||||||
|
|
||||||
|
[[test]]
|
||||||
|
name = "gen-ipc-msg-types"
|
||||||
|
required-features = ["experiment_api", "internal_testing", "internal_bin_gen_ipc_msg_types"]
|
||||||
|
|
||||||
[[bench]]
|
[[bench]]
|
||||||
name = "handshake"
|
name = "handshake"
|
||||||
harness = false
|
harness = false
|
||||||
|
|||||||
15
rosenpass/tests/gen-ipc-msg-types.rs
Normal file
15
rosenpass/tests/gen-ipc-msg-types.rs
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
use std::{borrow::Borrow, process::Command};
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_gen_ipc_msg_types() -> anyhow::Result<()> {
|
||||||
|
let out = Command::new(env!("CARGO_BIN_EXE_rosenpass-gen-ipc-msg-types")).output()?;
|
||||||
|
assert!(out.status.success());
|
||||||
|
|
||||||
|
let stdout = String::from_utf8(out.stdout)?;
|
||||||
|
|
||||||
|
// Smoke tests only
|
||||||
|
assert!(stdout.contains("type RawMsgType = u128;"));
|
||||||
|
assert!(stdout.contains("const SUPPLY_KEYPAIR_RESPONSE : RawMsgType = RawMsgType::from_le_bytes(hex!(\"f2dc 49bd e261 5f10 40b7 3c16 ec61 edb9\"));"));
|
||||||
|
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user