qemu-error: add {error, warn}_report_once_cond
[qemu.git] / tests / docker / test-debug
blob137f4f2ddc10c5bd43870d8eb700b2dc4bade746
1 #!/bin/bash -e
3 # Compile and check with clang & --enable-debug --enable-sanitizers.
5 # Copyright (c) 2016-2018 Red Hat Inc.
7 # Authors:
8 # Fam Zheng <famz@redhat.com>
9 # Marc-André Lureau <marcandre.lureau@redhat.com>
11 # This work is licensed under the terms of the GNU GPL, version 2
12 # or (at your option) any later version. See the COPYING file in
13 # the top-level directory.
15 . common.rc
17 requires clang asan
19 cd "$BUILD_DIR"
21 OPTS="--cxx=clang++ --cc=clang --host-cc=clang"
22 OPTS="--enable-debug --enable-sanitizers $OPTS"
24 build_qemu $OPTS
25 check_qemu check V=1
26 install_qemu