aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/vcs/test_util.go
Commit message (Collapse)AuthorAgeFilesLines
* pkg/bisect: add test for #1527Dmitry Vyukov2019-12-101-125/+0
| | | | Update #1527
* pkg/vcs: detect old git binary that can't do bisectionDmitry Vyukov2019-10-221-0/+9
|
* pkg/bisect: add initial testing support for cause bisectionZubin Mithra2019-10-221-0/+116
(note: incomplete change) Refactor existing code as follows: * Move reusable test utility functions from git_repo_test.go to pkg/vcs/test_util.go and make them exported. * Split Run() into Run()+runImpl(). * Change type of bisect.go:env.inst to `instance.BuilderTester`. Change usage inside syz-testbuild/testbuild.go accordingly. * Move most of linux.PreviousReleaseTags() into vcs/git.go as git.previousReleaseTags(). * Allow build.CompilerIdentity to be mocked. Introduce the following changes: * instance.BuilderTester is an interface with methods BuildSyzkaller() BuildKernel() Test() NewEnv() now returns this interface. * type testEnv implements instance.BuilderTester. * type testBuilder implements builder interface. Add a entry into table inside pkg/build/build.go:getBuilder() to return testBuilder object.