Skip to content

Commit

Permalink
Make sure makefont utility has been built before running test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurt Jung committed Aug 5, 2013
1 parent 956ee03 commit b3e554e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion makefont/makefont_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b3e554e

Please sign in to comment.