Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Address shortcomings and bugs flushed out by unit tests | Joseph Hunkeler | 2024-06-09 | 1 | -16/+18 |
| | |||||
* | Consolidate OMC_COLOR_ defines | Joseph Hunkeler | 2024-05-21 | 1 | -7/+0 |
| | |||||
* | Documentation | Joseph Hunkeler | 2024-05-17 | 1 | -0/+30 |
| | |||||
* | Move listdir to utils.c and export prototype | Joseph Hunkeler | 2024-05-02 | 1 | -0/+21 |
| | |||||
* | Convert ohmycal to a library | Joseph Hunkeler | 2024-05-02 | 1 | -2/+0 |
| | |||||
* | Move artifactory authentication redaction code into its own function: ↵ | Joseph Hunkeler | 2024-04-15 | 1 | -0/+28 |
| | | | | redact_sensitive() | ||||
* | xmkstemp falls back to /tmp when globals are not yet initialized | Joseph Hunkeler | 2024-04-10 | 1 | -3/+12 |
| | | | | * Increase t_name buffer size to match input argument sizes | ||||
* | Changes to ini_write() behavior: | Joseph Hunkeler | 2024-04-02 | 1 | -1/+1 |
| | | | | | | * Caller can choose to dump raw unmodified key/value pairs, or render all values through the template engine * Fixes spurious line feeds injected into the output stream * Uses LINE_SEP instead of "\n" | ||||
* | Fix up result [de]allocation in fix_tox_conf | Joseph Hunkeler | 2024-03-24 | 1 | -4/+4 |
| | |||||
* | Error messages | Joseph Hunkeler | 2024-03-22 | 1 | -4/+2 |
| | |||||
* | 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 | 1 | -5/+2 |
| | | | | * Easier to see what's happening. Nothing more. | ||||
* | Replace free() with guard_* macros | Joseph Hunkeler | 2024-03-22 | 1 | -0/+2 |
| | |||||
* | Move collapse_whitespace to utils.c / utils.h | Joseph Hunkeler | 2024-03-22 | 1 | -0/+25 |
| | |||||
* | Add missing cleanup | Joseph Hunkeler | 2024-03-18 | 1 | -1/+1 |
| | | | | | * Closes dangling file streams scattered throughout * Frees pointers related to Delivery.docker missed during implementation | ||||
* | Add fix_tox_conf function | Joseph Hunkeler | 2024-03-14 | 1 | -1/+57 |
| | | | | * 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 | ||||
* | Pretty-print pytest xml results (if xmllint is present) | Joseph Hunkeler | 2024-03-14 | 1 | -0/+58 |
| | | | | | | | * 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 |
| | |||||
* | Use do/while in guard_* macros to make them behave more like functions | Joseph Hunkeler | 2024-03-10 | 1 | -4/+4 |
| | |||||
* | Reset console color before writing | Joseph Hunkeler | 2024-03-06 | 1 | -0/+1 |
| | |||||
* | Fix path_basename | Joseph Hunkeler | 2024-03-06 | 1 | -1/+1 |
| | | | | * Return original pointer when path separator is not present | ||||
* | Prototypes documentation | Joseph Hunkeler | 2024-03-04 | 1 | -37/+19 |
| | | | | | | | Includes minor changes: * Rename jfrt_upload_set_defaults to jfrt_upload_init * Move jfrt_auth_init to artifactory.c * Adds missing error handling to git_describe and git_rev_parse | ||||
* | xmkstemp allow setting file mode | Joseph Hunkeler | 2024-03-04 | 1 | -2/+2 |
| | | | | * add usage comment function | ||||
* | Extract git repository information | Joseph Hunkeler | 2024-02-18 | 1 | -1/+21 |
| | | | | * First pass; this will eventually be used to rewite exact commit refs in YAML delivery files | ||||
* | Add path_store function | Joseph Hunkeler | 2024-02-12 | 1 | -0/+42 |
| | |||||
* | General improvements | Joseph Hunkeler | 2024-01-30 | 1 | -3/+3 |
| | | | | | | | | | | | * Fix segfault related to Delivery.storage.tmpdir not being initialized properly * Add delivery_format_str() to make delivery rules easier to maintain * Test configurations can accept their own runtime variables * When no conda package or python packages are to be installed, indicate that state by printing "N/A" in output summary * Change shell_safe() accept a string instead of an array * Add support for artifactory client certs key/path * Initial pass at defining an artifactory repo destination (not fully implemented yet) * Add missing line feeds to error messages during ini config initialization | ||||
* | guard_free() all pointers | Joseph Hunkeler | 2023-12-10 | 1 | -5/+4 |
| | |||||
* | Use OMC_DIRSTACK_MAX instead of magic numbers | Joseph Hunkeler | 2023-12-10 | 1 | -1/+1 |
| | |||||
* | Add isempty_dir() function | Joseph Hunkeler | 2023-12-10 | 1 | -0/+19 |
| | |||||
* | Add path_dirname() function | Joseph Hunkeler | 2023-12-10 | 1 | -0/+22 |
| | |||||
* | Use TMPDIR, and fail when script cannot be executed within that filesystem | Joseph Hunkeler | 2023-11-20 | 1 | -1/+1 |
| | |||||
* | Fix warnings and add xmkstemp | Joseph Hunkeler | 2023-11-20 | 1 | -6/+21 |
| | | | | | | * Reduce stack usage for status variable in msg() * Bugfix: write OMC_COLOR_RESET to the requested stream instead of stdout * Add helper function xmkstemp to avoid clutter when using disposable files | ||||
* | Use globals | Joseph Hunkeler | 2023-11-20 | 1 | -0/+5 |
| | | | | | | * continue_on_error set by omc config * always_update_base_environment set by omc config * Passing OMC_MSG_RESTRICT flag to msg() will print only in verbose mode | ||||
* | Replaces BUFSIZ with OMC_BUFSIZ | Joseph Hunkeler | 2023-11-20 | 1 | -4/+4 |
| | |||||
* | Rebrand for the last time | Joseph Hunkeler | 2023-11-20 | 1 | -1/+3 |
| | | | | | * Shorten OHMYCAL to OMC * Rename ohmycal.h to omc.h | ||||
* | msg() function is now type void | Joseph Hunkeler | 2023-10-31 | 1 | -2/+9 |
| | | | | * Add debug_shell() function to interactively examine the runtime environment | ||||
* | Initial commit | Joseph Hunkeler | 2023-10-26 | 1 | -0/+417 |