diff options
Diffstat (limited to 'makefont')
-rw-r--r-- | makefont/makefont_test.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/makefont/makefont_test.go b/makefont/makefont_test.go index 8193a5c..df63aa8 100644 --- a/makefont/makefont_test.go +++ b/makefont/makefont_test.go @@ -7,8 +7,15 @@ import ( ) func TestMakefont(t *testing.T) { + var out []byte + var err error const expect = "Font definition file successfully generated" - out, err := exec.Command("./makefont", "--dst=../font", "--embed", + // Make sure makefont utility has been built before generating font definition file + err = exec.Command("go", "build").Run() + if err != nil { + t.Fatal(err) + } + out, err = exec.Command("./makefont", "--dst=../font", "--embed", "--enc=../font/cp1252.map", "../font/calligra.ttf").CombinedOutput() if err != nil { t.Fatal(err) |