summaryrefslogtreecommitdiff
path: root/Meta
diff options
context:
space:
mode:
authorAndrew Kaster <andrewdkaster@gmail.com>2021-01-10 15:38:40 -0700
committerAndreas Kling <kling@serenityos.org>2021-02-28 18:19:37 +0100
commitca8319f800413bbf7d90c98f03b589fb7009e215 (patch)
tree4ecbad1c4a14435d4464aed9ad4101084476c84a /Meta
parentc2d8b8ec14d033972d5b51afedf821bfc04bcfe2 (diff)
downloadserenity-ca8319f800413bbf7d90c98f03b589fb7009e215.zip
Meta: Add run target for CI
This invocation of qemu has no VGA, no sound, no graphics, debug output going to a file, and defaults to printing /dev/ttyS0 to stdout.
Diffstat (limited to 'Meta')
-rwxr-xr-xMeta/run.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/Meta/run.sh b/Meta/run.sh
index a0ba4e0857..7687617cd0 100755
--- a/Meta/run.sh
+++ b/Meta/run.sh
@@ -138,6 +138,22 @@ elif [ "$SERENITY_RUN" = "qcmd" ]; then
-device e1000,netdev=breh \
-kernel Kernel/Kernel \
-append "${SERENITY_KERNEL_CMDLINE}"
+elif [ "$SERENITY_RUN" = "ci" ]; then
+ # Meta/run.sh ci: qemu in text mode
+ echo "Running QEMU in CI"
+ "$SERENITY_QEMU_BIN" \
+ $SERENITY_EXTRA_QEMU_ARGS \
+ -s -m $SERENITY_RAM_SIZE \
+ -cpu $SERENITY_QEMU_CPU \
+ -d guest_errors \
+ -smp 2 \
+ -drive file=${SERENITY_DISK_IMAGE},format=raw,index=0,media=disk \
+ -device ich9-ahci \
+ -nographic \
+ -display none \
+ -debugcon file:debug.log \
+ -kernel Kernel/Kernel \
+ -append "${SERENITY_KERNEL_CMDLINE}"
else
# Meta/run.sh: qemu with user networking
"$SERENITY_QEMU_BIN" \