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 with OK/FAIL status. 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 β€” execute COMMAND before running the first test πŸš€
  • --post-flight COMMAND β€” execute COMMAND after running the last test πŸ›¬
  • --color WHEN β€” set when to use colors: auto, always, never 🌈
  • --diff-options OPTIONS β€” set diff command 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