Kurt Jungs Auslieferungszustand

This commit is contained in:
2021-03-02 13:27:45 +01:00
commit 5afea81825
156 changed files with 30287 additions and 0 deletions

26
makefont/makefont_test.go Normal file
View File

@@ -0,0 +1,26 @@
package main
import (
"os/exec"
"strings"
"testing"
)
func TestMakefont(t *testing.T) {
var out []byte
var err error
const expect = "Font definition file successfully generated"
// 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)
}
if !strings.Contains(string(out), expect) {
t.Fatalf("Unexpected output from makefont")
}
}