mirror of
https://github.com/mborgerson/xemu.git
synced 2025-12-01 16:10:01 +00:00
meson: convert migration/initrd-stress
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20200828110734.1638685-17-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
committed by
Paolo Bonzini
parent
3909def82a
commit
4fbcdcd742
10
tests/migration/initrd-stress.sh
Executable file
10
tests/migration/initrd-stress.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
INITRD="$1"
|
||||
STRESS="$2"
|
||||
|
||||
INITRD_DIR=$(mktemp -d -p '' "initrd-stress.XXXXXX")
|
||||
trap 'rm -rf $INITRD_DIR' EXIT
|
||||
|
||||
cp "$STRESS" "$INITRD_DIR/init"
|
||||
(cd "$INITRD_DIR" && (find | cpio --quiet -o -H newc | gzip -9)) > "$INITRD"
|
||||
14
tests/migration/meson.build
Normal file
14
tests/migration/meson.build
Normal file
@ -0,0 +1,14 @@
|
||||
stress = executable(
|
||||
'stress',
|
||||
files('stress.c'),
|
||||
dependencies: [glib],
|
||||
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@']
|
||||
)
|
||||
Reference in New Issue
Block a user