qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

docker: move make check into check_qemu helper

Not all docker images can run the check step. Let's move everything
into a common helper so we don't need to replicate checks in the
future.

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>

+15 -4
+11
tests/docker/common.rc
··· 40 40 make $MAKEFLAGS 41 41 } 42 42 43 + check_qemu() 44 + { 45 + # default to make check unless the caller specifies 46 + if test -z "$@"; then 47 + INVOCATION="check" 48 + else 49 + INVOCATION="$@" 50 + fi 51 + make $MAKEFLAGS $INVOCATION 52 + } 53 + 43 54 test_fail() 44 55 { 45 56 echo "$@"
+1 -1
tests/docker/test-clang
··· 23 23 #OPTS="$OPTS --extra-cflags=-fsanitize=undefined \ 24 24 #--extra-cflags=-fno-sanitize=float-divide-by-zero" 25 25 build_qemu $OPTS 26 - make $MAKEFLAGS check 26 + check_qemu 27 27 install_qemu
+1 -1
tests/docker/test-debug
··· 22 22 OPTS="--enable-debug --enable-sanitizers $OPTS" 23 23 24 24 build_qemu $OPTS 25 - make $MAKEFLAGS V=1 check 25 + check_qemu check V=1 26 26 install_qemu
+1 -1
tests/docker/test-full
··· 15 15 16 16 cd "$BUILD_DIR" 17 17 18 - build_qemu && make check $MAKEFLAGS && install_qemu 18 + build_qemu && check_qemu && install_qemu
+1 -1
tests/docker/test-quick
··· 18 18 DEF_TARGET_LIST="x86_64-softmmu,aarch64-softmmu" 19 19 TARGET_LIST=${TARGET_LIST:-$DEF_TARGET_LIST} \ 20 20 build_qemu 21 - make check $MAKEFLAGS 21 + check_qemu 22 22 install_qemu