aboutsummaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* General fixes (#149)HEAD1.7.1masterJoseph Hunkeler34 hours1-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix missing LF * Return when item is NULL * Explicitly state error condition * strlist_contains: Allow index result argument to be NULL * BUGFIX: strlist_contains now uses strstr instead of strcmp * The match was never intended to be exact * BUGFIX: log_msgv now prints a LF to the same stream as the message * BUGFIX: env_manipulate_pathstr PM_ONCE logic did opposite of what was intended * When strstr finds the path in the system path, it's supposed to free the new system path and exit. In this case it was freeing the path when the path wasn't found that lead to several instances of PATH not being updated correctly * Free result when shell_output fails * join: Fix segfault on memory error * join_ex: Fix leak on memory error * Initialize installer_url and python_override_version to zero * Remove redundant calls to memset
* Micromamba improvement (#148)1.7.0Joseph Hunkeler5 days1-0/+1
| | | | | | | | | | | | | | | | | | | | | * Update micromamba installation logic * Split installation from micromamba() into micromamba_install() * Return -1 when micromamba cannot be installed * Add stasis.ini option "indexer.micromamba_download_url" * Add global variable micromamba_download_url * The installation function attempts two known-good URLs by default * * Add indexer arugment '--micromamba-download-url' * Add is_file_compressed() function to utils * Call micromamba_install() from tests * Add space in usage statement * Fix usage output when option array contains arguments without short options * Add --micromamba-download-url to README.md
* Safe strings, finally (#145)Joseph Hunkeler2026-06-024-8/+6
| | | | | | | | * Add string copy and catonate replacements * safe_strncpy * safe_strncat * Replace string functions * gbo.ini: Update tweakwcs to 0.9.0 * generic.ini: Update tweakwcs to 0.9.0
* replace for-loop with while-loop since 'i' was unusedbughunt-1002Joseph Hunkeler2026-05-121-1/+1
|
* Replace __FUNCTION__ with __func__ (portable)Joseph Hunkeler2026-05-122-5/+5
|
* Replace void pointer with pointer to tplfunc_frame structureJoseph Hunkeler2026-05-121-1/+1
|
* Replace msg, perror, and fprintf with SYS message macrosuse-sys-macrosJoseph Hunkeler2026-05-114-26/+26
|
* Update SYS* macro callsJoseph Hunkeler2026-05-101-1/+1
|
* Fix up includesJoseph Hunkeler2026-05-101-0/+1
|
* Implement logging facility WARN, INFO, DEBUGJoseph Hunkeler2026-05-101-0/+1
| | | | | | | * The original macros have been updated * Default log level is WARN * Log level increases per `-v` CLI argument * Tests always use DEBUG level
* Merge pull request #141 from jhunkeler/use-stasis-bufsizJoseph Hunkeler2026-05-074-5/+5
|\ | | | | Replace BUFSIZ with STASIS_BUFSIZ
| * Replace BUFSIZ with STASIS_BUFSIZJoseph Hunkeler2026-05-074-5/+5
| |
* | Removed unused failed counterJoseph Hunkeler2026-05-041-1/+0
| |
* | Add test_version_compare.cJoseph Hunkeler2026-05-021-0/+173
| |
* | Fix verbosity of unit testsJoseph Hunkeler2026-05-021-10/+17
|/ | | | * PASS output was never supposed to be permanently toggled on
* Add download_dir member to MicroMambaInfo struct.Joseph Hunkeler2026-04-271-5/+5
| | | | * TMPDIR and hardcoded path is too unpredictable.
* pkg_index_provides: Add logdir argumentJoseph Hunkeler2026-04-271-2/+2
| | | | * mkdirs() the logdir
* Fix file handle leaksJoseph Hunkeler2026-04-261-0/+3
|
* test_fix_tox_conf: Check lines and resultJoseph Hunkeler2026-04-261-0/+2
|
* Restrict tests from finding STASIS's .git directoryJoseph Hunkeler2026-04-251-2/+7
|
* Fix assertion. count should be greater than zero.Joseph Hunkeler2026-04-241-2/+2
|
* NUL terminate after copyJoseph Hunkeler2026-04-243-0/+5
|
* Combine declaration and assignment of fpJoseph Hunkeler2026-04-231-2/+1
|
* test_file_readlines: close handle on errorJoseph Hunkeler2026-04-221-0/+1
|
* Fix incorrect usage of maxlen argument in snprintf callsJoseph Hunkeler2026-04-174-6/+8
|
* Remove sizeof callJoseph Hunkeler2026-04-161-1/+1
|
* Remove sizeof callJoseph Hunkeler2026-04-161-3/+2
|
* Convert more strcpy to strn variantJoseph Hunkeler2026-04-163-8/+7
|
* Convert more strcat and strcpy to strn variantsJoseph Hunkeler2026-04-161-4/+4
|
* test_relocation: add test for tpl_render_to_fileJoseph Hunkeler2026-04-161-0/+3
|
* test_template: Test rendering to a fileJoseph Hunkeler2026-04-161-7/+22
|
* Replace sprintf with snprintfJoseph Hunkeler2026-04-159-23/+27
| | | | * A few strcpy and strcat changes as well
* python3, not pythonrealloc-sefault-tests_addJoseph Hunkeler2026-04-091-1/+1
|
* Add test_tests.cJoseph Hunkeler2026-04-081-0/+52
|
* tests: Increase timeout to 10 minutesJoseph Hunkeler2026-04-081-1/+1
|
* Directly test getting the value of least one keyword per listJoseph Hunkeler2026-04-071-0/+15
|
* Add enum for wheel_package error handlingJoseph Hunkeler2026-04-071-1/+7
|
* Implement wheel package parser1.4.0Joseph Hunkeler2026-04-071-0/+195
| | | | * Add raw variant of strlist_append_tokenize function
* Rename wheel.c and wheel.h to wheelinfo.c and wheelinfo.hJoseph Hunkeler2026-04-071-7/+7
| | | | | | | | * Refactor wheel struct as WheelInfo * Refactor wheel_* functions as wheelinfo_* # Conflicts: # src/lib/core/wheelinfo.c
* Fix git describe testsJoseph Hunkeler2026-03-051-3/+7
|
* Add strlist_appendf function (future use)Joseph Hunkeler2026-03-051-0/+15
|
* Update docker_script argument to remove container after executionJoseph Hunkeler2026-03-051-1/+1
|
* Test against the tc struct's expected valueJoseph Hunkeler2026-02-121-2/+3
|
* Remove dead codeJoseph Hunkeler2026-02-121-1/+0
|
* First use of STASIS_TEST_MSGJoseph Hunkeler2026-01-031-2/+2
|
* Add STASIS_TEST_MSG macroJoseph Hunkeler2026-01-031-0/+9
|
* Add TESTS_VERBOSE cmake optionJoseph Hunkeler2026-01-031-0/+3
| | | | * Defines STASIS_TEST_VERBOSE
* Enable testsJoseph Hunkeler2026-01-031-7/+7
|
* Trying to fix a buffer overflow reported by the CIJoseph Hunkeler2026-01-031-2/+3
| | | | * Locally ASAN wasn't complaining.
* Add testsJoseph Hunkeler2026-01-021-7/+47
| | | | | * test_mp_timeout() * test_mp_seconds_to_human_readable()