-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: regression test case for cliprdr_format target (#405)
- Loading branch information
Showing
12 changed files
with
31 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+41 Bytes
...e/test_data/fuzz_regression/cliprdr_format/crash-0e7b5df5737a7ffc553c46c2425609f543b89498
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
macro_rules! check { | ||
($oracle:ident) => {{ | ||
use ironrdp_fuzzing::oracles; | ||
|
||
const REGRESSION_DATA_FOLDER: &str = concat!( | ||
env!("CARGO_MANIFEST_DIR"), | ||
concat!("/test_data/fuzz_regression/", stringify!($oracle)) | ||
); | ||
|
||
println!("Read directory {REGRESSION_DATA_FOLDER}"); | ||
for entry in std::fs::read_dir(REGRESSION_DATA_FOLDER).unwrap() { | ||
let entry = entry.unwrap(); | ||
println!("Check {}", entry.path().display()); | ||
let test_case = std::fs::read(entry.path()).unwrap(); | ||
oracles::$oracle(&test_case); | ||
} | ||
}}; | ||
} | ||
|
||
#[test] | ||
pub fn check_pdu_decode() { | ||
check!(pdu_decode); | ||
} | ||
|
||
#[test] | ||
pub fn check_cliprdr_format() { | ||
check!(cliprdr_format); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
|
||
mod clipboard; | ||
mod displaycontrol; | ||
mod fuzz_regression; | ||
mod graphics; | ||
mod input; | ||
mod pcb; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,5 @@ mod input; | |
mod mcs; | ||
mod pointer; | ||
mod rdp; | ||
mod regression; | ||
mod rfx; | ||
mod x224; |
This file was deleted.
Oops, something went wrong.