make max output settings
This commit is contained in:
@@ -37,6 +37,24 @@ group("g") {
|
||||
}
|
||||
}
|
||||
|
||||
func TestParseMaxOutput(t *testing.T) {
|
||||
src := `
|
||||
build "make"
|
||||
max_output = 64M
|
||||
group("g") {
|
||||
weight = 1.0
|
||||
test("t") { stdout = "ok\n" }
|
||||
}
|
||||
`
|
||||
f, _, err := Parse(src)
|
||||
if err != nil {
|
||||
t.Fatalf("parse: %v", err)
|
||||
}
|
||||
if f.MaxOutput != 64*1024*1024 {
|
||||
t.Errorf("MaxOutput = %d, want %d", f.MaxOutput, 64*1024*1024)
|
||||
}
|
||||
}
|
||||
|
||||
func TestParsePatternStageAllMode(t *testing.T) {
|
||||
src := `
|
||||
build "make"
|
||||
|
||||
Reference in New Issue
Block a user