clitest(1)
π clitest(1) β the manual page, but make it a group chat π
okay bestie, buckle up, we're reading clitest(1) together and it's genuinely iconic. it does automatic testing in command lines. yes. that clitest. π
β¨ NAME β¨
clitest β performs automatic testing in command lines π¦
β¨ SYNOPSIS β¨
clitest [options] <file ...>
β¨ DESCRIPTION β¨
so like, Clitest is a portable POSIX shell script that performs automatic testing in Unix command lines. and not me being obsessed with this detail β this script was carefully coded to be portable between POSIX shells. like, carefully. someone put their whole heart into that. π
it's the same concept as Python's doctest module, fr fr: you document both the commands and their expected output, using the familiar interactive prompt format, and a specialized tool tests them. you write down what you ran and what it spit back out, and the tool goes "bet, let me verify that" π«Ά
and here's the main character energy: the clitest command searches for pieces of text that look like interactive Unix command lines, and then executes those command lines to verify that they work exactly as shown. exactly as shown. no vibes-based approximation. periodt. π
β¨ OPTIONS β¨
-1,--firstβ stop execution upon first failed test. like, we're done here, first L and we're out π-l,--listβ list all the tests, no execution. just showing you the lineup, no performance πΈ-L,--list-runβ list all the tests withOK/FAILstatus. the receipts, bestie π§Ύ-t,--test RANGEβ run specific tests, by number (1,2,4-7) π―-s,--skip RANGEβ skip specific tests, by number (1,2,4-7) π-q,--quietβ quiet operation, no output shown. silent. mysterious. lowkey π€«-V,--versionβ show program version and exit π-P,--progress TYPEβ set progress indicator:test,number,dot,noneβ¨--pre-flight COMMANDβ executeCOMMANDbefore running the first test π--post-flight COMMANDβ executeCOMMANDafter running the last test π¬--color WHENβ set when to use colors:auto,always,neverπ--diff-options OPTIONSβ setdiffcommand options (default:'-u') π--inline-prefix PREFIXβ set inline output prefix (default:'#β ') π--prefix PREFIXβ set command line prefix (default:'') π--prompt STRINGβ set prompt string (default:'$ ') π
ngl, those defaults are literally written out exactly like that, so copy them character for character if you're typing them in. no guessing, no "close enough", bestie. π
β¨ AUTHOR β¨
The CLITEST was written by Aurelio Jargas <verde@aurelio.net>. π«Ά
This manual page was written by Giovani Augusto Ferreira <giovani@riseup.net> for the Debian project (but may be used by others). πΈ
and that's the whole page, bestie!! CLITEST 0.0, from Oct 2015, manual page clitest(1) β that's the source, version and date, all folded into this cute lil sign-off because you deserve the aesthetic π
β¨ bye ily, go test your command lines π
π¦ where this page comes from
- debian bookworm: clitest 0.4.0-1 Β· MIT
- debian trixie: clitest 0.5.0-1 Β· MIT
- ubuntu jammy: clitest 0.4.0-1 Β· MIT
- ubuntu noble: clitest 0.4.0-1 Β· MIT
- ubuntu questing: clitest 0.5.0-1
- ubuntu resolute: clitest 0.5.0-1build1 Β· MIT
- ubuntu stonking: clitest 0.5.0-1build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms