wibble-test-genrunner(1)
π wibble-test-genrunner π
okay bestie, so this one is wibble-test-genrunner, and it lives in the General Commands Manual β it's the code generator for wibble testsuites, and honestly? it's giving quiet little build-tool icon. no options, no drama, just vibes and .cpp files. π
β¨ NAME β¨
wibble-test-genrunner β the code generator for wibble testsuites, periodt.
πΈ SYNOPSIS πΈ
wibble-test-genrunner header <file>
wibble-test-genrunner main <files>
π¦ DESCRIPTION π¦
so what this program does is it generates .cpp files, and those .cpp files get compiled and linked into a test program that runs the tests living inside .test.h files. like, that's the whole gig. π
if you wanna peek at what these .test.h files look like irl, there's examples hanging out among the wibble headers, e.g. /usr/include/wibble/regexp.test.h. go look, it's cute.
now, the two forms β lemme break it down for you:
- form one:
header <file>β the program takes a single header file (usually shaped likefoo.test.h) and produces a corresponding.cppfile that's meant to be compiled. one header in, one.cppout. slay. - form two:
main <files>β here you pass all the.test.hheaders as<files>, and it produces a singlemain.cppthat contains themain()function of the test program. thatmain()then runs all the tests in all the.test.hfiles. main character energy fr fr. π
and here's the thing you gotta remember: the generated source code is always written to standard output. every single time. it is fully on you to redirect it somewhere meaningful. no cap. π
bestie the program currently has no options other than the two forms above. that's it. that's the whole flag situation. it's minimal and it knows it. π
this program is intended to be run as part of the build process of programs or libraries that use the wibble testing framework. so like, it's not really a "sit down and chat with it in your terminal" tool, it's a "the build system yells at it and it does its job" tool. iconic.
and for convenient use from CMake, there's a test.cmake script sitting under /usr/share/wibble that handles all of it for you: producing all the .cpp files (both the per-header ones and the main one), compiling them, and linking them into a single binary which executes the testsuite. obsessed. π«Ά
π AUTHOR π
Petr Rockai <me@mornfall.net>
aaaand that's the whole page, bestie β¨ thanks for reading, mwah π β this was wibble-test-genrunner(1) from the General Commands Manual, out here doing build-tool things and looking adorable while it does. π
π¦ where this page comes from
- ubuntu jammy: libwibble-dev 1.1-2
- ubuntu noble: libwibble-dev 1.1-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms