aboutsummaryrefslogtreecommitdiff
path: root/tests/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Update cmake configurationJoseph Hunkeler2025-02-121-4/+4
| | | | | | * Pass through for CMAKE_C_FLAGS * Rename BUILD_TESTING[_RT] to TESTS[_RT] * Add toggle for DEBUG level messages (displayed regardless of verbosity state)
* Fix redundant linkage to stasis_core.afix-download-authJoseph Hunkeler2024-12-111-2/+1
|
* Restructure projectdelivery-libJoseph Hunkeler2024-12-111-6/+5
| | | | | | * Move headers to relevant include directories within the target tree(s) * Adjust doxygen configuration to search correct paths * Adjust CMake configuration to use new include paths
* Move delivery_*.c sources into their own libraryJoseph Hunkeler2024-12-081-1/+4
|
* Copy test data in bulkJoseph Hunkeler2024-10-301-6/+11
| | | | | * Detect RT scripts * Generalize file extension pattern use
* Add rt_generic_based_on.shJoseph Hunkeler2024-10-281-0/+3
| | | | * Tests the "based_on" key
* Add BUILD_TESTING_RT build optionJoseph Hunkeler2024-10-211-1/+1
| | | | * The user can choose to (not) run the long scripted statis test(s)
* Rename "files" and "file_without_ext" to improve readabilityJoseph Hunkeler2024-10-211-13/+13
|
* Disable format-truncation and unused-result warnings in testsJoseph Hunkeler2024-09-201-2/+2
|
* More unit tests (and fixing bugs) (#23)Joseph Hunkeler2024-08-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add test_artifactory.c to suite * Add test_ini_getval_wrapper to ini.c * basic ini_getval_TYPE() conversion checks * bugfix: use strtof in INIVAL_TYPE_FLOAT case * Include stdio.h to pull in FILE structure * bugfix: free data at index during strlist_set operation * Previous behavior of setting the pointer to NULL introduced a subtle memory leak * Set strlist error when index it out of range * Import private delivery functions required for mock context creation * Remove static declaration * populate_delivery_cfg() * Add test_junitxml.c * Fix duplicate define value for JUNIT_RESULT_STATE_ERROR * Add static junit test data * Copy test data to current test directory
* Regression tests, envctl, and bug fixes (#13)Joseph Hunkeler2024-07-201-1/+8
| | | | | | | | | | | * Found too many bugs * Implements a regression test * Moves and completely refactors the envctl code * Allows the user to keep @STR@ values in output files (if you want full control over where external packages comes from post-build) * Fixes wording in a few places * envctl redaction is not implemented yet. The original redaction code hasn't been modified. * Use generic.ini instead of bare_minimum.ini
* Rebrand OhMyCal (OMC) as STASIS (#7)Joseph Hunkeler2024-06-211-1/+1
|
* Unit tests (#6)Joseph Hunkeler2024-06-201-0/+32
* Initial commit of unit tests [WIP] * Address shortcomings and bugs flushed out by unit tests * Enable unit testing in CI workflow * Enable verbose ctests * Handle lack of __FILE_NAME__ define * Only podman support `run --arch` argument * Skip docker build testing if CI system cannot pull an image * Remove errant call to puts() * Identify local repo user * Fix missing xmllint * NULL terminate arrays * Fix filename assignment in is_url mode * Break loop when expected lines are exhausted * strcmp_array expects NULL terminated array. Iterating by size in this case passes NULL to strcmp leading to an invalid read * Remove debug printf statements * Disable a few warnings for tests * Workaround for ctest junit xml truncation * Update checkout@v4 * Prevent false-positive result * Return zero on error * Fix strlist_remove function * Value argument can be constant * Fix test to match changes to startswith and endswith * Add test_ini.c * Fix redaction code to accept NULL pointers in array * And let the caller specify the length of the array of strings to redact. * Redactions now occur directly on authentication strings rather than their command line arguments * Fix BUILD_TESTING_DEBUG * Adds missing -D argument