Skip to content

Commit

Permalink
agent: Mention how to generate fixtures
Browse files Browse the repository at this point in the history
Signed-off-by: Daiki Ueno <[email protected]>
  • Loading branch information
ueno committed Nov 13, 2023
1 parent 36df3b2 commit c7c3849
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions agent/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,16 @@ mod tests {
use serde_cbor::de::Deserializer;
use std::path::Path;

// This test assumes input.cborseq (trace file) and output.cborseq
// (log file) in $CARGO_MANIFEST_DIR/../fixtures/normal. These
// files can be generated by exercising the GnuTLS session after
// starting up the agent with:
//
// sudo target/debug/crypto-auditing-agent -c agent/fixtures/agent.conf \
// --library /usr/lib64/libgnutls.so.30 --user $USER:$GID \
// --trace-file fixtures/normal/input.cborseq \
// --log-file fixtures/normal/output.cborseq
//
#[test]
fn test_normal() {
let fixtures_path = Path::new(env!("CARGO_MANIFEST_DIR"))
Expand Down

0 comments on commit c7c3849

Please sign in to comment.