1// Copyright 2016 syzkaller project authors. All rights reserved. 2// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. 3 4package prog_test 5 6import ( 7 "testing" 8 9 . "github.com/google/syzkaller/prog" 10 _ "github.com/google/syzkaller/sys" 11) 12 13func TestChecksumCalcRandom(t *testing.T) { 14 target, rs, iters := InitTest(t) 15 for i := 0; i < iters; i++ { 16 p := target.Generate(rs, 10, nil) 17 for _, call := range p.Calls { 18 CalcChecksumsCall(call) 19 } 20 for try := 0; try <= 10; try++ { 21 p.Mutate(rs, 10, nil, nil) 22 for _, call := range p.Calls { 23 CalcChecksumsCall(call) 24 } 25 } 26 } 27} 28