diff options
| author | Alex Bennée | 2018-07-09 11:55:34 +0200 |
|---|---|---|
| committer | Alex Bennée | 2018-07-24 12:45:25 +0200 |
| commit | d984f24c7783a288ce8cc91978521c0c2dc66d9b (patch) | |
| tree | 2d9169912fa47d92f04a26465178b8440996a257 /tests/docker/test-unit | |
| parent | docker: Makefile.include don't include partial images (diff) | |
| download | qemu-d984f24c7783a288ce8cc91978521c0c2dc66d9b.tar.gz qemu-d984f24c7783a288ce8cc91978521c0c2dc66d9b.tar.xz qemu-d984f24c7783a288ce8cc91978521c0c2dc66d9b.zip | |
docker: add test-unit runner
This test doesn't even build QEMU, it just builds and runs all the
unit tests. Intended to make checking unit tests on all docker images
easier.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'tests/docker/test-unit')
| -rwxr-xr-x | tests/docker/test-unit | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/docker/test-unit b/tests/docker/test-unit new file mode 100755 index 0000000000..8905d01150 --- /dev/null +++ b/tests/docker/test-unit @@ -0,0 +1,21 @@ +#!/bin/bash -e +# +# Build and run the unit tests +# +# Copyright (c) 2018 Linaro Ltd. +# +# Authors: +# Alex Bennée <alex.bennee@linaro.org> +# +# This work is licensed under the terms of the GNU GPL, version 2 +# or (at your option) any later version. See the COPYING file in +# the top-level directory. + +. common.rc + +cd "$BUILD_DIR" + +# although we are not building QEMU itself we still need a configured +# build for the unit tests to be built and run +configure_qemu +check_qemu check-unit |
