14 Commits

Author SHA1 Message Date
Claudio Matsuoka
a2e8c76114 Add regression test for right-to-left smushing with JavE font
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2015-05-10 18:26:43 -03:00
Claudio Matsuoka
ab98e5ea0b Test script cleanup
Auto-increment the test number instead of passing it as a parameter.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2015-05-10 18:25:16 -03:00
Claudio Matsuoka
1c1293b3e3 Make test script a bit more portable
Replaced mktemp which can be different/absent in some systems with
static filenames which should be good enough for our tests.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2012-06-03 13:36:38 -03:00
Jonathan McCrohan
3851863336 run-tests.sh: Use Octal sequence for printf
Hex sequence is not POSIX compliant, causing run-tests.sh to fail on
systems with Debian Almquist shell as the default shell.

Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com>
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2012-06-01 09:20:17 -03:00
Claudio Matsuoka
0bae10173e Use SUS-compliant script for test
Use printf instead of echo -n in order to have a Single Unix Specification
compliant script and work in MacOS X 10.5.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2012-05-31 11:53:59 -03:00
Claudio Matsuoka
66402840d6 Add uskata and jis0201 regression tests 2012-05-29 15:41:29 -03:00
Claudio Matsuoka
b5269745dd Fix banner placement in test script
Test banner was being print before setting the fonts directory, which
make it fail if FIGlet is not already installed on the system.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2012-05-29 15:23:13 -03:00
Claudio Matsuoka
bddc3decc4 Add test to list all existing control files
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2011-01-26 00:00:47 -02:00
Claudio Matsuoka
eeaa125de6 Add environment variable FIGLET_FONTDIR
Environment variable FIGLET_FONTDIR can be used to set the path to search
for font files. This variable is used in the test script when FIGlet is
installed on a staging directory.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2011-01-25 23:44:08 -02:00
Claudio Matsuoka
e91b35b234 Add parameter to test script to specify font dir
This way we can run tests when installing in a staging dir.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2011-01-25 22:57:11 -02:00
Claudio Matsuoka
adcddcd38e Set font dir when checking the dist package
Make sure the binary built from the distribution package uses a local
font directory to run tests.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2011-01-25 21:23:36 -02:00
Claudio Matsuoka
6c3db7930d Prevent compatibility problems in test script
Linefeed characters are printed differently depending of the shell
used as /bin/sh. Use an extra echo to prevent output problems.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2011-01-25 20:56:14 -02:00
Claudio Matsuoka
cfc670794f Add extra regression tests
The following tests have been added:

test 017: tlf2 kerning flush-right mode
test 018: tlf2 overlap centered mode
test 019: tlf2 full-width flush-left right-to-left mode
test 020: specify font directory
test 021: paragraph mode long line output
test 022: short line output
test 023: kerning paragraph centered mode (small)

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2011-01-25 20:56:14 -02:00
Claudio Matsuoka
71409f90b4 Add regression tests to distribution package
Add test target to the Makefile, and also automatically run tests
in the dist target. Current test results:

Run tests in /home/claudio/figlet/figlet
 _____       _                     _ _
|_   _|__ __| |_   _ _ ___ ____  _| | |_ ___
  | |/ -_|_-<  _| | '_/ -_|_-< || | |  _(_-<
  |_|\___/__/\__| |_| \___/__/\_,_|_|\__/__/

Run test 001: showfigfonts output... pass
Run test 002: text rendering in all fonts... pass
Run test 003: long text rendering... pass
Run test 004: left-to-right text... pass
Run test 005: right-to-left text... pass
Run test 006: flush-left justification... pass
Run test 007: flush-right justification... pass
Run test 008: center justification... pass
Run test 009: kerning mode... pass
Run test 010: full width mode... pass
Run test 011: overlap mode... pass
Run test 012: TLF font rendering... pass
Run test 013: kerning flush-left right-to-left mode... pass
Run test 014: kerning centered right-to-left mode (slant)... pass
Run test 015: full-width flush-right right-to-left mode... pass
Run test 016: overlap flush-right mode (big)... pass

 All tests passed.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2011-01-25 20:56:14 -02:00