On Thu, Jul 14, 2022 at 11:41 PM 'David Gow' via KUnit Development <kunit-dev@xxxxxxxxxxxxxxxx> wrote: > > Add a .kunitconfig file, which provides a default, working config for > running the KCSAN tests. Note that it needs to run on an SMP machine, so > to run under kunit_tool, the --qemu_args option should be used (on a > supported architecture, like x86_64). For example: > ./tools/testing/kunit/kunit.py run --arch=x86_64 --qemu_args='-smp 8' > --kunitconfig=kernel/kcsan > > Signed-off-by: David Gow <davidgow@xxxxxxxxxx> > Reviewed-by: Marco Elver <elver@xxxxxxxxxx> > Acked-by: Brendan Higgins <brendanhiggins@xxxxxxxxxx> Tested-by: Daniel Latypov <dlatypov@xxxxxxxxxx> Ran it and everything worked as expected. [16:06:34] Testing complete. Ran 141 tests: passed: 140, skipped: 1 [16:06:34] Elapsed time: 70.861s total, 0.002s configuring, 3.519s building, 67.276s running Ran again with --kconfig_add=CONFIG_KCSAN_STRICT=y [16:08:29] Testing complete. Ran 141 tests: passed: 141 [16:08:29] Elapsed time: 83.355s total, 1.557s configuring, 24.188s building, 57.582s running