From b3e554e5eaf9454cc02a9f09dc3aab9e132eb0ca Mon Sep 17 00:00:00 2001 From: Kurt Jung Date: Mon, 5 Aug 2013 10:42:40 -0400 Subject: Make sure makefont utility has been built before running test --- makefont/makefont_test.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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) -- cgit v1.2.1-24-ge1ad