From 81f8931162e724010c79ca075760892335973495 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 29 Apr 2020 17:51:12 +0000 Subject: [PATCH] tests/runkola: New script This may become `cosa kola-fast` or something. --- tests/runkola | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 tests/runkola diff --git a/tests/runkola b/tests/runkola new file mode 100755 index 00000000..02e79b05 --- /dev/null +++ b/tests/runkola @@ -0,0 +1,16 @@ +#!/bin/bash +set -euo pipefail +# Use with `cosa build-fast`, e.g.: +# cosa build-fast && ./tests/runkola +top=$(git rev-parse --show-toplevel) +cd ${top} +image=$(ls fastbuild-*-qemu.qcow2 | head -1) +if [ -z "${image}" ]; then + echo "Must run on image from cosa build-fast" + exit 1 +fi +if [ -z "$@" ]; then + set -- 'ext.*' "$@" +fi +set -x +exec kola run -p qemu --qemu-image "${image}" -E ${top} "$@"