Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,10 @@ jobs:
- name: Cache CMake build
uses: actions/cache@v4
with:
path: |
build
~/.cmake
# Only ~/.cmake: a restored build/ keeps CMakeCache.txt's absolute cl.exe path, which stops
# existing whenever the runner image updates its MSVC toolset ("is not a full path to an
# existing compiler tool"), and the key below does not change with the image.
path: ~/.cmake
# matrix.os is part of the key: windows-2022 and windows-latest ship different Visual
# Studio versions, and a build/ directory restored from one records the other's cl.exe
# path in CMakeCache.txt ("is not a full path to an existing compiler tool").
Expand Down Expand Up @@ -380,7 +381,9 @@ jobs:
runs-on: ubuntu-latest
container:
image: gcc:16.1.0
options: --user root
# seccomp=unconfined: ThreadSanitizer re-execs with ASLR disabled, which Docker's default
# seccomp profile forbids; recent runner kernels need that re-exec ("unable to disable ASLR").
options: --user root --security-opt seccomp=unconfined

steps:
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
elseif(NOT DEFINED SPECLAB_PROJECT_VERSION)
set(SPECLAB_PROJECT_VERSION "${SPECLAB_VERSION_DEFAULT}")
endif()
project(speclab VERSION ${SPECLAB_PROJECT_VERSION} DESCRIPTION "Modern C++23 Modules Testing Framework for Medical Devices" HOMEPAGE_URL "https://github.com/ambroise-leclerc/speclab" LANGUAGES CXX)
project(speclab VERSION ${SPECLAB_PROJECT_VERSION} DESCRIPTION "Modern C++23 Modules Testing Framework for Medical Devices" HOMEPAGE_URL "https://github.com/Compliatory/speclab" LANGUAGES CXX)

message(STATUS "CMAKE_EXPERIMENTAL_CXX_IMPORT_STD: ${CMAKE_EXPERIMENTAL_CXX_IMPORT_STD}")
message(STATUS "Compiler: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}")
Expand Down
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# SpecLab - Medical Device Testing Framework

![Status](https://img.shields.io/badge/status-experimental-orange)
[![Version](https://img.shields.io/github/v/tag/ambroise-leclerc/SpecLab?label=version)](https://github.com/ambroise-leclerc/SpecLab/releases)
[![Version](https://img.shields.io/github/v/tag/Compliatory/SpecLab?label=version)](https://github.com/Compliatory/SpecLab/releases)
[![C++23](https://img.shields.io/badge/C%2B%2B-23%20modules-blue.svg)](https://en.cppreference.com/w/cpp/compiler_support)
[![CMake](https://img.shields.io/badge/CMake-4.0%E2%80%934.4-green.svg)](https://cmake.org/)
[![License: EUPL-1.2](https://img.shields.io/badge/License-EUPL--1.2-blue)](LICENSE)

[![Windows MSVC](https://img.shields.io/github/check-runs/ambroise-leclerc/SpecLab/develop?nameFilter=Windows%20MSVC%20%28windows-latest%2C%20x64%29&label=Windows%20MSVC)](https://github.com/ambroise-leclerc/SpecLab/actions/workflows/ci.yml?query=branch%3Adevelop)
[![Linux GCC 16.1](https://img.shields.io/github/check-runs/ambroise-leclerc/SpecLab/develop?nameFilter=Linux%20GCC%2016.1.0%20%28CMake%204.1.1%29&label=Linux%20GCC%2016.1)](https://github.com/ambroise-leclerc/SpecLab/actions/workflows/ci.yml?query=branch%3Adevelop)
[![Linux Clang 21](https://img.shields.io/github/check-runs/ambroise-leclerc/SpecLab/develop?nameFilter=Linux%20Clang%2021%20libc%2B%2B%20%28CMake%204.3.1%29&label=Linux%20Clang%2021)](https://github.com/ambroise-leclerc/SpecLab/actions/workflows/ci.yml?query=branch%3Adevelop)
[![macOS Apple Silicon](https://img.shields.io/github/check-runs/ambroise-leclerc/SpecLab/develop?nameFilter=macOS%2015%20arm64%20%28Clang%2021.1.8%2C%20libc%2B%2B%29&label=macOS%20Apple%20Silicon)](https://github.com/ambroise-leclerc/SpecLab/actions/workflows/ci.yml?query=branch%3Adevelop)
[![Windows MSVC](https://img.shields.io/github/check-runs/Compliatory/SpecLab/develop?nameFilter=Windows%20MSVC%20%28windows-latest%2C%20x64%29&label=Windows%20MSVC)](https://github.com/Compliatory/SpecLab/actions/workflows/ci.yml?query=branch%3Adevelop)
[![Linux GCC 16.1](https://img.shields.io/github/check-runs/Compliatory/SpecLab/develop?nameFilter=Linux%20GCC%2016.1.0%20%28CMake%204.1.1%29&label=Linux%20GCC%2016.1)](https://github.com/Compliatory/SpecLab/actions/workflows/ci.yml?query=branch%3Adevelop)
[![Linux Clang 21](https://img.shields.io/github/check-runs/Compliatory/SpecLab/develop?nameFilter=Linux%20Clang%2021%20libc%2B%2B%20%28CMake%204.3.1%29&label=Linux%20Clang%2021)](https://github.com/Compliatory/SpecLab/actions/workflows/ci.yml?query=branch%3Adevelop)
[![macOS Apple Silicon](https://img.shields.io/github/check-runs/Compliatory/SpecLab/develop?nameFilter=macOS%2015%20arm64%20%28Clang%2021.1.8%2C%20libc%2B%2B%29&label=macOS%20Apple%20Silicon)](https://github.com/Compliatory/SpecLab/actions/workflows/ci.yml?query=branch%3Adevelop)

[![CI/CD](https://github.com/ambroise-leclerc/SpecLab/actions/workflows/ci.yml/badge.svg?branch=develop)](https://github.com/ambroise-leclerc/SpecLab/actions/workflows/ci.yml)
[![Medical Device Validation](https://github.com/ambroise-leclerc/SpecLab/actions/workflows/medical-validation.yml/badge.svg?branch=develop)](https://github.com/ambroise-leclerc/SpecLab/actions/workflows/medical-validation.yml)
[![Security](https://github.com/ambroise-leclerc/SpecLab/actions/workflows/security.yml/badge.svg?branch=develop)](https://github.com/ambroise-leclerc/SpecLab/actions/workflows/security.yml)
[![Release](https://github.com/ambroise-leclerc/SpecLab/actions/workflows/release.yml/badge.svg)](https://github.com/ambroise-leclerc/SpecLab/actions/workflows/release.yml)
[![CI/CD](https://github.com/Compliatory/SpecLab/actions/workflows/ci.yml/badge.svg?branch=develop)](https://github.com/Compliatory/SpecLab/actions/workflows/ci.yml)
[![Medical Device Validation](https://github.com/Compliatory/SpecLab/actions/workflows/medical-validation.yml/badge.svg?branch=develop)](https://github.com/Compliatory/SpecLab/actions/workflows/medical-validation.yml)
[![Security](https://github.com/Compliatory/SpecLab/actions/workflows/security.yml/badge.svg?branch=develop)](https://github.com/Compliatory/SpecLab/actions/workflows/security.yml)
[![Release](https://github.com/Compliatory/SpecLab/actions/workflows/release.yml/badge.svg)](https://github.com/Compliatory/SpecLab/actions/workflows/release.yml)

SpecLab is a C++23 **named-modules** testing framework for medical device software. It offers
Given/When/Then tests without macros, parameterized and benchmark tests, medical-device metadata
Expand All @@ -26,7 +26,7 @@ traceability matrix.
> software compliant with IEC 62304, ISO 13485 or ISO 14971, and it is not recommended for
> production use.

Its main consumer is [MduX](https://github.com/ambroise-leclerc/MduX), a C++23 modules UI library
Its main consumer is [MduX](https://github.com/Compliatory/MduX), a C++23 modules UI library
for medical devices, which uses it as a test-only dependency for its Given/When/Then suites.

## Supported platforms
Expand All @@ -42,8 +42,8 @@ push and pull request.
| macOS Apple Silicon | upstream Clang 21.1.8, libc++ (`brew install llvm@21`) | 4.3.1 | `--toolchain cmake/toolchains/macos-arm64-llvm.cmake` |

Unsupported, and refused at configure time:
- **GCC 15** fails on libstdc++'s `std` module ([#9](https://github.com/ambroise-leclerc/SpecLab/issues/9)).
- **GCC 16.2.0** corrupts this tree's module BMIs ([#17](https://github.com/ambroise-leclerc/SpecLab/issues/17)). GCC 16.2.0 is not refused at configure time: its build fails.
- **GCC 15** fails on libstdc++'s `std` module ([#9](https://github.com/Compliatory/SpecLab/issues/9)).
- **GCC 16.2.0** corrupts this tree's module BMIs ([#17](https://github.com/Compliatory/SpecLab/issues/17)). GCC 16.2.0 is not refused at configure time: its build fails.
- **AppleClang** has no `import std` module.
- **macOS x86_64 or universal (`arm64;x86_64`) targets** have never been tested. The check uses
`CMAKE_OSX_ARCHITECTURES` when it is set.
Expand Down Expand Up @@ -333,7 +333,7 @@ and should be built with Ninja (see [Building SpecLab](#building-speclab)):
# Pin a commit rather than a branch; the release tag is kept alongside as documentation.
include(FetchContent)
FetchContent_Declare(speclab
GIT_REPOSITORY https://github.com/ambroise-leclerc/SpecLab.git
GIT_REPOSITORY https://github.com/Compliatory/SpecLab.git
GIT_TAG <commit SHA of the release> # e.g. the commit tagged v0.3.0
)
set(SPECLAB_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
Expand All @@ -356,7 +356,7 @@ After `cmake --install`, use `find_package(speclab CONFIG REQUIRED)` and the sam
## Building SpecLab

```bash
git clone https://github.com/ambroise-leclerc/SpecLab.git
git clone https://github.com/Compliatory/SpecLab.git
cd SpecLab
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DSPECLAB_BUILD_EXAMPLES=ON
cmake --build build --parallel
Expand Down Expand Up @@ -452,8 +452,8 @@ organization's quality management system procedures.

## Support

- **Issues**: [GitHub Issues](https://github.com/ambroise-leclerc/SpecLab/issues)
- **Releases**: [GitHub Releases](https://github.com/ambroise-leclerc/SpecLab/releases)
- **Issues**: [GitHub Issues](https://github.com/Compliatory/SpecLab/issues)
- **Releases**: [GitHub Releases](https://github.com/Compliatory/SpecLab/releases)

## Roadmap

Expand All @@ -462,7 +462,7 @@ organization's quality management system procedures.
- [x] Windows, Linux (GCC and Clang) and macOS Apple Silicon in CI
- [x] Self-tests run by `ctest` on every platform
- [x] Collecting assertions (`Checks`), `require`, `Test<State>`, and test registration with a `--list-tests` / `--run=` runner
- [x] Requirement, Feature and IEC62304Process builders that execute their tests ([#25](https://github.com/ambroise-leclerc/SpecLab/issues/25))
- [x] Requirement, Feature and IEC62304Process builders that execute their tests ([#25](https://github.com/Compliatory/SpecLab/issues/25))
- [ ] Self-tests for the class-based API, `TestSuite`'s coverage gate and the reporters
- [ ] Visual test reporting dashboard
- [ ] Cryptographic audit trail signing
Loading