Skip to content

Commit

Permalink
quickchecking crate cleanup (#2572)
Browse files Browse the repository at this point in the history
  • Loading branch information
tshepang committed Jul 5, 2023
1 parent 43741d2 commit ec6a0c7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions bindgen-tests/tests/quickchecking/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
[package]
name = "quickchecking"
description = "Bindgen property tests with quickcheck. Generate random valid C code and pass it to the csmith/predicate.py script"
version = "0.1.0"
authors = ["Shea Newton <sheanewt@gmail.com>"]
version = "0.0.0"
publish = false
rust-version = "1.64"
edition = "2018"

[lib]
name = "quickchecking"
Expand Down
5 changes: 3 additions & 2 deletions bindgen-tests/tests/quickchecking/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Property tests for `bindgen` with `quickchecking`

`quickchecking` generates random C headers to test `bindgen`
using the [`quickcheck`][quickcheck] property testing crate. When testing
using the [`quickcheck`] property testing crate. When testing
`bindgen` with `quickchecking`, the generated header files are passed to
`bindgen`'s `csmith-fuzzing/predicate.py` script. If that script fails,
`quickchecking` panics, and you can report an issue containing the test case!
Expand Down Expand Up @@ -36,4 +36,5 @@ Run `quickchecking` binary to generate and test fuzzed C headers with
```
$ cargo run --bin=quickchecking -- -h
```
[quickcheck]: https://github.com/BurntSushi/quickcheck

[`quickcheck`]: https://github.com/BurntSushi/quickcheck
2 changes: 1 addition & 1 deletion bindgen-tests/tests/quickchecking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ fn run_predicate_script(
.output()?;
}

Ok(Command::new(&predicate_script_path_string)
Ok(Command::new(predicate_script_path_string)
.arg(&header_path_string)
.output()?)
}
Expand Down

0 comments on commit ec6a0c7

Please sign in to comment.