aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/osutil/osutil_test.go
Commit message (Collapse)AuthorAgeFilesLines
* syz-agent: systematically show verbose error messagesDmitry Vyukov2026-03-111-0/+12
| | | | | | | | | | | | | Currently we added custom code to kernel build action, and few others to expose verbose errors from executed binaries (notably make). But lots of other binary executions missing this logic, e.g. for git failure we currently see unuseful: failed to run ["git" "fetch" "--force" "--tags" exit status 128 Instead of adding more and more custom code to do the same, remove the custom code and always add verbose output in syz-agent and tools/syz-aflow.
* pkg/osutil: run TestDiskUsage only on LinuxDmitry Vyukov2026-01-231-0/+6
| | | | | The test uses some hardcoded numbers for disk usage, it's hard to get it working on all possible OSes.
* pkg/osutil: add DiskUsage functionDmitry Vyukov2026-01-091-0/+42
| | | | DiskUsage returns total recursive disk usage of the dir (similar to du -s).
* pkg/osutil: add Read/ParseJSON functionsDmitry Vyukov2025-11-171-0/+21
|
* syz-fuzzer: use of monotonic time for latency measurementDmitry Vyukov2024-04-021-0/+10
| | | | | time.Now/Since may reject to use monotonic time if the fuzzer messes with system time badly enough. Enforce use of monotonic time.
* all: use `t.TempDir` to create temporary test directoryEng Zer Jun2022-03-281-6/+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>
* pkg/osutil: fix LinkFiles/FilesExist for the new pattern formatDmitry Vyukov2020-09-151-35/+46
|
* pkg/osutil: support glob patterns in CopyFilesDmitry Vyukov2020-09-141-0/+97
| | | | Follow up to #2053
* pkg/osutil: add IsExist helper functionDmitry Vyukov2017-06-171-0/+18