aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/config/config_test.go
Commit message (Collapse)AuthorAgeFilesLines
* pkg/config: use DisallowUnknownFieldsDmitry Vyukov2021-04-281-206/+0
| | | | | DisallowUnknownFields was added in Go 1.10, remove our custom machinery for checking unknown fields.
* .gometalinter.json: enable gofmtDmitry Vyukov2018-07-311-2/+2
| | | | | | | The part that we want from gofmt is simplify (-s). Fix all code that needs fixing. Update #538
* pkg/config: support time.Time fieldsDmitry Vyukov2017-06-301-0/+9
|
* pkg/config: support null valuesDmitry Vyukov2017-06-031-0/+5
|
* vm: overhaulDmitry Vyukov2017-06-031-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VM infrastructure currently has several problems: - Config struct is complete mess with a superset of params for all VM types - verification of Config is mess spread across several places - there is no place where VM code could do global initialization like creating GCE connection, uploading GCE image to GCS, matching adb devices with consoles, etc - it hard to add private VM implementations such impl would need to add code to config package which would lead to constant merge conflicts - interface for VM implementation is mixed with interface for VM users this does not allow to provide best interface for both of them - there is no way to add common code for all VM implementations This change solves these problems by: - splitting VM interface for users (vm package) and VM interface for VM implementations (vmimpl pacakge), this in turn allows to add common code - adding Pool concept that allows to do global initialization and config checking at the right time - decoupling manager config from VM-specific config each VM type now defines own config Note: manager configs need to be changed after this change: VM-specific parts are moved to own "vm" subobject. Note: this change also drops "local" VM type. Its story was long unclear and there is now syz-stress which solves the same problem.
* pkg/config: support nested structsDmitry Vyukov2017-06-031-2/+129
|
* config: split and refactorDmitry Vyukov2017-06-011-0/+65
Introduce generic config.Load function that can be reused across multiple programs (syz-manager, syz-gce, etc). Move the generic config functionality to pkg/config package. The idea is to move all helper (non-main) packages to pkg/ dir, because we have more and more of them and they pollute the top dir. Move the syz-manager config parts into syz-manager/config package.