Lines Matching refs:kunit_kernel

23 import kunit_kernel
411 with self.assertRaisesRegex(kunit_kernel.ConfigError, 'nonexistent.* does not exist'):
412 kunit_kernel.LinuxSourceTree('', kunitconfig_paths=['/nonexistent_file'])
416 kunit_kernel.LinuxSourceTree('', kunitconfig_paths=[kunitconfig.name])
422 kunit_kernel.LinuxSourceTree('', kunitconfig_paths=[dir])
437 tree = kunit_kernel.LinuxSourceTree('', kunitconfig_paths=[dir, other])
449 with self.assertRaisesRegex(kunit_kernel.ConfigError, '(?s)Multiple values.*CONFIG_KUNIT'):
450 kunit_kernel.LinuxSourceTree('', kunitconfig_paths=[dir, other])
457 tree = kunit_kernel.LinuxSourceTree('', kconfig_add=['CONFIG_NOT_REAL=y'])
461 with self.assertRaisesRegex(kunit_kernel.ConfigError, 'not a valid arch, options are.*x86_64'):
462 kunit_kernel.LinuxSourceTree('', arch='invalid')
469 tree = kunit_kernel.LinuxSourceTree(build_dir)
477 with open(kunit_kernel.get_outfile_path(build_dir), 'rt') as outfile:
482 with open(kunit_kernel.get_kunitconfig_path(build_dir), 'w') as f:
485 tree = kunit_kernel.LinuxSourceTree(build_dir)
489 tree._ops = kunit_kernel.LinuxSourceTreeOperations('none', None)
499 with open(kunit_kernel.get_kunitconfig_path(build_dir), 'w') as f:
501 with open(kunit_kernel.get_old_kunitconfig_path(build_dir), 'w') as f:
503 with open(kunit_kernel.get_kconfig_path(build_dir), 'w') as f:
506 tree = kunit_kernel.LinuxSourceTree(build_dir)
510 tree._ops = kunit_kernel.LinuxSourceTreeOperations('none', None)
519 with open(kunit_kernel.get_kunitconfig_path(build_dir), 'w') as f:
521 with open(kunit_kernel.get_old_kunitconfig_path(build_dir), 'w') as f:
523 with open(kunit_kernel.get_kconfig_path(build_dir), 'w') as f:
526 tree = kunit_kernel.LinuxSourceTree(build_dir)
530 tree._ops = kunit_kernel.LinuxSourceTreeOperations('none', None)
594 self.mock_linux_init = mock.patch.object(kunit_kernel, 'LinuxSourceTree').start()
758 kunitconfig_paths=[kunit_kernel.ALL_TESTS_CONFIG_PATH, 'mykunitconfig'],
766 @mock.patch.object(kunit_kernel, 'LinuxSourceTree')