-
Notifications
You must be signed in to change notification settings - Fork 0
feat(core): agregar MemorySanitizer, mejorar Regular_Polygon, QuadTre… #95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
a978b5d
feat(core): agregar MemorySanitizer, mejorar Regular_Polygon, QuadTre…
github-actions[bot] d9d3016
feat(core): agregar MemorySanitizer, mejorar Regular_Polygon, QuadTre…
lrleon a84b198
fix(ci): add missing sources for memory-sanitizer and LaTeX example t…
lrleon 5022387
feat(core): agregar MemorySanitizer, mejorar Regular_Polygon, QuadTre…
lrleon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| { | ||
| ".": "5.9.0" | ||
| ".": "5.10.0" | ||
| } |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,59 @@ | ||
| if(NOT DEFINED EXAMPLE_PATH OR NOT DEFINED PDFLATEX_PATH OR | ||
| NOT DEFINED OUTPUT_DIR OR NOT DEFINED MODE) | ||
| message(FATAL_ERROR | ||
| "EXAMPLE_PATH, PDFLATEX_PATH, OUTPUT_DIR, and MODE are required") | ||
| endif() | ||
|
|
||
| file(MAKE_DIRECTORY "${OUTPUT_DIR}") | ||
| set(_tex_path "${OUTPUT_DIR}/document.tex") | ||
|
|
||
| set(_example_command "${EXAMPLE_PATH}" "${_tex_path}") | ||
| if(MODE STREQUAL "handout") | ||
| list(APPEND _example_command --handout) | ||
| elseif(NOT MODE STREQUAL "standalone" AND NOT MODE STREQUAL "beamer") | ||
| message(FATAL_ERROR "Unsupported LaTeX example mode: ${MODE}") | ||
| endif() | ||
|
|
||
| execute_process( | ||
| COMMAND ${_example_command} | ||
| TIMEOUT 60 | ||
| RESULT_VARIABLE _example_status | ||
| OUTPUT_VARIABLE _example_stdout | ||
| ERROR_VARIABLE _example_stderr | ||
| ) | ||
| if(NOT _example_status EQUAL 0) | ||
| message(FATAL_ERROR | ||
| "Example failed with status ${_example_status}:\n" | ||
| "${_example_stdout}${_example_stderr}") | ||
| endif() | ||
|
|
||
| execute_process( | ||
| COMMAND "${PDFLATEX_PATH}" | ||
| -interaction=nonstopmode | ||
| -halt-on-error | ||
| -output-directory=${OUTPUT_DIR} | ||
| "${_tex_path}" | ||
| TIMEOUT 60 | ||
| RESULT_VARIABLE _latex_status | ||
| OUTPUT_VARIABLE _latex_stdout | ||
| ERROR_VARIABLE _latex_stderr | ||
| ) | ||
| if(NOT _latex_status EQUAL 0) | ||
| message(FATAL_ERROR | ||
| "pdflatex failed with status ${_latex_status}:\n" | ||
| "${_latex_stdout}${_latex_stderr}") | ||
| endif() | ||
|
|
||
| set(_log_path "${OUTPUT_DIR}/document.log") | ||
| if(NOT EXISTS "${_log_path}") | ||
| message(FATAL_ERROR "pdflatex did not produce ${_log_path}") | ||
| endif() | ||
|
|
||
| file(READ "${_log_path}" _latex_log) | ||
| foreach(_unexpected "Overfull" "LaTeX Error" "Undefined control sequence") | ||
| string(FIND "${_latex_log}" "${_unexpected}" _diagnostic_position) | ||
| if(NOT _diagnostic_position EQUAL -1) | ||
| message(FATAL_ERROR | ||
| "Unexpected '${_unexpected}' in ${_log_path}") | ||
| endif() | ||
| endforeach() |
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.