| Revision 4295,
525 bytes
checked in by sam, 3 years ago
(diff) |
|
Add a test to check that all fonts can be loaded.
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | |
|---|
| 3 | ret=0 |
|---|
| 4 | |
|---|
| 5 | # |
|---|
| 6 | # Check that we have no tabs or trailing spaces in the source code |
|---|
| 7 | # |
|---|
| 8 | failure=0 |
|---|
| 9 | (cd ../fonts |
|---|
| 10 | for x in $(make -s echo-fonts); do |
|---|
| 11 | case "$x" in |
|---|
| 12 | *.tlf|*.flf) ;; |
|---|
| 13 | *) continue ;; |
|---|
| 14 | esac |
|---|
| 15 | echo "Checking font $x..." |
|---|
| 16 | if ../src/toilet -d ../fonts -f "$x" Hello World >/dev/null; then |
|---|
| 17 | : |
|---|
| 18 | else |
|---|
| 19 | echo "Error loading font $x" |
|---|
| 20 | failure=1 |
|---|
| 21 | fi |
|---|
| 22 | done) |
|---|
| 23 | if test "$failure" != "0"; then |
|---|
| 24 | ret=1 |
|---|
| 25 | else |
|---|
| 26 | echo "0 errors in fonts" |
|---|
| 27 | fi |
|---|
| 28 | |
|---|
| 29 | if test "$ret" != "0"; then |
|---|
| 30 | exit 1 |
|---|
| 31 | fi |
|---|
| 32 | |
|---|
| 33 | exit 0 |
|---|
| 34 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.