summaryrefslogtreecommitdiffstats
path: root/tests/depfile/Readme.md
blob: d7f8b1a73a49807ed2375198f4bca4fe88b10346 (plain)
1
2
3
4
5
6
7
8
9
10
11
This a folder containing tests for `--depfile` parameter.
Each test is in a subfolder and defines a minimum CMake project,
which uses cbindgen to generate Rust bindings and the `--depfile`
parameter to determine when to regenerate.
The outer test can the build the project, assert that rebuilding does not regenerate the
bindings, and then assert that touching the files involved does trigger rebuilding.

The test project must contain an `expectations` folder, containing a file `dependencies`.
This `dependencies` should list all files that should be listed as dependencies in the generated
depfile. The paths should be relative to the project folder (i.e. to the folder containing 
`expectations`).