Running unit tests on a C project (like an OS kernel) that redefines built-in functions.

This page summarizes the projects mentioned and recommended in the original post on /r/cmake

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • os161-kernel

    Operating System OS/161 Kernel Development

    I'm keen to do some of the exercises outlined here; however, before I begin, I've been trying to set up C unit tests for any code that I eventually write. In the past, I've used GoogleTest and CMake in my own C projects, which is pretty straightforward to set up but I haven't been able to get this combo to work for the OS161 kernel so far.

  • Google Test

    GoogleTest - Google Testing and Mocking Framework

    I'm keen to do some of the exercises outlined here; however, before I begin, I've been trying to set up C unit tests for any code that I eventually write. In the past, I've used GoogleTest and CMake in my own C projects, which is pretty straightforward to set up but I haven't been able to get this combo to work for the OS161 kernel so far.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • Catch

    A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch)

    The following questions that I have are platform and testing framework agnostic but in the interest of being precise, I have been trying to set up CMake so that it is able to run a simple "Catch2" unit test. I'm use CLion as my test runner to make life easy and everything is running on Ubuntu 18.04.

  • os161-catch

    My current attempt is as follows. The full repository containing this attempt can be found here:

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts