Sample outputs are included, and can be compared against dynamic outputs in test/output/.
Commits to this folder need to be manually reviewed, to ensure that images look like they should.
In addition, each image must be listed in this README, describing what test creates it.
oneliner.pngis created by test-format-plain. It contains a single line of unformatted text, for very quick testing.block.pngis created by test-format-plain. It contains three lines of textual output, with no coloring.simple-color-normal-{default,black,red,green,yellow,blue,magenta,cyan,white}.pngare created by test-colors. Each image contains the name of it's color, in it's own color.missing-character-default-font.pngis created by test-custom-font. It demonstrates what is outputted if a character is drawn that doesn't exist in the given font.missing-character-custom-font.pngis created by test-custom-font. It demonstrates using a custom font to draw a character not in the default font.missing-character-fallback-font.pngis created by test-custom-font. It demonstrates using multiple fonts to create a string using characters found in each of the font files, but not both.
console-format-stdout.pngis created by test-pipe-format. It tests the core usage ofsh2png pipedby pipingsh2png --helpand styling the output.console-format-stdout-alias.pngis created by test-pipe-format. It tests thatsh2png -(an alias ofsh2png piped) styles text.console-format-stdout-format.{format=png,jpg,bmp}is created by test-pipe-format. It tests thatsh2png --format {format} -outputs a file of the correct type.console-format-output.{format=png,jpg,bmp}is created by test-pipe-format. It tests thatsh2png --output output.{format} -outputs a file of the correct type.console-format-base64.{format=png,jpg,bmp}[-64]are created by test-pipe-format. It runssh2png --format {format} --base64 -, and pipes into.{format}-64. Then the base64 encoded file is decoded into.{format}.console-format-output-base64.{format=png,jpg,bmp}[-64]are created by test-pipe-format. It runssh2png --format {format} --base64 -, and pipes into.{format}-64. Then the base64 encoded file is decoded into.{format}.console-format-red-rgba.pngis created by test-pipe-format. It changes the color defined for red text as green (--red 0,FF,0), and makes sure that the outputted image has the correct color.console-format-red-hex.pngis created by test-pipe-format. It changes the color defined for red text as green (--red 0x00FF00FF), and makes sure that the outputted image has the correct color.