Blame tests/scripts/build-scripts/test-image.sh
|
Petr Šabata |
f5bf49 |
#!/usr/bin/env bash
|
|
Petr Šabata |
f5bf49 |
. $TESTDIR/scripts/test-lib.sh
|
|
Petr Šabata |
f5bf49 |
TEST_SCRIPT=$1
|
|
Petr Šabata |
f5bf49 |
|
|
Petr Šabata |
f5bf49 |
QEMU_CMD="$DEFAULT_QEMU_CMD \
|
|
Petr Šabata |
f5bf49 |
-serial stdio \
|
|
Petr Šabata |
f5bf49 |
-serial file:$(get_test_output_file $TEST_SCRIPT) \
|
|
Petr Šabata |
f5bf49 |
-monitor none \
|
|
Petr Šabata |
f5bf49 |
-hda $OUTPUT_IMAGE"
|
|
Petr Šabata |
f5bf49 |
|
|
Petr Šabata |
f5bf49 |
img_add_qemu_cmd() {
|
|
Petr Šabata |
f5bf49 |
QEMU_CMD+=" $@"
|
|
Petr Šabata |
f5bf49 |
}
|
|
Petr Šabata |
f5bf49 |
|
|
Petr Šabata |
f5bf49 |
source $TEST_SCRIPT
|
|
Petr Šabata |
f5bf49 |
|
|
Petr Šabata |
f5bf49 |
on_build
|
|
Petr Šabata |
f5bf49 |
|
|
Petr Šabata |
f5bf49 |
img_inst $TEST_SCRIPT /kexec-kdump-test/test.sh
|
|
Petr Šabata |
f5bf49 |
|
|
Petr Šabata |
f5bf49 |
echo $QEMU_CMD > $(get_test_qemu_cmd_file $TEST_SCRIPT)
|