mirror of
https://github.com/mborgerson/xemu.git
synced 2026-03-18 02:34:45 +00:00
The current build structure for migration tests is confusing. There is
the tests/migration directory, which contains two different guest code
implementations, one for the qtests (a-b-{bootblock|kernel}.S) and
another for the guestperf script (stress.c). One uses a Makefile,
while the other uses meson.
The next patches will add a new qtests/migration/ directory to hold
qtest code which will make the situation even more confusing.
Move the guest code used by qtests into a new qtests/migration/
directory and rename the old one to tests/migration-stress.
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
11 lines
230 B
Bash
Executable File
11 lines
230 B
Bash
Executable File
#!/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"
|