Skip to content

Improve test suite layering - #93

Draft
orting wants to merge 21 commits into
mainfrom
improve-testing
Draft

Improve test suite layering#93
orting wants to merge 21 commits into
mainfrom
improve-testing

Conversation

@orting

@orting orting commented Jul 6, 2026

Copy link
Copy Markdown

Summary

  • add suite-level CTest labels for cxx-unit, dai-unit, and dai-system
  • document the test-layer selectors and local test entrypoints
  • restore the C++ unit-test harness/build under explicit registration
  • update Linux, macOS, and Windows test workflows to build and run C++ unit tests

Notes

  • this branch is based on explicit-registration-phase1
  • this PR is draft-only for now so CI can run on the workflow updates

@orting
orting changed the base branch from explicit-registration-phase1 to main July 6, 2026 09:43
orting and others added 21 commits August 28, 2026 08:37
Recommend the platform Makefile targets as the local developer entrypoints for Daisy tests, clarify the prerequisites for direct ctest usage, and keep the distinction between local usage and explicit CI workflow steps clear in the documentation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add suite-level CTest labels for C++ unit tests, .dai unit tests, and .dai system tests; document the selectors; restore the C++ unit-test harness so the suite builds under explicit registration; and update the CI workflows to configure and run the C++ unit tests on Linux, macOS, and Windows.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Make the C++ unit-test support library static for Windows linkage, only link Boost::system when that imported target exists so macOS config-package builds succeed, and add missing Daisy registration declarations to eliminate missing-declaration warnings for explicit registration functions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Time::now() is only used by the C++ unit tests in this repository, but it should still convert tm_year to a full calendar year.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep the PR workflows as one explicit job per platform while retaining the safer dependency and archive lookup hardening.

Also stop rewriting the copied managed Python dylib install name on macOS, which avoids install_name_tool failures on current runner images.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Update the Flatpak launcher so persisted lib and sample data are refreshed when the packaged content changes, avoiding stale runtime files after reinstalls or upgrades.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add a standalone packaged-test bundle and runner for install verification outside the build tree. Bundle dai tests, baselines, and Python helpers; align packaged discovery with disabled CI tests; and document the Flatpak data and temp-directory behavior needed for packaged runs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep build-time C++ checks in the build jobs, then verify the packaged artifacts in downstream package-test jobs using the standalone test bundle. Linux now tests the installed .deb, while macOS and Windows test their packaged zip outputs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use the built .deb for Linux package verification, install make in the Windows build job for test-bundle creation, and fix staged macOS dylib references so packaged tests can load SuiteSparse at runtime.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant