'cmdline' : integration_test_template['cmdline'] + ['selinux=1', 'lsm=selinux'],
# FIXME; Figure out why reboot sometimes hangs with 'linux' firmware.
'firmware' : 'uefi',
+ 'vm' : true,
},
]
'rd.systemd.wants=initrd-run-mount.service',
],
'exit-code' : 124,
+ 'vm' : true,
},
]
integration_tests += [
integration_test_template + {
'name' : fs.name(meson.current_source_dir()),
+ 'vm' : true,
},
]
integration_tests += [
integration_test_template + {
'name' : fs.name(meson.current_source_dir()),
+ 'vm' : true,
},
]
'timeout' : 3600,
'priority' : 50,
'slow' : true,
+ 'vm' : true,
},
]
'mkosi-args' : integration_test_template['mkosi-args'] + [
'--runtime-size=11G',
],
+ 'vm' : true,
},
]
integration_tests += [
integration_test_template + {
'name' : fs.name(meson.current_source_dir()),
+ 'vm' : true,
},
]
integration_tests += [
integration_test_template + {
'name' : fs.name(meson.current_source_dir()),
+ 'vm' : true,
},
]
integration_tests += [
integration_test_template + {
'name' : fs.name(meson.current_source_dir()),
+ 'vm' : true,
},
]
'configuration' : integration_test_template['configuration'] + {
'memory-accounting' : 'yes',
},
+ 'vm' : true,
},
]
integration_tests += [
integration_test_template + {
'name' : fs.name(meson.current_source_dir()),
+ 'vm' : true,
},
]
integration_tests += [
integration_test_template + {
'name' : fs.name(meson.current_source_dir()),
+ 'vm' : true,
},
]
integration_tests += [
integration_test_template + {
'name' : fs.name(meson.current_source_dir()),
+ 'vm' : true,
},
]
'mkosi-args' : integration_test_template['mkosi-args'] + [
'--configure-script', meson.current_source_dir() / 'mkosi.configure',
],
+ 'vm' : true,
},
]
'name' : fs.name(meson.current_source_dir()),
'credentials' : integration_test_template['credentials'] + [
files('systemd.unit-dropin.init.scope'),
- ]
+ ],
+ 'vm' : true,
},
]
integration_tests += [
integration_test_template + {
'name' : fs.name(meson.current_source_dir()),
+ 'vm' : true,
},
]
'--configure-script', files('@0@.configure'.format(testcase)),
],
'priority' : 10,
+ 'vm' : true,
},
]
endforeach
integration_tests += [
integration_test_template + {
'name' : fs.name(meson.current_source_dir()),
+ 'vm' : true,
},
]
integration_tests += [
integration_test_template + {
'name' : fs.name(meson.current_source_dir()),
+ 'vm' : true,
},
]
'wants' : '@0@ tpm2.target'.format(integration_test_template['configuration']['wants']),
'after' : '@0@ tpm2.target'.format(integration_test_template['configuration']['after']),
},
+ 'vm' : true,
},
]
'unit' : files('TEST-82-SOFTREBOOT.service'),
'cmdline' : ['systemd.set_credential=kernelcmdlinecred:uff'],
'storage' : 'persistent',
+ 'vm' : true,
},
]
integration_tests += [
integration_test_template + {
'name' : fs.name(meson.current_source_dir()),
+ 'vm' : true,
},
]
integration_tests += [
integration_test_template + {
'name' : fs.name(meson.current_source_dir()),
+ 'vm' : true,
},
]
parser.add_argument('--storage', required=True)
parser.add_argument('--firmware', required=True)
parser.add_argument('--slow', action=argparse.BooleanOptionalAction)
+ parser.add_argument('--vm', action=argparse.BooleanOptionalAction)
parser.add_argument('--exit-code', required=True, type=int)
parser.add_argument('mkosi_args', nargs="*")
args = parser.parse_args()
),
]),
'--credential', f"journal.storage={'persistent' if sys.stderr.isatty() else args.storage}",
- 'qemu',
+ 'qemu' if args.vm or os.getuid() != 0 else 'boot',
]
result = subprocess.run(cmd)
'credentials' : [],
'qemu-args' : [],
'exit-code' : 123,
+ 'vm' : false,
}
testdata_subdirs = [
'auxv',
integration_test_args += ['--slow']
endif
+ if integration_test['vm']
+ integration_test_args += ['--vm']
+ endif
+
if not mkosi.found()
continue
endif