summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
7 daysmisc: QEMU prepend for NUMA pinningTimothy Day
It can be useful to use numactl to pin a VM to a NUMA node. Add ktest_qemu_prepend to enable this in ktests. Signed-off-by: Timothy Day <timday@amazon.com>
7 daysmisc: add IdentitiesOnly to ssh commandTimothy Day
Specify IdentitiesOnly=yes during ssh to prevent ssh from trying keys that won't work. Without this, we can sometimes fail to ssh if we have too many keys. Signed-off-by: Timothy Day <timday@amazon.com>
2025-03-30testrunner: don't fail if modules symlink existsKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-11-22Don't fail to launch if no ssh keyKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-11-07syzbot-repro.ktest: Run syzbot reproducers in a single commandKent Overstreet
Example usage, to reproduce locally the bug https://syzkaller.appspot.com/bug?extid=f074d2e31d8d35a6a38c build-test-kernel run -I ~/ktest/tests/syzbot-repro.ktest f074d2e31d8d35a6a38c or, with an optionl crash index: build-test-kernel run -I ~/ktest/tests/syzbot-repro.ktest f074d2e31d8d35a6a38c 3 The syzbot-get tool needs to first be built and installed, run cargo install --path "path to ktest" Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-11-07Allow for tests where we don't know the actual list of testsKent Overstreet
This will be used for syzbot-repro.ktest, which will take as an argument a syzbot reproducer to download and run. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-11-05Don't use decode_stacktrace.shKent Overstreet
It's causing us to lose information Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-10-13testrunner: Don't explode if root image is dirtyKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-09-07fix bcachefs/32bit.ktestKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-08-19don't run init hooks more than once when loopingKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-08-17fix ktest_priorityKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-08-17use decode_stacktrace.sh when availableKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-08-12tests/fs/bcachefs: build bcachefs-tools from git when running interactivallyKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-08-08Don't build xfstests noninteractivelyKent Overstreet
building xfstests in the CI is unreliable, for various reasons; we'll have to do it manually as needed. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-08-01add local IP and hostname to /etc/hostsTimothy Day
We should be able to resolve our hostname to our usable IP. Many testing tools/scripts rely on this to work. Signed-off-by: Timothy Day <timday@amazon.com>
2024-08-01let ktests tolerate kernel taintTimothy Day
A ktest can now allow_taint and not fail. Signed-off-by: Timothy Day <timday@amazon.com>
2024-01-04config-rw-imageKent Overstreet
2023-12-21fix modules when kernels are installedKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-11-19Increase cross-compile compatibilityJanpieter Sollie
Some user distros do not use standard triplets, but instead, the triplet has another name. Move the triplet name into a gitignored config file, and fix a few trivial error messages breaking a cross-compile build: - use headers-generic instead of headers-$arch - if ulimit isn't set, don't do it. Signed-off-by: jpsollie <janpieter.sollie@edpnet.be> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-07-09Convert bools to normal shell styleKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-06-21common: more portable binary check; `which` is not installed by default on archDoug Coleman
support pacman install
2023-06-21libktest: 1T is too high a memory limit, use system's actual RAMDoug Coleman
fixes qemu error (dell xps 13 plus 32G, arch linux): qemu-system-x86_64: Address space limit 0x7fffffffff < 0x10a7fffffff phys-bits too low (39)
2023-06-16gcov: Prune kernel build pathKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-05-29Don't fail in ktest_exit()Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-03-09Increase limit on nr open files before starting vmKent Overstreet
This fixes a bug with seeing -EMFILE in the guest during parallel make builds over virtfs. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-03-07Add virtio-blk supportDaniel Hill
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-03-07Remove hard coded device pathsDaniel Hill
This is prep work for the virtio-blk backend changes Signed-off-by: Daniel Hill <daniel@gluo.nz> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev> Co-developed-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-03-07prelude.sh: Add require-qemu-appendKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-03-07lib/common.sh: Better error message when exiting due to errorKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-02-01root_image: Include rustKent Overstreet
This uses rustup, so we get a recent version. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-01-26Delete duplicated set -o errtraceKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-01-23include bash hints for shellcheckDaniel Hill
ShellCheck seems to ignore project wide settings (.shellcheckrc) when called from flycheck this adds bash hints so shellcheck doesn't complain about non-POSIX compliant settings. I should report this upstream. Signed-off-by: Daniel Hill <daniel@gluo.nz>
2022-12-26Make test output quieterKent Overstreet
This quiets systemd and qemu warnings, making our test output less noisy. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-11-10Fix for /home being a symlinkKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-09-22get-test-job is now written in rustKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-09-18Increase stale job timeout to 1 hourKent Overstreet
We should also add some logging - job given out - job completed - stale job deleted Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-09-16ci: Move stale job cleanup to get-test-job.cKent Overstreet
It's more efficient to do it there, and now we emit a log message when we delete a stale test job. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-08-25testrunner: Fix for home directories in weird placesKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-08-25fixup! Add arm supportKent Overstreet
2022-08-24lib/supervisor: Exit when child existsKent Overstreet
Previously, the supervisor would run until the timeout when the child died (e.g. because of a build error). This adds a signal handler for SIGCHLD to fix this silly bug. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-08-23Bring back partial support for virtio-blkKent Overstreet
virtio-scsi is, unfortunately, buggy: this patch brings back partial support for virtio-blk (we don't yet handle sda vs. vda naming) Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-08-23Add arm supportKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-08-23Fix setting CROSS_COMPILEKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-08-23Fix checking for qemu binaryKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-07-20lib/common.sh: Use pipefailKent Overstreet
++ for catching more errors Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-07-20Fix exit handlerKent Overstreet
Our exit handler was returning failure, and causing the whole script to return failure, when we didn't have a temp dir. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-07-11Delete our perf wrapperKent Overstreet
Debian is doing the sane thing now Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-07-10supervisor: Catch and forward signalsKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-07-10Rename qemu-wrapper to supervisorKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-07-10Move logic for retrying subtests to the CIKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>