Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use array notation instead of pure pointers | Joseph Hunkeler | 2024-03-22 | 1 | -13/+16 |
| | | | | | * The compiler was convinced pos could be NULL but I found no such issue in the code. * Accessing by index satisfies whatever GCC thinks was happening here. | ||||
* | Fix bad realloc | Joseph Hunkeler | 2024-03-22 | 1 | -1/+9 |
| | | | | * Tests temporary pointer instead of blindly replacing the original | ||||
* | Consolidate pointer assignment to if-statement | Joseph Hunkeler | 2024-03-22 | 2 | -6/+3 |
| | | | | * Easier to see what's happening. Nothing more. | ||||
* | Replace free() with guard_* macros | Joseph Hunkeler | 2024-03-22 | 3 | -6/+10 |
| | |||||
* | Remove unused pointer | Joseph Hunkeler | 2024-03-22 | 1 | -5/+0 |
| | |||||
* | Fix realloc error handling | Joseph Hunkeler | 2024-03-22 | 1 | -1/+2 |
| | |||||
* | Bugfix in split() | Joseph Hunkeler | 2024-03-22 | 1 | -4/+0 |
| | | | | * On error sptr is not longer indirectly free'd. | ||||
* | Duplicate keys and values instead of copying their pointers. | Joseph Hunkeler | 2024-03-22 | 1 | -15/+31 |
| | | | | * ini_open uses the stack instead of malloc | ||||
* | Fix size of realloc'd data | Joseph Hunkeler | 2024-03-22 | 1 | -6/+12 |
| | | | | * Fix up error handling for relloc'd data | ||||
* | Free tempfile buffer | Joseph Hunkeler | 2024-03-22 | 1 | -1/+3 |
| | |||||
* | Encapsulate the tox.ini generation. | Joseph Hunkeler | 2024-03-22 | 1 | -8/+8 |
| | | | | * This avoids telling the user we're about to modify the tox.ini if there's no real work to be done. | ||||
* | Free resources on error | Joseph Hunkeler | 2024-03-22 | 1 | -4/+9 |
| | | | | * TODO: Use a goto for this one. | ||||
* | Increase command string size. | Joseph Hunkeler | 2024-03-22 | 1 | -1/+1 |
| | | | | * OMC_BUFSIZ should be long enough to accommodate larger than normal paths. | ||||
* | Return on error immediately to avoid an invalid read | Joseph Hunkeler | 2024-03-22 | 1 | -1/+0 |
| | |||||
* | Remove the user-facing "${VAR}" notation. | Joseph Hunkeler | 2024-03-22 | 1 | -10/+14 |
| | | | | * runtime_* functions will continue to use this functionality in internally to support strings such "PATH=/example.bin:${PATH}" | ||||
* | Free more members from the delivery context | Joseph Hunkeler | 2024-03-22 | 1 | -0/+4 |
| | | | | | | | * Delivery.storage.output_dir * Delivery.storage.build_docker_dir * Delivery.deploy.jfrog[n].repo * Delivery.deploy.jfrog[n].dest | ||||
* | Dynamically allocate Delivery.system.platform array. | Joseph Hunkeler | 2024-03-22 | 2 | -1/+6 |
| | | | | * This avoids compiler warnings about passing the address to a stack-allocated chunk of member in tpl_register. | ||||
* | Remove split_free() function | Joseph Hunkeler | 2024-03-22 | 2 | -13/+1 |
| | |||||
* | Use GENERIC_ARRAY_FREE instead of split_free() | Joseph Hunkeler | 2024-03-22 | 5 | -11/+11 |
| | |||||
* | Add GENERIC_ARRAY_FREE macro to avoid code duplications when freeing ↵ | Joseph Hunkeler | 2024-03-22 | 1 | -0/+6 |
| | | | | character arrays | ||||
* | Make SYSERROR macro act more like perror, and allow extra arguments | Joseph Hunkeler | 2024-03-22 | 1 | -1/+4 |
| | |||||
* | Remove unused pointer to the caller runtime environment. Unused. | Joseph Hunkeler | 2024-03-22 | 1 | -1/+1 |
| | |||||
* | Populate the strlist returned by delivery_build_wheels so we can actually ↵ | Joseph Hunkeler | 2024-03-22 | 1 | -2/+7 |
| | | | | | | free the array. Unused for now. | ||||
* | Remove redundant free of config_input | Joseph Hunkeler | 2024-03-22 | 1 | -1/+0 |
| | |||||
* | Simplify environment name generation. | Joseph Hunkeler | 2024-03-22 | 1 | -2/+3 |
| | |||||
* | Frees config_input path after its consumed by ini_open | Joseph Hunkeler | 2024-03-22 | 1 | -0/+1 |
| | |||||
* | Zero python_override_version before use | Joseph Hunkeler | 2024-03-22 | 1 | -0/+2 |
| | |||||
* | Remove redundant free of globals.sysconfdir | Joseph Hunkeler | 2024-03-22 | 1 | -1/+0 |
| | |||||
* | Free more dangling resources | Joseph Hunkeler | 2024-03-22 | 1 | -0/+1 |
| | | | | | * Delivery.meta.based_on * Delivery.storage.results_dir | ||||
* | Free more dangling resources | Joseph Hunkeler | 2024-03-22 | 1 | -0/+1 |
| | | | | | * Delivery.meta.based_on * Delivery.storage.results_dir | ||||
* | Move collapse_whitespace to utils.c / utils.h | Joseph Hunkeler | 2024-03-22 | 3 | -11/+27 |
| | |||||
* | Remove commented code | Joseph Hunkeler | 2024-03-22 | 1 | -1/+0 |
| | |||||
* | Add missing cleanup | Joseph Hunkeler | 2024-03-22 | 1 | -0/+1 |
| | | | | | * Closes dangling file streams scattered throughout * Frees pointers related to Delivery.docker missed during implementation | ||||
* | Add missing cleanup | Joseph Hunkeler | 2024-03-18 | 2 | -2/+5 |
| | | | | | * Closes dangling file streams scattered throughout * Frees pointers related to Delivery.docker missed during implementation | ||||
* | Update README.md | Joseph Hunkeler | 2024-03-14 | 1 | -27/+30 |
| | |||||
* | Add fix_tox_conf function | Joseph Hunkeler | 2024-03-14 | 5 | -1/+89 |
| | | | | * If the user calls tox in a test script like so: tox {{ workaround.tox_posargs }}, then a temporary tox configuration will be generated and the appropriate arguments to use it will be injected into tox's command line arguments | ||||
* | We're executing the test, so tell the user | Joseph Hunkeler | 2024-03-14 | 1 | -1/+2 |
| | |||||
* | Fix bug that prevented package deferrals from proceeding when package names ↵ | Joseph Hunkeler | 2024-03-14 | 1 | -2/+2 |
| | | | | contained URLs or version specs | ||||
* | Splits OMC directory creation into two stages | Joseph Hunkeler | 2024-03-14 | 1 | -7/+15 |
| | | | | | | * Stage 1: Initialize base directories (omc/root, omc/build, etc) * Stage 2: Initialize output directories (omc/output, etc) * Output directory now provides a unique parent directory name to avoid clobbering previously delivered data | ||||
* | Pretty-print pytest xml results (if xmllint is present) | Joseph Hunkeler | 2024-03-14 | 5 | -0/+106 |
| | | | | | | | * Adds Delivery.storage.results_dir member * Exposes storage.results_dir to templates * This is to make the test results human-readable * xmllint is optional. If it isn't installed it isn't a big deal. | ||||
* | Allow path_store function to replace existing path elements without causing ↵ | Joseph Hunkeler | 2024-03-14 | 1 | -0/+4 |
| | | | | memory leaks | ||||
* | Zero out the mkstemp template string to avoid garbage in file names | Joseph Hunkeler | 2024-03-14 | 1 | -1/+1 |
| | |||||
* | Add template functions to store/load function pointers. | Joseph Hunkeler | 2024-03-14 | 2 | -0/+51 |
| | | | | * Incomplete and unused for now | ||||
* | Replace ini_show with ini_write | Joseph Hunkeler | 2024-03-14 | 2 | -6/+27 |
| | | | | * One can still display the ini configuration by using ini_show(iniptr, stdout); | ||||
* | Bugfix | Joseph Hunkeler | 2024-03-14 | 1 | -5/+6 |
| | | | | | | * When the result string grew larger than the initial_size, the function would return NULL even if realloc succeeded * Replaces fgets with fread to ensure all data returned by the program is consumed. * The line buffer is zeroed for each iteration | ||||
* | Remove "OMC ::" from build name. | Joseph Hunkeler | 2024-03-14 | 3 | -3/+3 |
| | | | | * TODO: Preface the build name with OMC at upload-time. | ||||
* | Only set continue_on_error and always_update_base if not already set by CLI ↵ | Joseph Hunkeler | 2024-03-12 | 1 | -4/+9 |
| | | | | | | argument * Those bare variables were useful after all | ||||
* | Wording and indent | Joseph Hunkeler | 2024-03-12 | 1 | -2/+3 |
| | |||||
* | Exit on invalid argument input | Joseph Hunkeler | 2024-03-11 | 1 | -2/+1 |
| | |||||
* | Set globals struct values as intended | Joseph Hunkeler | 2024-03-11 | 1 | -7/+2 |
| | | | | * Bare variables predated the globals struct. This better aligns with how options are consumed throughout the program |