cmake: fix generate-examples/check-examples#2545
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2545 +/- ##
==========================================
+ Coverage 86.12% 86.13% +0.01%
==========================================
Files 526 526
Lines 36003 35977 -26
==========================================
- Hits 31007 30989 -18
+ Misses 4996 4988 -8
|
|
what about renaming |
Both/all of them also run tests, it is just that some produce output (images), while others do not. |
|
Reworked it:
|
| travis_fold_end | ||
| else | ||
| # TODO: does not run check-examples. Should it? | ||
| travis_run_in_fold "make.check-unit" make check-unit |
There was a problem hiding this comment.
Do we want to run check-examples also with non-coverage builds?
|
@Elv13 on IRC:
You mean the ones not generating images still need to run when generating docs? Makes sense. |
|
@blueyed I think we need to add |
|
@Elv13 |
|
There is 3 steps, I think.
The images are simple because they are statically deterministic, but the generated text may change when This could be mitigated by moving |
b8a2584 to
440bbb4
Compare
Those do not generate files, but only run the tests in there, and should not be triggered with `make ldoc`. Move them to `check-examples` instead.
The default comment is verbose enough in general: > Generating doc/images/AUTOGEN_awful_mouse_coords.svg
440bbb4 to
c333a8f
Compare
|
So while it gets run always, it does not update Therefore I think this PR does not cause any regression in this regard. |
|
Would like to get this in for #2672, to ease handling the examples tests therein / from there. |
That's a bug, the |
Elv13
left a comment
There was a problem hiding this comment.
This isn't 100% perfect, but it wasn't perfect before either, so this is ok. Eventually it will be necessary to re-run the check when the file is edited and then trigger generate-examples (for that file) if that's the case and that would affect the output of make ldoc. So the premise of this pull request is still looking a bit wrong to me. check-examples can affect the ldoc larget. But again, this is currently not the case and havn't been ever since this was moved out of the "configure" step.
Those do not generate files, but only run the tests in there, and should
not be triggered with
make ldoc.Move them to
check-examplesinstead.TODO: