aboutsummaryrefslogtreecommitdiff
path: root/include/utils.h
Commit message (Collapse)AuthorAgeFilesLines
* Consolidate OMC_COLOR_ definesJoseph Hunkeler2024-05-211-0/+40
|
* Move listdir to utils.c and export prototypeJoseph Hunkeler2024-05-021-0/+3
|
* Move artifactory authentication redaction code into its own function: ↵Joseph Hunkeler2024-04-151-0/+43
| | | | redact_sensitive()
* Move collapse_whitespace to utils.c / utils.hJoseph Hunkeler2024-03-221-0/+2
|
* Add fix_tox_conf functionJoseph Hunkeler2024-03-141-0/+9
| | | | * 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 Hunkeler2024-03-141-0/+11
| | | | | | | * 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.
* Prototypes documentationJoseph Hunkeler2024-03-041-1/+171
| | | | | | | 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 modeJoseph Hunkeler2024-03-041-1/+16
| | | | * add usage comment function
* Extract git repository informationJoseph Hunkeler2024-02-181-0/+1
| | | | * First pass; this will eventually be used to rewite exact commit refs in YAML delivery files
* Add path_store functionJoseph Hunkeler2024-02-121-0/+1
|
* First pass at OS detectionJoseph Hunkeler2024-02-061-1/+1
|
* Add isempty_dir() prototypeJoseph Hunkeler2023-12-101-0/+1
|
* Fix warnings and add xmkstempJoseph Hunkeler2023-11-201-0/+9
| | | | | | * 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 globalsJoseph Hunkeler2023-11-201-0/+2
| | | | | | * 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
* Rebrand for the last timeJoseph Hunkeler2023-11-201-3/+3
| | | | | * Shorten OHMYCAL to OMC * Rename ohmycal.h to omc.h
* msg() function is now type voidJoseph Hunkeler2023-10-311-1/+5
| | | | * Add debug_shell() function to interactively examine the runtime environment
* Initial commitJoseph Hunkeler2023-10-261-0/+43