summary refs log tree commit diff stats
path: root/tests/migration-stress/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'tests/migration-stress/meson.build')
-rw-r--r--tests/migration-stress/meson.build18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/migration-stress/meson.build b/tests/migration-stress/meson.build
new file mode 100644
index 0000000000..a91aa61c65
--- /dev/null
+++ b/tests/migration-stress/meson.build
@@ -0,0 +1,18 @@
+sysprof = dependency('sysprof-capture-4', method: 'pkg-config', required: false)
+glib_static = dependency('glib-2.0', version: glib_req_ver, required: false,
+                         method: 'pkg-config', static: true)
+
+stress = executable(
+  'stress',
+  files('stress.c'),
+  dependencies: [glib_static, sysprof],
+  link_args: ['-static'],
+  build_by_default: false,
+)
+
+custom_target(
+  'initrd-stress.img',
+  output: 'initrd-stress.img',
+  input: stress,
+  command: [find_program('initrd-stress.sh'), '@OUTPUT@', '@INPUT@']
+)