aboutsummaryrefslogtreecommitdiffstats
path: root/syz-verifier/utils_test.go
Commit message (Collapse)AuthorAgeFilesLines
* syz-verifier: use ignore flag because go mod tidy knows itTaras Madan2024-07-021-1/+1
|
* pkg/ipc: remove ProgInfoDmitry Vyukov2024-05-211-0/+4
| | | | | | Switch to flatrpc.ProgInfo. Note: this disables syz-runtest and syz-verifier.
* syz-verifier: fix stats access, remove racesTaras Madan2022-03-311-7/+9
| | | | Removed atomic operations. Added object level mutex.
* all: use `t.TempDir` to create temporary test directoryEng Zer Jun2022-03-281-10/+1
| | | | | | | | | This commit replaces all `ioutil.TempDir` with `t.TempDir` in tests. The directory created by `t.TempDir` is automatically removed when the test and all its subtests complete. Reference: https://pkg.go.dev/testing#T.TempDir Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
* syz-verifier: redesigned the analysis program generation and analysis flow ↵Taras Madan2022-03-221-7/+4
| | | | | | | | | (#2908) Program verification logic is located in one function now. VMs fetch programs from priority queues, not from the generator. VMs operate the tasks, not programs now. For the crashed VM - return error for every program in the queue *fixed some road errors
* syz-verifier: use int64 instead of int for statistics (#2924)Taras Madan2021-12-151-1/+1
| | | | | Currently we use int to aggregate statistics. Counters update require the lock() operation. Lets relax it and move to int64 + atomic.AddInt64().
* syz-verifier: rename test_utils.go to utils_test.goDmitry Vyukov2021-11-081-0/+105
test_utils.go must be parts of tests (used only by tests), rather than of the binary itself. Currently it is part of the binary since it does not end with _test.go. This works with go tool, but confuses bazel+glaze which does not want to add test_utils.go into the test target.